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

[K8s] Fix validating label keys #5670

Merged
merged 2 commits into from
Jun 2, 2024

Conversation

liranbg
Copy link
Member

@liranbg liranbg commented Jun 2, 2024

Previously we have validated for max length of the entire key which is wrong according to k8s spec https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#syntax-and-character-set whereas the key can be split into 2 segments in case of a "/" delimiter. prefix and name. the name is indeed limited to 64 chars while the prefix can be longer and up to 254 chars.

This PR also indicating the key has been truncated in error in case it exceeds the default 64 chars.

https://iguazio.atlassian.net/browse/ML-5872

@liranbg liranbg merged commit cadaf2b into mlrun:development Jun 2, 2024
11 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.

None yet

2 participants