projectcontour / contour-operator

Experimental repository to explore an operator for deploying Contour
Apache License 2.0
43 stars 34 forks source link

permission to watch for referencepolicies are not created by the operator #465

Closed raffaelespazzoli closed 2 years ago

raffaelespazzoli commented 2 years ago

What steps did you take and what happened: deploying the operator following the tutorial, I'm getting this error message:

time="2021-11-01T23:57:17Z" level=error msg="pkg/mod/k8s.io/client-go@v0.22.1/tools/cache/reflector.go:167: Failed to watch *v1alpha2.ReferencePolicy: failed to list *v1alpha2.ReferencePolicy: referencepolicies.gateway.networking.k8s.io is forbidden: User \"system:serviceaccount:projectcontour:contour\" cannot list resource \"referencepolicies\" in API group \"gateway.networking.k8s.io\" at the cluster scope\n" context=kubernetes error="<nil>" location="reflector.go:138"

If I try to manually add that permission the operator overwrites the cluster role...

skriss commented 2 years ago

@raffaelespazzoli I have this PR up to fix that in main, we should get it merged tomorrow.

skriss commented 2 years ago

@raffaelespazzoli this should now be fixed in main, please check it out.

Closed by #464