-
Notifications
You must be signed in to change notification settings - Fork 113
Fix hierarchy conflict validation excluding non-propagated objects #80
Fix hierarchy conflict validation excluding non-propagated objects #80
Conversation
Welcome @joe2far! |
Hi @joe2far. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
Adding info on tested scenarios -> TESTED:
|
7992f7a
to
84252e1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice change!
/ok-to-test |
Can you please also add a short note about testing to the commit message? E.g.:
For that second part, that's always a good sanity check if you didn't already try it - just make sure the test fails if you break the feature. |
- Tested getting conflict error for an unpropagated object without this change, which is fixed with this change when creating hierarchy configs. - Added unit test that fails without this change, but passes with it.
|
84252e1
to
f959973
Compare
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: adrianludwin, joe2far The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@rjbez17 lmk if you have any concerns about this /hold cancel |
Sorry I meant to respond earlier. Lgtm as well. |
for example, (behaviour with current logic):
hnc-parent
namespace haskube-root-ca.crt
configmap with appliedpropagate.hnc.x-k8s.io/none=true
annotationwhen creating a child namespace this will result in the following validation error, even though the parent configmap is not going to be propagated to the child namespace
with this PR, the parent annotated configmap resource would be excluded from this check and there is no validation error