diff --git a/chart/templates/cronjob.yaml b/chart/templates/cronjob.yaml index 25a826100..975246ea6 100644 --- a/chart/templates/cronjob.yaml +++ b/chart/templates/cronjob.yaml @@ -59,9 +59,9 @@ items: {{ toYaml $affinityConfig | nindent 14 }} {{- end }} {{- end }} - {{- if $jobConfig.extraVolumes }} - volumes: - {{ toYaml $jobConfig.extraVolumes | nindent 14 }} + {{- if $jobConfig.extraVolumeMounts }} + volumeMounts: + {{ toYaml $jobConfig.extraVolumeMounts | nindent 14 }} {{- end }} containers: - name: {{ $.Chart.Name }} @@ -143,8 +143,8 @@ items: {{- end }} resources: {{ toYaml $.Values.resources | nindent 16 }} - {{- if $jobConfig.extraVolumeMounts }} - volumeMounts: + {{- if $jobConfig.extraVolumes }} + volumes: - name: uploads persistentVolumeClaim: claimName: {{ print ( include "fullname" $app ) "-uploads"| quote }} @@ -154,7 +154,7 @@ items: - name: export persistentVolumeClaim: claimName: {{ print ( include "fullname" $app ) "-export"| quote }} - {{ toYaml $jobConfig.extraVolumeMounts | nindent 16 }} + {{ toYaml $jobConfig.extraVolumes | nindent 16 }} {{- end }} {{- end -}} {{- end -}} diff --git a/chart/values.yaml b/chart/values.yaml index 49cf42435..b79e305bd 100644 --- a/chart/values.yaml +++ b/chart/values.yaml @@ -64,7 +64,7 @@ cronjobs: timeoutSeconds: 3 failureThreshold: 3 periodSeconds: 10 - extraVolumes: + extraVolumeMounts: - mountPath: /var/www/openatlas/files/uploads name: uploads - mountPath: /var/www/openatlas/files/processed_images/resized @@ -73,7 +73,7 @@ cronjobs: name: export - mountPath: /backup name: backup - extraVolumeMounts: + extraVolumes: - name: backup persistentVolumeClaim: claimName: "openatlas-backup"