-
Notifications
You must be signed in to change notification settings - Fork 875
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
fix empty resource selectors which result to policy will not be consi… #1706
fix empty resource selectors which result to policy will not be consi… #1706
Conversation
…dered matched Signed-off-by: likakuli <1154584512@qq.com>
/assign |
@huone1 Please help with it. |
Any problem with it? |
Sorry for let this sit. I'll try my best to look at it today. |
I guess we can't apply an empty apiVersion: policy.karmada.io/v1alpha1
kind: PropagationPolicy
metadata:
name: nginx-propagation
spec:
resourceSelectors:
placement:
clusterAffinity:
clusterNames:
- member1
- member2 Set ResourceSelector to empty, and this is not allowed:
I'm not saying this patch is not acceptable, just want to know your cases? Am I missing something? |
Sorry, ignore the common on above. What we are talking about is OverridePolicy. Can you share your yamls here? |
I get it. Your yaml might look like this |
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
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: RainbowMango 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 |
…dered matched
Signed-off-by: likakuli 1154584512@qq.com
What type of PR is this?
/kind bug
What this PR does / why we need it:
Override policy with empty resourceselectors should effective as nil which means match every resource.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?: