Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding restart job adjustments for force replace #737

Merged
merged 1 commit into from
Mar 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,6 @@ subjects:
apiVersion: batch/v1
kind: Job
metadata:
annotations:
argocd.argoproj.io/sync-wave: '110'
argocd.argoproj.io/hook: PostSync
name: argocd-oidc-restart-job
namespace: argocd
spec:
Expand All @@ -55,6 +52,7 @@ spec:
command:
- /bin/sh
- -c
- kubectl -n argocd rollout restart deployment/argocd-server
- echo restarting argocd-server in 180 seconds && sleep 180 && echo restarting && kubectl -n argocd get deployment/argocd-server -oyaml | kubectl -n argocd replace --force -f -
restartPolicy: OnFailure
serviceAccountName: argocd-oidc-restart-job

Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ kind: ExternalSecret
metadata:
name: cloudflare-creds
namespace: argocd
annotations:
argocd.argoproj.io/sync-wave: "0"
spec:
target:
name: cloudflare-creds
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ resources:
- github.com:kubefirst/manifests.git/argocd/cloud?ref=0.1.0
- argocd-ui-ingress.yaml
- externalsecrets.yaml
# - argocd-oidc-restart-job.yaml
- argocd-oidc-restart-job.yaml

patchesStrategicMerge:
- argocd-cm.yaml
Expand Down
Loading