-
Notifications
You must be signed in to change notification settings - Fork 166
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
Tanka not detecting complete diff #1057
Comments
Hi 🙂 By default that diff is calculated by kubectl. What versions of Tanka and Kubectl are you using? |
This was on
Afterwards i tested also Tanka 0.27.1 (btw. the install command in the release is missing the version) with kubectl up to 1.30 - same result. Also tried all diff-strategies, no change in result. Whats worse: Even a |
Just to make sure: Can you try to run |
Thanks for the info about the release page 🙂 Should be fixed now! |
Sorry if i wasn't clear enough. The problem is the other way around, the command is NOT present in Tanka and doesn't get removed when applied: Lets say we have a deployment :
Deploy this with ~> kubectl patch deployment nginx -p "{\"spec\":{\"template\":{\"spec\":{\"containers\":[{\"name\": \"nginx\",\"command\":[\"sh\",\"-c\",\"sleep 30m\"]}]}}}}" -> The Pod restarts running "sleep 30m", after finding/fixing the problem, i would expect i could just run The other way around it does seem to work:
PS: Just for completeness sake - if i add/remove the command in tanka and apply, it works as expected. |
Ahhh, thank you 🙂 Will try to reproduce it locally ASAP so that I can debug it 😄 |
You are absolutely correct. The issues seems to be that diff does not handle the I now tried to remove the |
Thx for verifying ;) Current behaviour sound pretty much like the "subset" describe in the Tanka docs. |
If it's alright with you, I think we should wait for upstream to fix that issue and see if it also fixes this one here 🙂 |
Yes sure. |
Hi,
i deployed some app with Tanka. Then went ahead and changed labels + added container command (to
sleep 30m
).Now when i run tanka diff/apply again, tanka only detects the change in labels, but not the the added change in command?
My guess would be this is because the container doesn't have a
command
in the tanka-template and it doesn't get removed from the running deployment?Is there a way to fix this?
regards,
strowi
The text was updated successfully, but these errors were encountered: