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