-
Notifications
You must be signed in to change notification settings - Fork 110
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
diff in Status field causes conflicts during apply stage in newer version of kapp #746
Comments
Hey there @praveenrewar 👋🏼 We are heavily using kapp in our CI/CD pipelines and are now affected by this behavior. I would like to assist you here or take that over (or at least having a look); if you can point me in the direction where to start? |
Hi @theurichde! Thank you so much for lending a helping hand. Let me try to add a brief summary of the issue and what I have been planning to start with to resolve the issue:
I have been thinking of resolving this by adding a new configuration similar to Until then, if possible, you can switch to kapp version 0.54.0 or any version before that in your CI/CD pipelines. |
Thank you for your detailed explanation @praveenrewar! I will try and look into it 👀 |
Hi @praveenrewar is there a plan to create a release soon? |
Fix is available in kapp v0.58.0. |
What steps did you take:
I tried deploying a resource and I noticed that there was some diff present for the status field, when I said yes to the prompt and kapp started applying the changes, it threw a conflict error suggesting that the diff has changed.
What happened:
The status of the resource changed in the background while kapp was trying to apply the changes which caused an update in the diff.
What did you expect:
I expected kapp to ignore the status completely during diffs.
Anything else you would like to add:
In earlier versions of kapp (< v0.55.0), we used to copy the entire status field, but starting v0.55.0, we stopped doing that and instead used diffAgainstLastAppliedFieldExclusionRules for status field, which works fine during smart diff, but shows the diff when non-smart diff is being used.
Relavant slack thread: https://kubernetes.slack.com/archives/CH8KCCKA5/p1682582134618589
Environment:
kapp --version
): v0.55.0/etc/os-release
):kubectl version
)Vote on this request
This is an invitation to the community to vote on issues, to help us prioritize our backlog. Use the "smiley face" up to the right of this comment to vote.
👍 "I would like to see this addressed as soon as possible"
👎 "There are other more important things to focus on right now"
We are also happy to receive and review Pull Requests if you want to help working on this issue.
The text was updated successfully, but these errors were encountered: