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

Validate and automatically clean/truncate container names #1529

Open
polyaxon-team opened this issue Apr 26, 2023 · 0 comments
Open

Validate and automatically clean/truncate container names #1529

polyaxon-team opened this issue Apr 26, 2023 · 0 comments

Comments

@polyaxon-team
Copy link
Contributor

Describe the bug

Polyaxon generates init container names automatically based on the connection's name to make it clear what the container's purpose is. If the connection name is long the container name is then invalid and makes jobs/services un-deployable.

To reproduce

Use a long connection name, for example the artifacts store, and deploy a tensorboard, the system will show an warning like the following:

Deployment.apps "plx-operation-UUID" is invalid:              
spec.template.spec.initContainers[2].name: Invalid value:                                 
"polyaxon-init-artifacts-VERY_LONG_NAME-39c73cfbbd": must be no
more than 63 characters                                                                   

Expected behavior

The system should automatically clean the container names and auto-truncate to respect k8s limit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant