Skip to content
Snippets Groups Projects
Verified Commit 933f0b6b authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

fix: correct issue with cronjob container ordering

parent 6a3ad101
Branches
No related tags found
No related merge requests found
Pipeline #2860 passed
......@@ -34,42 +34,43 @@ spec:
volumes:
- name: data
{{- .Values.volume | nindent 14 }}
containers:
- name: backup
initContainers:
- name: forget
securityContext:
{{- toYaml .Values.securityContext | nindent 16 }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
workingDir: "/sync"
args:
- "-r"
- "{{ .Values.repository.name }}"
- "backup"
- "."
- "forget"
- "--prune"
{{- toYaml .Values.keepOptions | nindent 16 }}
envFrom:
- secretRef:
name: {{ include "restic-helm.fullname" . }}
resources:
{{- toYaml .Values.resources | nindent 16 }}
volumeMounts:
- mountPath: "/sync"
name: data
- name: forget
containers:
- name: backup
securityContext:
{{- toYaml .Values.securityContext | nindent 16 }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
workingDir: "/sync"
args:
- "-r"
- "{{ .Values.repository.name }}"
- "forget"
- "--prune"
{{- toYaml .Values.keepOptions | nindent 16 }}
- "backup"
- "."
envFrom:
- secretRef:
name: {{ include "restic-helm.fullname" . }}
resources:
{{- toYaml .Values.resources | nindent 16 }}
volumeMounts:
- mountPath: "/sync"
name: data
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 12 }}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment