From 748dfc535d364c6ef3efe84436ae57546f211909 Mon Sep 17 00:00:00 2001 From: Sergiy Markin Date: Tue, 5 Dec 2023 04:17:10 +0000 Subject: [PATCH] [backups] Update staggered backups This PS updates yaml tree of values getting aligned with similar changes in osh-infra project. Change-Id: I9a5fc987bea7b4cb1214e329e5f77a0e26011d8d --- charts/etcd/templates/cron-job-etcd-backup.yaml | 6 +++--- charts/etcd/values_override/staggered-backups.yaml | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/charts/etcd/templates/cron-job-etcd-backup.yaml b/charts/etcd/templates/cron-job-etcd-backup.yaml index e42144ad..3504f33d 100644 --- a/charts/etcd/templates/cron-job-etcd-backup.yaml +++ b/charts/etcd/templates/cron-job-etcd-backup.yaml @@ -86,10 +86,10 @@ spec: {{ dict "envAll" $envAll "application" "etcd-backup" | include "helm-toolkit.snippets.kubernetes_pod_security_context" | indent 10 }} serviceAccountName: {{ .Values.service.name }}-{{ $serviceAccountName }} restartPolicy: OnFailure -{{- if .Values.pod.etcd_backup }} -{{- if .Values.pod.etcd_backup.affinity }} +{{- if .Values.pod.affinity }} +{{- if .Values.pod.affinity.etcd_backup }} affinity: -{{ index .Values.pod.etcd_backup "affinity" | toYaml | indent 12}} +{{ index .Values.pod.affinity "etcd_backup" | toYaml | indent 12}} {{- end }} {{- end }} nodeSelector: diff --git a/charts/etcd/values_override/staggered-backups.yaml b/charts/etcd/values_override/staggered-backups.yaml index e51a7898..4b9b2a35 100644 --- a/charts/etcd/values_override/staggered-backups.yaml +++ b/charts/etcd/values_override/staggered-backups.yaml @@ -3,8 +3,8 @@ pod: labels: etcd-backup: staggered-backups: enabled - etcd_backup: - affinity: + affinity: + etcd_backup: podAntiAffinity: requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: