-
Notifications
You must be signed in to change notification settings - Fork 114
Inclusive configuration of resources to propagate #217
Inclusive configuration of resources to propagate #217
Conversation
|
Welcome @mzeevi! |
Hi @mzeevi. 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. |
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.
This looks great, just a bunch of mainly stylistic changes. Thanks for this!
/cc @rjbez17
/ok-to-test
Thanks for the notes, Adrian! I will address everything in a new commit. |
adde9f0
to
2503562
Compare
I believe I've addressed everything, please take a look @adrianludwin Thanks! |
2503562
to
c6acc8b
Compare
Should be fine now |
f4002b5
to
813daa9
Compare
Made some changes as per your comments, @adrianludwin Thanks again! |
813daa9
to
00a7738
Compare
lgtm after these last changes are made. Ryan, please feel free to approve (or else I'll do it). /assign @rjbez17 |
00a7738
to
9a1e59f
Compare
Made some changes in accordance to the latest comments |
test/e2e/issues_test.go
Outdated
|
||
MustRun("kubectl hns config set-resource secrets --mode Ignore") |
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.
Sorry I didn't notice this until now - if the test fails, this line will never run. Can you add it to the BeforeEach() function on line 23 of this file, and mention this test as the reason why this needs to be reset? That's my last comment, promise :)
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.
No problem, and all comments are welcome :)
9a1e59f
to
3810154
Compare
See issue kubernetes-retired#16. To allow inclusive propagation of resources an additional `SyncornizationMode` called 'AllowPropagate' which only enables propagation when a selector is set is added. An 'all' selector is also addded. Tested: e2e-testing covering secrets resource in 'AllowPropagate' mode and checking propagation when selectors are set and unset ('select', 'treeSelect', 'none', 'all'). Unit testing is also modified to account for the new 'all' selection Signed-off-by: mzeevi <[email protected]>
3810154
to
6f0aca2
Compare
Should be fine now @adrianludwin |
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.
/lgtm
/approve
Thanks for this change!
I'd appreciate it if you could also submit a docs change afterwards. Here are the sections that should be updated:
Please indicate that these features will be beta in v1.1. Thanks!
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: adrianludwin, mzeevi 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 |
Addresses #16. As suggested in the issue, an additional SyncornizationMode called
Allow
is added (and notAllowPropagate
to allow the kubetcl plugin keep the same logic of converting the strings to Title).Allow only allows propagation of objects when a selector is set. When a selector is set,
Allow
follows the same logic asPropagate
. When no selectors are set, the object is not propagated.In addition, an
all
selector is added.New unit testing and e2e testing were made for this mode and for the new selector.
The documentation and quickstart testing are left untouched.