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

test: Extend coredns clusterrole with additional resource permissions #18104

Merged

Commits on Dec 2, 2021

  1. test: Extend coredns clusterrole with additional resource permissions

    Commit 398d55c didn't add permissions for `endpointslices` resource to the
    coredns `cluterrole` on k8s < 1.20. As a result, core-dns deployments
    failed on the these versions with the error -
    
    `2021-11-30T14:09:43.349414540Z E1130 14:09:43.349292 1 reflector.go:138] pkg/mod/k8s.io/client-go@v0.20.2/tools/cache/reflector.go:167: Failed to watch *v1beta1.EndpointSlice: failed to list *v1beta1.EndpointSlice: endpointslices.discovery.k8s.io is forbidden: User "system:serviceaccount:kube-system:coredns" cannot list resource "endpointslices" in API group "discovery.k8s.io" at the cluster scope`
    
    Fixes: 398d55c
    Signed-off-by: Aditi Ghag <aditi@cilium.io>
    aditighag committed Dec 2, 2021
    Configuration menu
    Copy the full SHA
    80f872f View commit details
    Browse the repository at this point in the history