-
Notifications
You must be signed in to change notification settings - Fork 106
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
Prevent users from adding a managed label/annotation that conflicts with an ancestor #144
Comments
@adrianludwin: GuidelinesPlease ensure that the issue body includes answers to the following questions:
For more details on the requirements of such an issue, please see here and ensure that they are met. If this request no longer meets these requirements, the label can be removed In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/assign |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /close |
@k8s-triage-robot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/good-first-issue
/cc @erikgb
Part of #47; see also #143.
Users should not be allowed to add new managed labels/annots which conflict with the same label/annot in an ancestor. Fortunately, we already store all that information in the forest (e.g. see here) so it should be fairly straightforward to prevent a conflict.
In theory, it might be nice to also prevent an admin from adding a label that would overwrite an existing managed label in a descendant; this is what we do for objects (admins must remove the conflicting object first). However, I don't think that's necessary here, because unlike in the case of objects, we won't actually overwrite the user's intent (it will still be in the HierarchyConfiguration's spec in the descendant, it just won't be applied). In addition, it's probably safer from a policy to not require admins to remove all conflicting managed labels in case there are policies attached to them (the same is true for objects, so we might want a better solution to this one day there as well).
So for now, let's only check for conflicts with ancestors, not descendants.
The text was updated successfully, but these errors were encountered: