fix: argocd bootstrap fix

This commit is contained in:
Stefan Reimer 2025-03-26 16:47:24 +00:00
parent eb059883c1
commit daf70c9bfb
2 changed files with 10 additions and 0 deletions

View File

@ -23,3 +23,7 @@ GITKEY=$(get_kubezero_secret argo-cd.kubezero.sshPrivateKey)
if [ -z "$GITKEY" ]; then if [ -z "$GITKEY" ]; then
set_kubezero_secret argo-cd.kubezero.sshPrivateKey "Insert ssh Private Key from your git server" set_kubezero_secret argo-cd.kubezero.sshPrivateKey "Insert ssh Private Key from your git server"
fi fi
# Redis secret
kubectl get secret argocd-redis -n argocd || kubectl create secret generic argocd-redis -n argocd \
--from-literal=auth=$(date +%s | sha256sum | base64 | head -c 16 ; echo)

View File

@ -17,4 +17,10 @@ spec:
sourceRepos: sourceRepos:
- https://cdn.zero-downtime.net/charts - https://cdn.zero-downtime.net/charts
- {{ index .Values "argo-cd" "kubezero" "repoUrl" }} - {{ index .Values "argo-cd" "kubezero" "repoUrl" }}
syncWindows:
- kind: deny
schedule: '0 * * * *'
duration: 24h
namespaces:
- '*'
{{- end }} {{- end }}