File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,6 +8,8 @@ metadata:
88 {{- include "acs-central.labels" . | nindent 4 }}
99 annotations :
1010 argocd.argoproj.io/sync-wave : " 44"
11+ argocd.argoproj.io/hook : Sync
12+ argocd.argoproj.io/hook-delete-policy : BeforeHookCreation
1113spec :
1214 template :
1315 metadata :
Original file line number Diff line number Diff line change @@ -15,6 +15,8 @@ metadata:
1515 annotations :
1616 argocd.argoproj.io/sync-options : SkipDryRunOnMissingResource=true
1717 argocd.argoproj.io/sync-wave : " 43"
18+ argocd.argoproj.io/hook : Sync
19+ argocd.argoproj.io/hook-delete-policy : BeforeHookCreation
1820spec :
1921 template :
2022 metadata :
Original file line number Diff line number Diff line change @@ -8,6 +8,9 @@ metadata:
88 {{- include "acs-central.labels" . | nindent 4 }}
99 annotations :
1010 argocd.argoproj.io/sync-wave : " 37"
11+ # Jobs are immutable; delete and recreate on each sync when spec changes
12+ argocd.argoproj.io/hook : Sync
13+ argocd.argoproj.io/hook-delete-policy : BeforeHookCreation
1114spec :
1215 template :
1316 metadata :
3437
3538 echo "🔄 Generating htpasswd entry for admin user..."
3639
37- # Check if central-htpasswd secret already has valid htpasswd field
40+ # Check if admin password secret already has valid htpasswd field
3841 if oc get secret {{ .Values.central.adminPassword.secretName }} -n {{ .Release.Namespace }} -o jsonpath='{.data.htpasswd}' 2>/dev/null | base64 -d | grep -q "^admin:\$2[aby]\$"; then
3942 echo "✅ htpasswd entry already exists and is valid (bcrypt format)"
4043 exit 0
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ central:
2020 adminPassword :
2121 # Use external secret from Vault
2222 useExternalSecret : true
23- secretName : central-htpasswd
23+ secretName : central-admin- htpasswd
2424 secretKey : password
2525
2626 # Image configuration
@@ -195,4 +195,4 @@ securityContext:
195195# Node selector and tolerations
196196nodeSelector : {}
197197tolerations : []
198- affinity : {}
198+ affinity : {}
You can’t perform that action at this time.
0 commit comments