Skip to content

fix: force replace Job during a sync#792

Merged
muse-sisay merged 2 commits intokonstructio:mainfrom
muse-sisay:#2264
Aug 21, 2024
Merged

fix: force replace Job during a sync#792
muse-sisay merged 2 commits intokonstructio:mainfrom
muse-sisay:#2264

Conversation

@muse-sisay
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
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