From 923ee95416b580a2e26134f3b79632e8e6694e11 Mon Sep 17 00:00:00 2001 From: olof Date: Wed, 23 Oct 2024 10:43:35 +0200 Subject: [PATCH] Moved sync-wave annotations to StatefulSet level --- charts/enactor-pdp/Chart.yaml | 2 +- charts/enactor-pdp/templates/statefulset-pdc.yaml | 4 ++++ charts/enactor-pdp/templates/statefulset-pdp.yaml | 4 ++++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/charts/enactor-pdp/Chart.yaml b/charts/enactor-pdp/Chart.yaml index 05de71c..7973d2f 100644 --- a/charts/enactor-pdp/Chart.yaml +++ b/charts/enactor-pdp/Chart.yaml @@ -4,7 +4,7 @@ description: Enactor PDP-server type: application -version: 0.2.17 +version: 0.2.18 appVersion: "1.0" maintainers: diff --git a/charts/enactor-pdp/templates/statefulset-pdc.yaml b/charts/enactor-pdp/templates/statefulset-pdc.yaml index 0b2c9da..5044bf8 100644 --- a/charts/enactor-pdp/templates/statefulset-pdc.yaml +++ b/charts/enactor-pdp/templates/statefulset-pdc.yaml @@ -9,6 +9,10 @@ metadata: namespace: {{ $root.Release.Namespace }} labels: {{- include "common.selectorLabels" $root | nindent 4 }} + annotations: + {{- if $root.Values.features.argocdSyncwaves.enabled }} + argocd.argoproj.io/sync-wave: {{ $root.Values.features.argocdSyncwaves.waves.pdc | default 20 | quote }} + {{- end }} spec: selector: matchLabels: diff --git a/charts/enactor-pdp/templates/statefulset-pdp.yaml b/charts/enactor-pdp/templates/statefulset-pdp.yaml index 4e457f1..c9da509 100644 --- a/charts/enactor-pdp/templates/statefulset-pdp.yaml +++ b/charts/enactor-pdp/templates/statefulset-pdp.yaml @@ -9,6 +9,10 @@ metadata: namespace: {{ $root.Release.Namespace }} labels: {{- include "common.selectorLabels" $root | nindent 4 }} + annotations: + {{- if $root.Values.features.argocdSyncwaves.enabled }} + argocd.argoproj.io/sync-wave: {{ $root.Values.features.argocdSyncwaves.waves.pdp | default 10 | quote }} + {{- end }} spec: selector: matchLabels: