-
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
Add label value regexp pattern verification in CRD labelSelector matchExpressions #2887
Conversation
Codecov Report
@@ Coverage Diff @@
## main #2887 +/- ##
==========================================
+ Coverage 60.30% 60.42% +0.12%
==========================================
Files 283 283
Lines 23504 23644 +140
==========================================
+ Hits 14173 14287 +114
- Misses 7797 7817 +20
- Partials 1534 1540 +6
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Signed-off-by: Wenqi Qiu <[email protected]>
@@ -172,6 +172,7 @@ spec: | |||
values: | |||
items: | |||
type: string | |||
pattern: "^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?$" |
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 applies to other CRDs that have "matchExpressions", could you address all of them in this PR?
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.
Sure, good idea. Done.
I think this PR title should be updated to Add label values regexp pattern verification in CRD labelSelector matchExpressions
?
Signed-off-by: Wenqi Qiu <[email protected]>
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-e2e |
/test-conformance |
Improve ExternalIPPool nodeSelector fields CRD schema verification
Fixes: #2573
Signed-off-by: Wenqi Qiu [email protected]