From a928775aaf182319d3bfe13102f36029c9db64c8 Mon Sep 17 00:00:00 2001 From: facchettos Date: Tue, 30 Jan 2024 15:43:37 +0100 Subject: [PATCH] fix --- charts/k0s/templates/rbac/role.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/k0s/templates/rbac/role.yaml b/charts/k0s/templates/rbac/role.yaml index 68f2fccde..f0280e31c 100644 --- a/charts/k0s/templates/rbac/role.yaml +++ b/charts/k0s/templates/rbac/role.yaml @@ -50,7 +50,7 @@ rules: resources: ["endpoints"] verbs: ["create", "delete", "patch", "update"] {{- end }} - {{- if or (gt (int .Values.replicas) 1) (gt (int .Values.syncer.replicas) 1) .Values.rbac.role.extended }} + {{- if or ( gt (int (include "vcluster.replicas" . ) ) 1) .Values.rbac.role.extended }} - apiGroups: ["coordination.k8s.io"] resources: ["leases"] verbs: ["create", "delete", "patch", "update", "get", "list", "watch"]