-
Notifications
You must be signed in to change notification settings - Fork 524
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
Power VS: Revert 2076 due to ratchetting validation bug #2136
base: master
Are you sure you want to change the base?
Conversation
Hello @mjturek! Some important instructions when contributing to openshift/api: |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: mjturek 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 |
config/v1/types_infrastructure.go
Outdated
@@ -1699,7 +1699,8 @@ type PowerVSServiceEndpoint struct { | |||
// Power Cloud - https://cloud.ibm.com/apidocs/power-cloud | |||
// | |||
// +required | |||
// +kubebuilder:validation:Enum=CIS;COS;COSConfig;DNSServices;GlobalCatalog;GlobalSearch;GlobalTagging;HyperProtect;IAM;KeyProtect;Power;ResourceController;ResourceManager;VPC | |||
// +kubebuilder:validation:Required |
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.
Drop this please
config/v1/types_infrastructure.go
Outdated
@@ -1699,7 +1699,8 @@ type PowerVSServiceEndpoint struct { | |||
// Power Cloud - https://cloud.ibm.com/apidocs/power-cloud | |||
// | |||
// +required | |||
// +kubebuilder:validation:Enum=CIS;COS;COSConfig;DNSServices;GlobalCatalog;GlobalSearch;GlobalTagging;HyperProtect;IAM;KeyProtect;Power;ResourceController;ResourceManager;VPC | |||
// +kubebuilder:validation:Required | |||
// +kubebuilder:validation:Pattern=`^[a-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.
If you include capital letters here, then the installer could at least validate for the correct pattern for the enum and we could get closer to having this feature working
You could also split the service endpoint and have a status version with different validation, and only revert the validation of the status version of the struct
3ae3636
to
82e6ba4
Compare
This reverts commit 6e64326.
82e6ba4
to
fb3a3b2
Compare
/test e2e-gcp |
/retest-required Can we add a validation check to the install so that it verifies the install config against the enum values we are removing? |
@mjturek: The following test failed, say
Full PR test history. Your PR dashboard. 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. I understand the commands that are listed here. |
No description provided.