-
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
OCPBUGS-48260: Update dns1123Subdomain validation message for machineNamePrefix #2147
OCPBUGS-48260: Update dns1123Subdomain validation message for machineNamePrefix #2147
Conversation
@chiragkyal: This pull request references Jira Issue OCPBUGS-48260, which is invalid:
Comment The bug has been updated to refer to the pull request using the external bug tracker. In response to this:
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 openshift-eng/jira-lifecycle-plugin repository. |
Hello @chiragkyal! Some important instructions when contributing to openshift/api: |
/jira refresh |
@chiragkyal: This pull request references Jira Issue OCPBUGS-48260, which is invalid:
Comment In response to this:
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 openshift-eng/jira-lifecycle-plugin repository. |
/jira refresh |
@chiragkyal: This pull request references Jira Issue OCPBUGS-48260, which is valid. 3 validation(s) were run on this bug
Requesting review from QA contact: In response to this:
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 openshift-eng/jira-lifecycle-plugin repository. |
@chiragkyal |
Right, because each block must start and end with an alphanumeric character. Hyphens are not allowed at the start or end of each block. |
Do you think this needs to be reflected in the documentation as well? |
@JoelSpeed How about making the message more informative to avoid confusion?
|
Looks good, but we use the term |
fa0436c
to
2e22800
Compare
@@ -52,7 +52,7 @@ type ControlPlaneMachineSetSpec struct { | |||
// For example, if machineNamePrefix is set to 'control-plane', | |||
// and three machines are created, their names might be: | |||
// control-plane-abcde-0, control-plane-fghij-1, control-plane-klmno-2 | |||
// +openshift:validation:FeatureGateAwareXValidation:featureGate=CPMSMachineNamePrefix,rule="!format.dns1123Subdomain().validate(self).hasValue()",message="a lowercase RFC 1123 subdomain must consist of lower case alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character." | |||
// +openshift:validation:FeatureGateAwareXValidation:featureGate=CPMSMachineNamePrefix,rule="!format.dns1123Subdomain().validate(self).hasValue()",message="a lowercase RFC 1123 subdomain must consist of lowercase alphanumeric characters, hyphens ('-'), and periods ('.'). Each block, separated by periods, must start and end with an alphanumeric character. Hyphens are not allowed at the start or end of a block, and consecutive periods are not permitted." |
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.
Do we want to also update lines 48 to 50 to be similar?
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, updated the API field description to be similar.
Signed-off-by: chiragkyal <[email protected]>
Signed-off-by: chiragkyal <[email protected]>
2e22800
to
601c52c
Compare
/retest-required |
2 similar comments
/retest-required |
1 similar comment
/retest-required |
@JoelSpeed Any idea what's wrong with the aws jobs? They have a hard time passing. |
I think they are permabroke right now, I posted last week and folks have been looking into it |
1 similar comment
1 similar comment
1 similar comment
@chiragkyal: The following tests 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. |
d34de40
into
openshift:master
@chiragkyal: Jira Issue OCPBUGS-48260: All pull requests linked via external trackers have merged: Jira Issue OCPBUGS-48260 has been moved to the MODIFIED state. In response to this:
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 openshift-eng/jira-lifecycle-plugin repository. |
[ART PR BUILD NOTIFIER] Distgit: ose-cluster-config-api |
Update
dns1123Subdomain
CEL validation message formachineNamePrefix
field.https://issues.redhat.com/browse/OCPBUGS-48260
/assign @JoelSpeed