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

Improve task_id to pod name conversion #27524

Merged
merged 1 commit into from
Nov 7, 2022

Conversation

dstandish
Copy link
Contributor

There are a few rules for pod names that we have to handle. See here: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/.

One rule is must start and end with alphanumeric. Another is only alphanum, dot, -, and lowercase. Finally, no more than 253 chars.

I added tests for the new behavior but also some incidental (perhaps surprising) other behavior namely the way that adding random suffix actually truncates the given pod name substantially.

@eladkal
Copy link
Contributor

eladkal commented Nov 7, 2022

failures :(

There are a few rules for pod names that we have to handle.  See here: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/.

One rule is must start and end with alphanumeric.  Another is only alphanum, dot, -, and lowercase.  Finally, no more than 253 chars.

I added tests for the new behavior but also some incidental (perhaps surprising) other behavior namely the way that adding random suffix actually truncates the given pod name substantially.
@dstandish dstandish merged commit eee3df4 into apache:main Nov 7, 2022
@dstandish dstandish deleted the improve-task-id-to-pod-name branch November 7, 2022 21:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:providers provider:cncf-kubernetes Kubernetes provider related issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants