Skip to content
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

Truncate secret names to prevent going over 63 char limit. #390

Closed
wants to merge 1 commit into from

Conversation

dalees
Copy link

@dalees dalees commented Aug 13, 2024

Some secrets created for very long cluster names were going over the 63 char label limit of Kubernetes, and were not deploying.

Example error message:
failureMessage: 'HelmRelease.addons.stackhpc.com "reallylongnamecluster1reallylo-oe62woigm3qq-ccm-openstack"
is invalid: metadata.labels: Invalid value: "secret.addons.stackhpc.com/reallylongnamecluster1reallylo-oe62woigm3qq-ccm-openstack-config":
name part must be no more than 63 characters'

Some secrets created for very long cluster names were going over the
63 char label limit of Kubernetes, and were not deploying.

Example error message:
  failureMessage: 'HelmRelease.addons.stackhpc.com "reallylongnamecluster1reallylo-oe62woigm3qq-ccm-openstack"
    is invalid: metadata.labels: Invalid value: "secret.addons.stackhpc.com/reallylongnamecluster1reallylo-oe62woigm3qq-ccm-openstack-config":
    name part must be no more than 63 characters'
@mkjpryor
Copy link
Collaborator

mkjpryor commented Aug 13, 2024

@dalees

We also noticed this, and fixed it in the addon provider instead:

azimuth-cloud/cluster-api-addon-provider#115

It isn't in a released version yet, but will be soon.

@dalees
Copy link
Author

dalees commented Aug 13, 2024

@dalees

We also noticed this, and fixed it in the addon provider instead:

azimuth-cloud/cluster-api-addon-provider#115

It isn't in a released version yet, but will be soon.

Thank you @mkjpryor - I'll test and look to update our provider to this instead!

@dalees dalees closed this Aug 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants