-
Notifications
You must be signed in to change notification settings - Fork 578
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
✨ ROSA: support long cluster name #4851
Conversation
Hi @serngawy. 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/test-infra repository. |
/cc @muraee |
@serngawy there was a customer issue due to which this cluster name length was kept as limited, so I dont think its wise to increase it to so many characters. |
/retitle ✨ ROSA: support long cluster name |
// +kubebuilder:validation:MaxLength:=15 | ||
// +kubebuilder:validation:Pattern:=`^[a-z]([-a-z0-9]*[a-z0-9])?$` | ||
// +optional | ||
DomainPrefix string `json:"domainPrefix"` |
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.
can we have a more descriptive comment here of what this field does instead.
DomainPrefix is an optional unique domain prefix of the cluster. This will be used when generating a sub-domain for your cluster on openshiftapps.com
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.
update it
// +kubebuilder:validation:MaxLength:=15 | ||
// +kubebuilder:validation:Pattern:=`^[a-z]([-a-z0-9]*[a-z0-9])?$` | ||
// +optional | ||
DomainPrefix string `json:"domainPrefix"` |
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.
DomainPrefix string `json:"domainPrefix"` | |
DomainPrefix string `json:"domainPrefix,omitempty"` |
optional fields need omitempty
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.
ops, add it
/lgtm |
RosaClusterName string `json:"rosaClusterName"` | ||
|
||
// DomainPrefix is an optional unique domain prefix addedd to the cluster domain name. It will be used |
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.
// DomainPrefix is an optional unique domain prefix addedd to the cluster domain name. It will be used | |
// DomainPrefix is an optional prefix added to the cluster's domain name. It will be used |
Signed-off-by: melserngawy <[email protected]>
/ok-to-test |
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.
/approve
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: vincepri The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What type of PR is this?
/kind feature
What this PR does / why we need it:
It allow long cluster name and domain prefix
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 #
Special notes for your reviewer:
Checklist:
Release note: