mirror of
https://github.com/truecharts/library-charts.git
synced 2026-07-05 12:26:22 -03:00
fix typo in portal and codeserver worload
This commit is contained in:
@@ -3,10 +3,19 @@ The code-server sidecar container to be inserted.
|
||||
*/}}
|
||||
{{- define "tc.v1.common.addon.codeserver.workload" -}}
|
||||
enabled: true
|
||||
type: Deployment
|
||||
podSpec:
|
||||
containers:
|
||||
codeserver:
|
||||
enabled: true
|
||||
primary: true
|
||||
probes:
|
||||
liveness:
|
||||
enabled: false
|
||||
readiness:
|
||||
enabled: false
|
||||
startup:
|
||||
enabled: false
|
||||
imageSelector: "codeserverImage"
|
||||
imagePullPolicy: {{ .Values.codeserverImage.pullPolicy }}
|
||||
securityContext:
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
{{- $url := "" -}}
|
||||
|
||||
{{/* Get service, default to primary */}}
|
||||
{{- $selectedService := fromYaml ( include "tc.v1.common.lib.helpers.getSelectedServiceValues" (dict "rootCtx" $ "objectData" $objectData.targetSeleector.service ) ) }}
|
||||
{{- $selectedService := fromYaml ( include "tc.v1.common.lib.helpers.getSelectedServiceValues" (dict "rootCtx" $ "objectData" $objectData.targetSeleector.service ) ) -}}
|
||||
|
||||
{{/* read loadbalancer IP's for metallb */}}
|
||||
{{- if eq $selectedService.type "LoadBalancer" -}}
|
||||
@@ -54,7 +54,7 @@
|
||||
{{- if $objectData.targetSelector.ingress -}}
|
||||
{{- $targetIngress := $objectData.targetSelector.ingress -}}
|
||||
{{- else -}}
|
||||
{{- $targetIngress := include "tc.v1.common.lib.util.service.ingress.primary" $-}}
|
||||
{{- $targetIngress := include "tc.v1.common.lib.util.service.ingress.primary" $ -}}
|
||||
{{- end -}}
|
||||
{{- $selectedIngress = get .Values.ingress $targetIngress -}}
|
||||
|
||||
@@ -95,9 +95,9 @@
|
||||
|
||||
{{/* Construct URL*/}}
|
||||
{{- if $port -}}
|
||||
{{- $url = printf "%s://%s:%s/%s" $protocol $host $port %suffix -}}
|
||||
{{- $url = printf "%s://%s:%s/%s" $protocol $host $port $suffix -}}
|
||||
{{- else -}}
|
||||
{{- $url = printf "%s://%s/%s" $protocol $host %suffix -}}
|
||||
{{- $url = printf "%s://%s/%s" $protocol $host $suffix -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- end -}}
|
||||
|
||||
Reference in New Issue
Block a user