Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix WebHook controller crashing on minishift
Installing tekton on minishift fails to bring up webhook-controller pod due missing RBAC policy. Pod logs shows the following error ``` json { "level":"error", "logger":"webhook", "caller":"webhook/webhook.go:310" , "msg":"failed to register webhook" "knative.dev/controller":"webhook" "error":"failed to create a webhook: mutatingwebhookconfigurations.admissionregistration.k8s.io \"webhook.tekton.dev\" is forbidden: cannot set blockOwnerDeletion if an ownerReference refers to a resource you can't set finalizers on: no RBAC policy matched " "stacktrace":" github.com/knative/build-pipeline/vendor/github.com/knative/pkg/webhook.(*AdmissionController).Run /usr/local/google/home/jasonhall/go/src/github.com/knative/build-pipeline/vendor/github.com/knative/pkg/webhook/webhook.go:310 main.main /usr/local/google/home/jasonhall/go/src/github.com/knative/build-pipeline/cmd/webhook/main.go:97" } ``` This patch fixes it by adding the missing rules for `deployments/finailizer` resource to the cluster-role.
- Loading branch information