Skip to content

Commit

Permalink
feat(kubernetes-etcd-backup): Allow affinity and existing claims
Browse files Browse the repository at this point in the history
  • Loading branch information
4censord committed Jul 24, 2024
1 parent 4780e0e commit fe7164a
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 7 additions & 2 deletions charts/kubernetes-etcd-backup/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
---
apiVersion: v2
name: kubernetes-etcd-backup
description: Chart for kubernetes-etcd-backup solution
type: application
version: 1.0.4
appVersion: v1.0.4
version: 1.1.0
appVersion: v1.0.6
keywords:
- kubernetes-etcd-backup
- kubernetes
Expand All @@ -16,3 +17,7 @@ maintainers:
- name: adfinis
email: [email protected]
url: https://adfinis.com
annotations:
artifacthub.io/changes: |
- kind: changed
description: "Allow configuration of jobs affinity"
4 changes: 3 additions & 1 deletion charts/kubernetes-etcd-backup/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions charts/kubernetes-etcd-backup/templates/cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,11 @@ spec:
{{- else if .Values.persistence.provisioning.enabled }}
persistentVolumeClaim:
claimName: {{ include "kubernetes-etcd-backup.fullname" . }}
{{- else if .Values.persistence.existingClaim }}
persistentVolumeClaim:
claimName: {{ .Values.persistence.existingClaim }}
{{- end }}
{{ if .Values.affinity }}
affinity:
{{ .Values.affinity | toYaml | nindent 14 }}
{{ end }}
16 changes: 16 additions & 0 deletions charts/kubernetes-etcd-backup/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ persistence:
# -- Enable provisioned backend storage with default or configured storageClass
enabled: false
storageClass: ""
# -- Use an exising PVC
existingClaim: ""


image:
# -- Repository image to use
Expand All @@ -70,6 +73,19 @@ resources:
# cpu: 100m
# memory: 128Mi


affinity: {}
# Will be added directly to the pods affinity configuration.
# nodeAffinity:
# requiredDuringSchedulingIgnoredDuringExecution:
# nodeSelectorTerms:
# - matchExpressions:
# - key: disktype
# operator: In
# values:
# - ssd


monitoring:
# -- Deploy PrometheusRule to be alerted in case of backup fails as decribed [here](https://github.com/adfinis/kubernetes-etcd-backup/blob/main/etcd-backup-cronjob-monitor.PrometheusRule.yaml).
enabled: false
Expand Down

0 comments on commit fe7164a

Please sign in to comment.