From 7f59e96492b38aa8ac80761344d75cd8995cdb88 Mon Sep 17 00:00:00 2001 From: Niko Kovacevic Date: Tue, 13 Oct 2020 17:08:31 -0600 Subject: [PATCH] Fix command --- .../templates/cost-analyzer-deployment-template.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cost-analyzer/templates/cost-analyzer-deployment-template.yaml b/cost-analyzer/templates/cost-analyzer-deployment-template.yaml index 863dc44b9..f7aa72c29 100755 --- a/cost-analyzer/templates/cost-analyzer-deployment-template.yaml +++ b/cost-analyzer/templates/cost-analyzer-deployment-template.yaml @@ -146,8 +146,8 @@ spec: persistentVolumeClaim: claimName: {{ template "cost-analyzer.fullname" . }} {{- end }} - - name: persistent-db {{- if .Values.kubecostModel.etlToDisk }} + - name: persistent-db {{- if .Values.persistentVolume }} {{- if .Values.persistentVolume.enabled }} persistentVolumeClaim: @@ -174,7 +174,11 @@ spec: {{- end }} resources: {{ toYaml .Values.initChownData.resources | indent 12 }} + {{- if .Values.kubecostModel.etlToDisk }} command: ["sh", "-c", "/bin/chmod -R 777 /var/configs && /bin/chmod -R 777 var/db"] + {{- else }} + command: ["sh", "-c", "/bin/chmod -R 777 /var/configs"] + {{- end}} volumeMounts: - name: persistent-configs mountPath: /var/configs