-
Notifications
You must be signed in to change notification settings - Fork 167
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
tk diff/prune not respecting spec.namespace ? #1129
Comments
Hey 🙂 Correct, prune operates exclusively on that label to look for resources which was somehow implicit in the original PR: #251 . I'm guessing that the main reason for this is that Tanka supports resources inside of an environment not to be limited to a single namespace and since the jsonnet entry might already be gone, the label is the only reference left to check. That being said, I agree that this information should be more visible. What do you think? Should the prune command perhaps always log a warning telling users to check if these are really the resources they want to prune? |
Hi ;), ahh yes i read:
And somehow thought, if 'namespace' is defined, that would also limit operations to this namespace. (As opposed to NOT define it). In our pipeline we run a I think a warning would be nice though. 👍 |
I've set some acceptance criteria for the person who will work on this. Are they ok for you? 🙂 |
Hi,
i noticed this rather unexpected behaviour with
tk diff
(tk prune
same issue):tk diff
as below itspec.namespace
Looks like it is not respecting the
spec.namespace
when the environment label on resources outside that namespace?Is this intentional? If so i think its very un-obvious, altough this might be an edge-case (we're replicating some configs into review-app namespaces).
regards,
strowi
Acceptance criteria
tk prune
is called on itThe text was updated successfully, but these errors were encountered: