From 6974603c23726b0badac3cf2e2e5c1ba49235657 Mon Sep 17 00:00:00 2001 From: Michele Baldessari Date: Sun, 5 Jul 2026 14:19:58 +0200 Subject: [PATCH] Add additionalArgoAdmins support to configmap This has landed in the operator a while ago --- templates/pattern-operator-configmap.yaml | 3 +++ tests/pattern_operator_configmap_test.yaml | 15 +++++++++++++++ values.yaml | 3 +++ 3 files changed, 21 insertions(+) diff --git a/templates/pattern-operator-configmap.yaml b/templates/pattern-operator-configmap.yaml index 46c38b4..5d11f67 100644 --- a/templates/pattern-operator-configmap.yaml +++ b/templates/pattern-operator-configmap.yaml @@ -10,6 +10,9 @@ data: gitea.helmRepoUrl: {{ .Values.main.gitea.helmRepoUrl }} gitea.chartVersion: {{ .Values.main.gitea.chartVersion }} analytics.enabled: {{ .Values.main.analytics.enabled | quote }} + {{- if .Values.main.gitops.additionalArgoAdmins }} + gitops.additionalArgoAdmins: {{ .Values.main.gitops.additionalArgoAdmins }} + {{- end }} # gitops.sourceNamespace: GitOpsDefaultCatalogSourceNamespace # gitops.installApprovalPlan: GitOpsDefaultApprovalPlan diff --git a/tests/pattern_operator_configmap_test.yaml b/tests/pattern_operator_configmap_test.yaml index c5b29c9..2a43fa7 100644 --- a/tests/pattern_operator_configmap_test.yaml +++ b/tests/pattern_operator_configmap_test.yaml @@ -51,6 +51,21 @@ tests: path: data["gitops.channel"] value: bar + - it: Should not include gitops.additionalArgoAdmins by default + asserts: + - notExists: + path: data["gitops.additionalArgoAdmins"] + + - it: Should set gitops.additionalArgoAdmins + set: + main: + gitops: + additionalArgoAdmins: "group1,group2" + asserts: + - equal: + path: data["gitops.additionalArgoAdmins"] + value: "group1,group2" + - it: Should set gitea parameters set: main: diff --git a/values.yaml b/values.yaml index f84d881..d62d986 100644 --- a/values.yaml +++ b/values.yaml @@ -24,6 +24,9 @@ main: channel: "gitops-1.21" # -- Source to be used to install the gitops operator from operatorSource: redhat-operators + # -- Comma-separated list of additional ArgoCD admin groups. + # Only used when argoRBAC is not set. + additionalArgoAdmins: "" # -- Settings related to the in-cluster gitea installation gitea: