-
Notifications
You must be signed in to change notification settings - Fork 275
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
0.13: [Bug]: Kubernetes manifest change not taken into account during deploy #4884
Comments
Thank you for reporting this! I ran into this as well when working on IRSA support (#3384) and it was really a complication. I think the culprit here is that when removing a key from the manifest, the manifest is still a subset of the deployed manifest (See also
I attempted to fix that in #3386 but some tests failed and at the time I failed to understand how things actually should work. I think this needs a really close look @shumailxyz @vvagaytsev let me know if you need some more info |
Thanks, @hnicke and @stefreak! Yes, this is a known issue. In #4516 the logic of kubernetes status handler was updated and the call to It's known that #4516 introduced some regression, so it was reverted and superseded by #4846 where we rely on the version hash comparison and particular kubernetes resources status handlers. The PR is still WIP, there is an open discussion on the better approach to solving the problem of change detection. I think this issue can be fixed by #4846, let's try to reproduce this again once the PR is merged. |
Any updates here? As a user, I expect that Garden does exactly deploy what I declared, and not some alterations of it... |
I've just re-examined this issue. It was fixed in 0.13.16 via #4846. |
Garden Bonsai (0.13) Bug
Current Behavior
When removing a field from the kubernetes spec, like a annotation, garden does not pick up the change when deploying that action. Instead, it yields
Already deployed
.Expected behavior
Garden should detect that the action changed and redeploy.
I expect the same behavior as when applying the manifest via
kubectl apply
.Reproducible example
Given: A kubernetes module with one ingress, having two annotations
foo
andfoobar
:Run
garden deploy example
.Then, remove the
foobar
annotation from the ingress:Run
garden deploy example
once again.Output:
ℹ deploy.example → Already deployed
.The module is not redeployed and thus the annotation does not get removed.
Workaround
When running
garden deploy example --force
, the annotation is correctly removed.Suggested solution(s)
Additional context
Your environment
garden version
0.13.9
The text was updated successfully, but these errors were encountered: