-
Notifications
You must be signed in to change notification settings - Fork 370
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
Validate labels in ANP/ACNP/CG #3331
Conversation
989f958
to
9d65f45
Compare
LGTM, but do you think we should do the same for labelSelectors in ClusterGroups as well? |
bf0d5c7
to
cc03d67
Compare
Good catch. Added. |
Codecov Report
@@ Coverage Diff @@
## main #3331 +/- ##
==========================================
+ Coverage 60.85% 62.02% +1.16%
==========================================
Files 266 269 +3
Lines 26520 26733 +213
==========================================
+ Hits 16139 16581 +442
+ Misses 8591 8340 -251
- Partials 1790 1812 +22
Flags with carried forward coverage won't be shown. Click here to find out more.
|
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, just one style suggestion
Fixes antrea-io#3285. This PR added some additional validations to ANP, ACNP and CG in validating webhook. Antrea will validate labels used in ANP, ACNP and CG under PodSelector, NamespaceSelector and ExternalEntitySelector. Signed-off-by: wgrayson <[email protected]>
cc03d67
to
81e4ad5
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.
LGTM
/test-all |
/test-integration |
Fixes antrea-io#3285. This PR added some additional validations to ANP, ACNP and CG in validating webhook. Antrea will validate labels used in ANP, ACNP and CG under PodSelector, NamespaceSelector and ExternalEntitySelector. Signed-off-by: wgrayson <[email protected]>
Fixes #3285.
This PR added some additional validations to ANP, ACNP and CG in
validating webhook. Antrea will validate labels used in ANP, ACNP and
CG under PodSelector, NamespaceSelector and ExternalEntitySelector.
Signed-off-by: wgrayson [email protected]