Open sanmai-NL opened 1 year ago
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.
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.
Care to open a PR to fix this to make the generated volume names compatibile?
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?
/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.