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

Support pods without volumes #140

Merged
merged 1 commit into from
Jul 20, 2023

Conversation

zeeke
Copy link
Member

@zeeke zeeke commented Jun 30, 2023

When a pod has .spec.automountServiceAccountToken=false, it has no volumes nor containers[*].volumeMounts, and the mutating webhook must produce a patch to create those arrays.

Sample error:

Internal error occurred: add operation does not apply: doc is missing path: "/spec/containers/0/volumeMounts/-": missing value

When a pod has `.spec.automountServiceAccountToken=false`, it has no
volumes nor containers[*].volumeMounts, and the mutating webhook
must produce a patch to create those arrays.

Signed-off-by: Andrea Panattoni <[email protected]>
@zeeke
Copy link
Member Author

zeeke commented Jul 10, 2023

@Eoghan1232 , @SchSeba , @adrianchiris Please, take a look

Copy link
Collaborator

@Eoghan1232 Eoghan1232 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@adrianchiris adrianchiris merged commit 405192d into k8snetworkplumbingwg:master Jul 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants