From 6d286178d19da3f55ddf3b94cbfc9e2916115b18 Mon Sep 17 00:00:00 2001
From: Samuel Vijaykumar M <mad.vijay@gmail.com>
Date: Thu, 1 Sep 2022 18:17:17 +0530
Subject: [PATCH] Missed to add permission for leases.

---
 .gitignore                  | 1 +
 example/operator/roles.yaml | 9 +++++++++
 2 files changed, 10 insertions(+)

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/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:
-- 
GitLab