-
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
generate kube: do not print privileged: false
#11995
Comments
What podman command did you use to generate the pod or container? |
@dilyanpalauzov It is great that you are doing these tests, but please include the steps on how to create the containers that you are generating the kube yaml from. |
I run a container as described at https://mail.aegee.org/cgit/aegee-ldap/tree/readme.md#n13.
|
If podman uses Workdir="/" or the workdir specified in the image, it should not add it to the yaml. If Podman find environment variables in the image, they should not get added to the yaml. If the container or pod do not have changes to SELinux we should not print seLinuxOpt{} If the container or pod do not change any dns options the yaml should not have a dnsOption={} If the container is not privileged it should not have privileged=false in the yaml. Fixes: containers#11995 Signed-off-by: Daniel J Walsh <[email protected]>
If podman uses Workdir="/" or the workdir specified in the image, it should not add it to the yaml. If Podman find environment variables in the image, they should not get added to the yaml. If the container or pod do not have changes to SELinux we should not print seLinuxOpt{} If the container or pod do not change any dns options the yaml should not have a dnsOption={} If the container is not privileged it should not have privileged=false in the yaml. Fixes: containers#11995 Signed-off-by: Daniel J Walsh <[email protected]>
According to https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/pod-v1/#security-context-1 the default value for privileged is false, so emitting
privileged: false
is redundant.The text was updated successfully, but these errors were encountered: