travisghansen / kubernetes-pfsense-controller

Integrate Kubernetes and pfSense
Apache License 2.0
197 stars 22 forks source link

Change ClusterRole to access ingresses on newer Kubernetes versions #4

Closed toxuin closed 4 years ago

toxuin commented 4 years ago

Impersonating the controller's service account (kubectl proxy --port=8080 --as system:serviceaccount:kube-system:kubernetes-pfsense-controller) I have requested the same resources and while it's accessing /apis/extensions/v1beta1/ingresses just fine, I get a 403 when accessing /apis/networking.k8s.io/v1beta1/ingresses.

With this change, it resolves fine!

Related issue: #3

travisghansen commented 4 years ago

I was actually wondering about that but hadn't had a chance to look yet. Nice find!