diff --git a/.gitignore b/.gitignore index a9b78ec1b..15eb3155e 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ .bash_history .vscode .idea/ +/tmp \ No newline at end of file diff --git a/charts/redisoperator/templates/service-account.yaml b/charts/redisoperator/templates/service-account.yaml index b136238d2..940339d22 100644 --- a/charts/redisoperator/templates/service-account.yaml +++ b/charts/redisoperator/templates/service-account.yaml @@ -40,6 +40,15 @@ rules: - patch - update - watch + - apiGroups: + - coordination.k8s.io + resources: + - leases + verbs: + - create + - get + - list + - update - apiGroups: - "" resources: diff --git a/example/operator/roles.yaml b/example/operator/roles.yaml index b57180e5f..4d4611b3f 100644 --- a/example/operator/roles.yaml +++ b/example/operator/roles.yaml @@ -16,6 +16,15 @@ rules: - customresourcedefinitions verbs: - "*" + - apiGroups: + - coordination.k8s.io + resources: + - leases + verbs: + - create + - get + - list + - update - apiGroups: - "" resources: