-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
kube generate
must transform invalid names or throw fatal fault
#16542
Comments
Care to open a PR to fix this to make the generated volume names compatibile? |
@umohnani8 PTAL |
Could you give us the podman run command you used to generate the container. |
I'll try to, but the catch 22 is: I generated a running container as created by VS Code Dev Containers. So I didn't control the command line nor used a Compose file. |
It would be helpful if your team points out where in the source tree to look. Time spent on overhead makes it less attractive to contribute, for some reason. ;) |
I would start here: pkg/specgen/generate/kube/kube.go |
A friendly reminder that this issue had no activity for 30 days. |
@sanmai-NL @umohnani8 Is this still an issue? |
@rhatdan I can confirm its still an issue, I had to rename a folder in my project path (example: ~/Playground/project to ~/playground/project) to be able to use podman kube apply to my kind cluster. |
Fixes: containers#16542 Kubernetes only allows lower case persistent volume names. Signed-off-by: Daniel J Walsh <[email protected]>
@rhatdan Underscores aren't supported either so the issue can 't be closed yet. |
/kind bug
Description
podman kube generate
takes e.g., volume names as is, but Kubernetes has naming rules that seem to differ from Docker Engine's.Steps to reproduce the issue:
Create a container using Kubernetes-invalid names for volumes.
Run
podman kube generate > manifest.yml
.kubectl apply --filename=manifest.yml
.Describe the results you received:
Describe the results you expected:
Valid names and ability to apply the Kubernetes manifest.
This applies to volume names, indeed to any type name.
Additional information you deem important (e.g. issue happens only occasionally):
Output of
podman version
:Output of
podman info
:Not applicable.
Package info (e.g. output of
rpm -q podman
orapt list podman
orbrew info podman
):Not applicable.
Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide? (https://github.com/containers/podman/blob/main/troubleshooting.md)
Yes.
Additional environment details (AWS, VirtualBox, physical, etc.):
macOS. Container created is VS Code dev container.
The text was updated successfully, but these errors were encountered: