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

podman generate kube creates incorret YAML after bind-mount-options: #15170

Closed
dilyanpalauzov opened this issue Aug 3, 2022 · 2 comments · Fixed by #15599
Closed

podman generate kube creates incorret YAML after bind-mount-options: #15170

dilyanpalauzov opened this issue Aug 3, 2022 · 2 comments · Fixed by #15599
Labels
locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.

Comments

@dilyanpalauzov
Copy link
Contributor

$ podman generate kube vigorous_shannon
# Save the output of this file and use kubectl create -f to import
# it into Kubernetes.                                               
#                        

apiVersion: v1
kind: Pod          
metadata:            
  annotations:           
    bind-mount-options:/home/d/data: Z
…

$ kubectl create -f
error: error parsing …: error converting YAML to JSON: yaml: line 5: mapping values are not allowed in this context

Line 5 is bind-mount-options:/home/d/data: Z

$ podman version
Client:       Podman Engine
Version:      4.2.0-dev
API Version:  4.2.0-dev
Go Version:   go1.18.4
Git Commit:   c09457e34a429622475e27fe68e17effe47fe0c3
Built:        Tue Aug  2 17:37:21 2022
OS/Arch:      linux/amd64
@dilyanpalauzov
Copy link
Contributor Author

This does not produce parsing error:

bind-mount-options: /home/d/data:Z

That is: a space after the first colon, no space after the second colon. podman generate kube puts no space after the first colon and inserts a space after the second colon.

@rhatdan
Copy link
Member

rhatdan commented Aug 3, 2022

@umohnani8 PTAL

@github-actions github-actions bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Sep 17, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants