Skip to content

Commit

Permalink
Make sure that argo can manage cluster-wide resources from the releva…
Browse files Browse the repository at this point in the history
…nt namespaces

Otherwise we can error out with:

  Cluster level ClusterRoleBinding vault-server-binding cannot be managed
  when in namespaced mode

By setting ARGOCD_CLUSTER_CONFIG_NAMESPACES to the namespaces where
argocd instance is installed we allow it to create cluster wide
resources for all namespaces.

Tested this and now I am correctly able to invoke the vault helm chart
from argo without the above error.

References:
- argoproj/argo-cd#5886
- argoproj-labs/argocd-operator#385
  • Loading branch information
mbaldessari committed Dec 14, 2021
1 parent 301ad97 commit cc3e4cd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions install/templates/argocd/subscription.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ spec:
name: openshift-gitops-operator
source: redhat-operators
sourceNamespace: openshift-marketplace
config:
env:
- name: ARGOCD_CLUSTER_CONFIG_NAMESPACES
value: {{ .Release.Name }}-{{ .Values.main.clusterGroupName }},openshift-gitops
{{- if .Values.main.options.useCSV }}
startingCSV: openshift-gitops-operator.{{ .Values.main.gitops.csv }}
{{- end }}
Expand Down

0 comments on commit cc3e4cd

Please sign in to comment.