Skip to content

Commit

Permalink
changing argocd-syncwave to opt-in feature, chart=0.2.17
Browse files Browse the repository at this point in the history
  • Loading branch information
ninlil committed Sep 24, 2024
1 parent 1d04351 commit d60313a
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/enactor-pdp/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: Enactor PDP-server

type: application

version: 0.2.16
version: 0.2.17
appVersion: "1.0"

maintainers:
Expand Down
3 changes: 3 additions & 0 deletions charts/enactor-pdp/templates/statefulset-pdc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ spec:
{{- include "common.selectorLabels" $root | nindent 8 }}
annotations:
checksum/config: {{ include (print $basepath "/configmap-pdc.yaml") $root | sha256sum }}
{{- if $root.Values.features.argocdSyncwaves.enabled }}
argocd.argoproj.io/sync-wave: {{ $root.Values.features.argocdSyncwaves.waves.pdc | default 20 | quote }}
{{- end }}
spec:
terminationGracePeriodSeconds: 15
serviceAccountName: {{ include "pdc.serviceAccountName" $root }}
Expand Down
4 changes: 3 additions & 1 deletion charts/enactor-pdp/templates/statefulset-pdp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ spec:
{{- include "common.selectorLabels" $root | nindent 8 }}
annotations:
checksum/config: {{ include (print $.Template.BasePath "/configmap-pdp.yaml") $root | sha256sum }}
argocd.argoproj.io/sync-wave: "1"
{{- if $root.Values.features.argocdSyncwaves.enabled }}
argocd.argoproj.io/sync-wave: {{ $root.Values.features.argocdSyncwaves.waves.pdp | default 10 | quote }}
{{- end }}
spec:
terminationGracePeriodSeconds: 15
serviceAccountName: {{ include "pdp.serviceAccountName" $root }}
Expand Down
7 changes: 7 additions & 0 deletions charts/enactor-pdp/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.

features:
argocdSyncwaves:
enabled: false
waves:
pdp: 10
pdc: 20

dns:
domain: my.fqdn.address
ems: ems
Expand Down

0 comments on commit d60313a

Please sign in to comment.