Skip to content

Commit

Permalink
fixing support for various parameters georchestra-backup-ldap
Browse files Browse the repository at this point in the history
  • Loading branch information
edevosc2c committed Sep 30, 2024
1 parent 84de4e4 commit 5ea4509
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 9 deletions.
2 changes: 1 addition & 1 deletion georchestra-backup-ldap/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.7
version: 0.2.0

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
18 changes: 11 additions & 7 deletions georchestra-backup-ldap/templates/cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ spec:
spec:
{{- with $job.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 12 }}
{{- toYaml . | nindent 10 }}
{{- end }}
{{- with $job.securityContext }}
{{- with $job.podSecurityContext }}
securityContext:
{{ toYaml . | indent 12 }}
{{ toYaml . | nindent 10 }}
{{- end }}
containers:
- name: {{ .Chart.Name }}
Expand All @@ -43,7 +43,11 @@ spec:
cd /backup && rm `ls -t | awk 'NR>{{ .Values.configuration.keepLastBackups }}'`
{{- with $job.resources }}
resources:
{{ toYaml . | indent 14 }}
{{ toYaml . | nindent 12 }}
{{- end }}
{{- with $job.securityContext }}
securityContext:
{{ toYaml . | nindent 12 }}
{{- end }}
restartPolicy: {{ $job.restartPolicy }}
volumes:
Expand All @@ -52,13 +56,13 @@ spec:
claimName: {{ include "georchestra-backup-ldap.fullname" . }}-pvc
{{- with $job.nodeSelector }}
nodeSelector:
{{ toYaml . | indent 12 }}
{{ toYaml . | nindent 10 }}
{{- end }}
{{- with $job.affinity }}
affinity:
{{ toYaml . | indent 12 }}
{{ toYaml . | nindent 10 }}
{{- end }}
{{- with $job.tolerations }}
tolerations:
{{ toYaml . | indent 12 }}
{{ toYaml . | nindent 10 }}
{{- end }}
3 changes: 2 additions & 1 deletion georchestra-backup-ldap/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,14 @@ job:
# requests:
# cpu: 100m
# memory: 128Mi
securityContext: {}
podSecurityContext: {}
# capabilities:
# drop:
# - ALL
# readOnlyRootFilesystem: true
# runAsNonRoot: true
# runAsUser: 1000
securityContext: {}
imagePullSecrets: []

configuration:
Expand Down

0 comments on commit 5ea4509

Please sign in to comment.