-
Notifications
You must be signed in to change notification settings - Fork 113
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
kapp adds default additional ownership and label scoping rules #138
Comments
kapp by default applies additional ownership and label scoping rules to resources for the purpose of better tracking and resource "isolation" (see ownershipLabelRules and labelScopingRules in https://carvel.dev/kapp/docs/latest/config/#ownershiplabelrules). you can disable them by adding annotations
you are also right about top level metadata.labels update. steps above happen in addition to this. |
closing per explanation above. feel free to reopen if more discussion is wanted. |
Also having this "error"; What are the effects of adding |
This seems pretty common when importing existing resources. It would be nice if kapp were smarter about not modifying immutable fields and if the docs provided more guidance about how to handle this. |
@gabegorelick pointed out:
Yes. #214 is where we're shaping the improved out-of-the-box experience. 👍🏼
But there's evidence that the whole configuring rules mechanism is not sufficiently documented in @revolunet's question:
Today, most of the While the roadmap for the maintainers does not currently have a slot for writing such guides, we can at least start to capture the needs. I've done so here: |
See also FAQ " The FAQ doesn't mention but the CLI option
|
Hi all!
I'm new to kapp and trying it out for our use-case.
I had resources preapplied to my cluster and was trying to get kapp to adopt them.
The command I used is:
kapp deploy -a myapp -f dump.yaml
The command failed with:
This is because
kapp
also tries to inject the label in things withspec.selector
, like Deployment. But that field is immutable.Is this by design? Why isn't
kapp
just applying the labels to the top-level object?The text was updated successfully, but these errors were encountered: