NE-955: IngressController - Add LoadBalancer AllowedSourceRanges API#1222
Conversation
|
Skipping CI for Draft Pull Request. |
|
Hello @suleymanakbas91! Some important instructions when contributing to openshift/api: For merging purposes, this repository follows the no-Feature-Freeze process which means that in addition to the standard
OR
Who should apply these qe/docs/px labels?
|
|
/test all |
e839707 to
f16f4a2
Compare
|
/test all |
operator/v1/0000_50_ingress-operator_00-ingresscontroller.crd.yaml
Outdated
Show resolved
Hide resolved
operator/v1/0000_50_ingress-operator_00-ingresscontroller.crd.yaml
Outdated
Show resolved
Hide resolved
f16f4a2 to
584ef2b
Compare
47ce43f to
5553a89
Compare
|
/assign @gcs278 |
|
/assign @Miciah |
|
No comments, looks good to me, but I'll wait for enhancement proposal to merge before lgtm. |
5553a89 to
bfb42de
Compare
69a20a8 to
aaa02c6
Compare
aaa02c6 to
39ab429
Compare
|
Playground to test the CIDR range validation pattern: https://go.dev/play/p/kxt-x6LJknW |
39ab429 to
0bb4025
Compare
|
Rebased over latest master. Run |
0bb4025 to
9f74401
Compare
9f74401 to
13208b8
Compare
|
|
||
| // CIDR is an IP address range in CIDR notation (for example, "10.0.0.0/8" | ||
| // or "fd00::/8"). | ||
| // +kubebuilder:validation:Pattern=`(^(([0-9]|[0-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[0-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])/([0-9]|[12][0-9]|3[0-2])$)|(^s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]d|1dd|[1-9]?d)(.(25[0-5]|2[0-4]d|1dd|[1-9]?d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]d|1dd|[1-9]?d)(.(25[0-5]|2[0-4]d|1dd|[1-9]?d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]d|1dd|[1-9]?d)(.(25[0-5]|2[0-4]d|1dd|[1-9]?d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]d|1dd|[1-9]?d)(.(25[0-5]|2[0-4]d|1dd|[1-9]?d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]d|1dd|[1-9]?d)(.(25[0-5]|2[0-4]d|1dd|[1-9]?d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]d|1dd|[1-9]?d)(.(25[0-5]|2[0-4]d|1dd|[1-9]?d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]d|1dd|[1-9]?d)(.(25[0-5]|2[0-4]d|1dd|[1-9]?d)){3}))|:)))(%.+)?s*(\/(12[0-8]|1[0-1][0-9]|[1-9][0-9]|[0-9]))$)` |
13208b8 to
c6cf842
Compare
c6cf842 to
94d4fe9
Compare
94d4fe9 to
76624ee
Compare
|
/lgtm |
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: deads2k, Miciah, suleymanakbas91 The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
if you want to test your regex, @JoelSpeed created a way to provide a test manifest and expected result files. |
|
/label qe-approved |
|
@suleymanakbas91: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions 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. I understand the commands that are listed here. |
Some examples of the most minimal tests can be found in #1305, from there we can add additional test cases to exercise various expected positive and negative validations, lmk if you want to try this out |
operator/v1/types_ingress.go(CIDR): New type. Specify an IP address range in CIDR notation.(LoadBalancerStrategy): Add AllowedSourceRanges field of type slice of CIDR.
Enhancement Proposal: openshift/enhancements#1177