From 1669fb97d0866bc7366f06e59dfbbf7d2125c7e9 Mon Sep 17 00:00:00 2001 From: JordanGoasdoue Date: Tue, 27 Aug 2024 17:39:22 +0200 Subject: [PATCH] chore: add condition to enable more role permission --- charts/lighthouse/templates/tekton-controller-role.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/charts/lighthouse/templates/tekton-controller-role.yaml b/charts/lighthouse/templates/tekton-controller-role.yaml index 81ac2c185..c40c1ed02 100644 --- a/charts/lighthouse/templates/tekton-controller-role.yaml +++ b/charts/lighthouse/templates/tekton-controller-role.yaml @@ -19,14 +19,18 @@ rules: - list - get - watch + {{- if .Values.tektoncontroller.rerunPrReconciler }} - update + {{- end }} - apiGroups: - lighthouse.jenkins.io resources: - lighthousebreakpoints - lighthousejobs verbs: + {{- if .Values.tektoncontroller.rerunPrReconciler }} - create + {{- end }} - get - update - list