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

Deployments: Add watch permission to thick example #1171

Merged
merged 1 commit into from
Dec 4, 2023

Conversation

itz-Jana
Copy link
Contributor

@itz-Jana itz-Jana commented Oct 3, 2023

The ClusterRole was missing the watch permission on pods, which resulted in Multus throwing this error message every few seconds:

Failed to watch *v1.Pod: unknown (get pods)

I am unsure if this permission is also needed for the other 2 example yamls, so I've just added it to the one I tested for the moment.

The ClusterRole was missing the watch permission on pods, which resulted in Multus throwing this error message every few seconds:

Failed to watch *v1.Pod: unknown (get pods)
@sdwilsh
Copy link

sdwilsh commented Nov 4, 2023

Based on 50c0357, I'm guessing you might also need to update e2e/templates/multus-daemonset-thick.yml.j2, @J0n4t4n. Adding list, which is in main right now, and watch from this PR, I was able to make this log line go away from the kube-multus-ds pods on v4.0.2:

W1104 17:49:40.828687  188635 reflector.go:533] k8s.io/client-go/informers/factory.go:150: failed to list *v1.Pod: pods is forbidden: User "system:serviceaccount:kubevirt:multus" cannot list resource "pods" in API group "" at the cluster scope

Copy link
Collaborator

@maiqueb maiqueb left a comment

Choose a reason for hiding this comment

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

Good catch.

Please do what @sdwilsh is saying in #1171 (comment) and also add the watch permission to the e2e test template manifest.

@s1061123
Copy link
Member

s1061123 commented Dec 4, 2023

Thank you for the PR, @J0n4t4n ! Merged.

LionelJouin added a commit to LionelJouin/multus-cni that referenced this pull request Jan 11, 2024
As described in k8snetworkplumbingwg#1171, the watch function is required in the clusterrole
for the thick Multus version, otherwise "Failed to watch *v1.Pod" would
be returned.
s1061123 pushed a commit that referenced this pull request Jan 18, 2024
As described in #1171, the watch function is required in the clusterrole
for the thick Multus version, otherwise "Failed to watch *v1.Pod" would
be returned.
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.

4 participants