Skip to content

Conversation

@ash2k
Copy link
Member

@ash2k ash2k commented Mar 16, 2023

Currently strategy is not specified and is always RESTScopeAutomatic. I have a case where I need to set it to RESTScopeNamespace, but there is no way to set it. This PR exposes an option to make it possible.

See #572 (comment) and the following conversation for the background.

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Mar 16, 2023
@k8s-ci-robot k8s-ci-robot requested review from karlkfi and seans3 March 16, 2023 05:09
@k8s-ci-robot k8s-ci-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Mar 16, 2023
@ash2k
Copy link
Member Author

ash2k commented Mar 16, 2023

/retest

@ash2k
Copy link
Member Author

ash2k commented Mar 20, 2023

@karlkfi @seans3 @mortent PTAL

Copy link
Contributor

@seans3 seans3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the addition.

/approve
/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Mar 20, 2023
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ash2k, seans3

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 20, 2023
@k8s-ci-robot k8s-ci-robot merged commit ed4ec48 into kubernetes-sigs:master Mar 20, 2023
@karlkfi
Copy link
Contributor

karlkfi commented Mar 20, 2023

I probably would have suggested dropping the Watcher- prefix and just making it the scope for the whole Applier/Destroyer. Then make a new higher level scope enum and translate it into the watch enum as needed. Then we could add some up front validation to validate scope.

@ash2k ash2k deleted the pass-watch-strategy branch March 21, 2023 00:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants