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

fix: force replace Job during a sync #792

Merged
merged 2 commits into from
Aug 21, 2024
Merged

Conversation

muse-sisay
Copy link
Contributor

Description

A Job resource is an immutable resource. Changes to spec.template causes a sync error. Add annotation to force replaces Job resources.

Remove the sync option "replace" from vault-wait ArgoCD app and add to the Job resource as SA and CRB resources do not need to be replaced.

Related Issue(s)

konstructio/kubefirst#2264

How to test

Provision a management cluster and verify vault-wait job is healthy.

A Job resource is an immutable resource. Changes to spec.template causes a sync error. Add annotation to force replaces Job resources.

Remove  the sync option "replace" from vault-wait ArgoCD app and add to the Job resource as SA and CRB resources do not need to be replaced.
@johndietz
Copy link
Contributor

let's get this fix into the other stacks too. don't care if that's this pr or a follow up one. awesome quick find and fix @muse-sisay thank you! 🚀

Note K3d and k3s are missing vault-wait app.
@muse-sisay
Copy link
Contributor Author

Added changes to all other stacks except to K3d and k3s, as they are missing vault-wait app.

@muse-sisay muse-sisay merged commit 16b0e0f into konstructio:main Aug 21, 2024
1 check passed
jokestax pushed a commit that referenced this pull request Sep 3, 2024
* fix: force replace Job during a sync

A Job resource is an immutable resource. Changes to spec.template causes a sync error. Add annotation to force replaces Job resources.

Remove  the sync option "replace" from vault-wait ArgoCD app and add to the Job resource as SA and CRB resources do not need to be replaced.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants