-
Notifications
You must be signed in to change notification settings - Fork 797
fix: Handle shortening cluster names for clusters named by their FQDN. #3758
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
Conversation
|
Hi @jsharpe. Thanks for your PR. I'm waiting for a jenkins-x 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. 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. |
|
/assign @dwnusbaum |
|
/hold
Apache Spark had a similar issue: https://issues.apache.org/jira/browse/SPARK-24894 their fix was apache/spark#23781 |
e68a891 to
bb876a0
Compare
|
/hold cancel |
|
/ok-to-test |
|
/retest |
|
check this #3755 (comment) |
Closes jenkins-x#3755 Signed-off-by: James Sharpe <[email protected]>
Yes I saw this comment but I shouldn't have to work around it in this way. The code is broken. |
Note that if you make this change it breaks the kops tooling as it needs the name in kube config with the dots if that is how it was created. |
@jtnord Is this not correct? This change does not address #2864 and #3795, but kube.ToValidNameTruncated seems to provide the better name shortening than ShortClusterName As next step, one could concatenate the truncated string with a truncated hash of the original name (eg n characters of the sha-1 hash) |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jtnord 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 |
jenkins-x#3758) Closes jenkins-x#3755 Signed-off-by: James Sharpe <[email protected]>
jenkins-x#3758) Closes jenkins-x#3755 Signed-off-by: James Sharpe <[email protected]>
Submitter checklist
Description
Fixes the case that the cluster name is a FQDN which then ends up with a short name ending in a dot which forms an invalid name used for creating the vault service account
Special notes for the reviewer(s)
Which issue this PR fixes
fixes #3755