-
Notifications
You must be signed in to change notification settings - Fork 87
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
Network regex validation for powervs cluster #2145
base: main
Are you sure you want to change the base?
Network regex validation for powervs cluster #2145
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: carmal891 The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Hi @carmal891. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions 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-sigs/prow repository. |
✅ Deploy Preview for kubernetes-sigs-cluster-api-ibmcloud ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
@Karthik-K-N As discussed, set the network regex validation only for powervs cluster for now. We can further triage the any additional changes required |
/ok-to-test |
766b208
to
646cb79
Compare
646cb79
to
3aced86
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.
@Karthik-K-N, I'm not quite sure if this validation makes sense in all scenarios.
IMO using regex is ideal when a resource exists but how will this validation help when DHCP server name is not set and it will end up creating a new DHCP server with name in format DHCPSERVER<dhcp_server_name>_Private
later in the flow. Isn't the main aim to check if the network regex matches the format?
Correct, But currently there is no way to identify whether the network exist or not only from spec. What we are trying to solve here is not allowing user to configure invalid network regex, For example: Say cluster name is I think RegEx was introduced when we didn't what will be the DHCP created subnet name format. But now we have clear idea. Should we support RegEx? or mark it as not supported? |
The same case will apply to network Name as well, when network name is given and network is not present, DHCP server that get's created will have either DHCP server name or cluster name not the network name. |
IMO
|
Yeah, I think this should be the behavior, We created #1726 to handle these scenarios. |
I agree. This makes sense and seems like the best way to handle new and existing resources. Regex should only be considered when the resource already exists. |
What this PR does / why we need it:
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #1994
Special notes for your reviewer:
/area provider/ibmcloud
Release note: