From a6d6e91ffadd13650c0ce44d0c43e96dea3c6711 Mon Sep 17 00:00:00 2001 From: Danny Bessems Date: Sun, 16 Jul 2023 11:45:19 +0200 Subject: [PATCH] fix: Set filemode per key --- charts/json-server/templates/deployment.yaml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/charts/json-server/templates/deployment.yaml b/charts/json-server/templates/deployment.yaml index f90e48d..60796ba 100644 --- a/charts/json-server/templates/deployment.yaml +++ b/charts/json-server/templates/deployment.yaml @@ -60,18 +60,25 @@ spec: resources: {{- toYaml .Values.resources | nindent 12 }} command: - - /bin/sh + - /bin/bash - -c - "/opt/update.sh -u {{ .Values.sidecar.targetUrl }}" volumeMounts: - name: {{ .Release.Name }}-configmap mountPath: /opt/update.sh subPath: update.sh - defaultMode: 0744 volumes: - name: {{ .Release.Name }}-configmap configMap: name: {{ .Release.Name }}-configmap + items: + - key: db.json + path: db.json + - key: index.html + path: index.html + - key: update.sh + path: update.sh + mode: 0744 {{- with .Values.nodeSelector }} nodeSelector: {{- toYaml . | nindent 8 }}