lwolf / kube-cleanup-operator

Kubernetes Operator to automatically delete completed Jobs and their Pods
MIT License
503 stars 109 forks source link

RBAC issue #46

Closed keszi000 closed 4 years ago

keszi000 commented 4 years ago

E0529 09:40:00.113780 1 reflector.go:178] github.com/lwolf/kube-cleanup-operator/pkg/controller/controller.go:143: Failed to list *v1.Job: jobs.batch is forbidden: User "system:serviceaccount:default:cleanup-operator" cannot list resource "jobs" in API group "batch" at the cluster scope

pls fix it in the deployment RBAC file: `apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: name: cleanup-operator rules:

lwolf commented 4 years ago

should work now