Skip to content

Commit

Permalink
Fix: it seems volumes and volumeMounts are wrong in upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
simar0at committed Nov 22, 2023
1 parent ef11786 commit fbbc10c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions chart/templates/cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down Expand Up @@ -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 }}
Expand All @@ -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 -}}
4 changes: 2 additions & 2 deletions chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -73,7 +73,7 @@ cronjobs:
name: export
- mountPath: /backup
name: backup
extraVolumeMounts:
extraVolumes:
- name: backup
persistentVolumeClaim:
claimName: "openatlas-backup"
Expand Down

0 comments on commit fbbc10c

Please sign in to comment.