Skip to content

Commit f930ad4

Browse files
committed
fix(devbox): add lease permissions for agent leader election (#6933)
Signed-off-by: Dejan Zele Pejchev <pejcev.dejan@gmail.com>
1 parent e114099 commit f930ad4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

cmd/tcl/kubectl-testkube/devbox/devutils/namespace.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,11 @@ func (n *NamespaceObject) createRole() error {
145145
APIGroups: []string{""},
146146
Resources: []string{"secrets", "configmaps"},
147147
},
148+
{
149+
Verbs: []string{"get", "watch", "list", "create", "patch", "update", "delete"},
150+
APIGroups: []string{"coordination.k8s.io"},
151+
Resources: []string{"leases"},
152+
},
148153
{
149154
Verbs: []string{"get", "watch", "list", "create", "patch", "update", "delete", "deletecollection"},
150155
APIGroups: []string{"testworkflows.testkube.io"},

0 commit comments

Comments
 (0)