fix typo in portal and codeserver worload

This commit is contained in:
Stavros kois
2023-02-20 23:01:18 +02:00
parent fa6afef881
commit 4b1c89ca56
2 changed files with 13 additions and 4 deletions

View File

@@ -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:

View File

@@ -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 -}}