From 313ab39bfdba9fd2d6361d87bb8b2807802c06cc Mon Sep 17 00:00:00 2001 From: Wolfgang Kulhanek Date: Mon, 11 Dec 2023 16:20:33 +0100 Subject: [PATCH] Fix templating errors --- charts/showroom-single-pod/files/index.html | 15 +++++++-------- charts/showroom-single-pod/templates/_helpers.tpl | 5 ----- .../showroom-single-pod/templates/deployment.yaml | 2 +- charts/showroom-single-pod/templates/pvc.yaml | 2 +- 4 files changed, 9 insertions(+), 15 deletions(-) delete mode 100644 charts/showroom-single-pod/templates/_helpers.tpl diff --git a/charts/showroom-single-pod/files/index.html b/charts/showroom-single-pod/files/index.html index 838e28f..b5ae47d 100644 --- a/charts/showroom-single-pod/files/index.html +++ b/charts/showroom-single-pod/files/index.html @@ -10,29 +10,28 @@
{{- if .Values.content.url }} - + {{- else }} - + {{- end }}
- {{- if .Values.codeserver }} + {{- if .Values.codeserver.setup }} {{- end }} - {{- range .Values.services }} +
- - +
{{- if .Values.codeserver.setup }}
- +
{{- end }} {{- range .Values.services }} diff --git a/charts/showroom-single-pod/templates/_helpers.tpl b/charts/showroom-single-pod/templates/_helpers.tpl deleted file mode 100644 index 871dc70..0000000 --- a/charts/showroom-single-pod/templates/_helpers.tpl +++ /dev/null @@ -1,5 +0,0 @@ -{{- define "showroom-deployer.showroom.route" }} -{{- $service := index . 0 -}} -{{- $values := index . 1 -}} -{{- printf "https://showroom-%s.%s/%s" .Release.Namespace $values.deployer.domain $service }} -{{- end -}} diff --git a/charts/showroom-single-pod/templates/deployment.yaml b/charts/showroom-single-pod/templates/deployment.yaml index 292decf..9ed4366 100644 --- a/charts/showroom-single-pod/templates/deployment.yaml +++ b/charts/showroom-single-pod/templates/deployment.yaml @@ -102,7 +102,7 @@ spec: - name: nginx-cache emptyDir: {} - name: lab-user-home -{{- if .Values.storage.setup }} +{{- if .Values.terminal.storage.setup }} persistentVolumeClaim: claimName: lab-user-home {{- else }} diff --git a/charts/showroom-single-pod/templates/pvc.yaml b/charts/showroom-single-pod/templates/pvc.yaml index 80edef0..8a10c8f 100644 --- a/charts/showroom-single-pod/templates/pvc.yaml +++ b/charts/showroom-single-pod/templates/pvc.yaml @@ -1,4 +1,4 @@ -{{- if .Values.storage.setup }} +{{- if .Values.terminal.storage.setup }} --- apiVersion: v1 kind: PersistentVolumeClaim