Skip to content

Conversation

@jzhou77
Copy link
Contributor

@jzhou77 jzhou77 commented May 14, 2025

User ID is used as part of ensemble name, which is limited to be 63 bytes long. When user ID becomes long, the original logic truncate the ensemble such that a non-alphanumeric character can be the last one, causing failures in k8s like:

{"reason":"FieldValueInvalid","message":"Invalid value: "20250514-000408-XXXXX-XXXXXXX-XXXXX-XXXXXXXXXXX-XXXXXX-XXXX-": a valid label must be an empty string or consist of alphanumeric characters, '-', '' or '.', and must start and end with an alphanumeric character (e.g. 'MyValue', or 'my_value', or '12345', regex used for validation is '(([A-Za-z0-9][-A-Za-z0-9.]*)?[A-Za-z0-9])?')","field":"metadata.labels"}]},"code":422}

@jzhou77 jzhou77 requested a review from spraza May 14, 2025 16:27
spraza
spraza previously approved these changes May 14, 2025
johscheuer
johscheuer previously approved these changes May 14, 2025
User ID is used as part of ensemble name, which is limited to be 63 bytes long.
When user ID becomes long, the original logic truncate the ensemble such that
a non-alphanumeric character can be the last one, causing failures in k8s like:

{"reason":"FieldValueInvalid","message":"Invalid value: \"20250514-000408-XXXXX-XXXXXXX-XXXXX-XXXXXXXXXXX-XXXXXX-XXXX-\": a valid label must be an empty string or consist of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyValue',  or 'my_value',  or '12345', regex used for validation is '(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?')","field":"metadata.labels"}]},"code":422}
@jzhou77 jzhou77 merged commit a7fecbf into FoundationDB:main May 15, 2025
2 checks passed
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.

3 participants