Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(kubernetes-etcd-backup): Allow affinity and existing claims #1289

Merged
merged 1 commit into from
Jul 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.

11 changes: 9 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,9 @@ maintainers:
- name: adfinis
email: [email protected]
url: https://adfinis.com
annotations:
artifacthub.io/changes: |
- kind: changed
description: "Allow configuration of jobs affinity"
4censord marked this conversation as resolved.
Show resolved Hide resolved
- kind: changed
description: "Allow use of an existing pvc"
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 }}
{{ with .Values.affinity }}
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