diff --git a/charts/cluster-bootstrap-acm-hub-registration/Chart.yaml b/charts/cluster-bootstrap-acm-hub-registration/Chart.yaml index 9a44a21..a61dcbb 100644 --- a/charts/cluster-bootstrap-acm-hub-registration/Chart.yaml +++ b/charts/cluster-bootstrap-acm-hub-registration/Chart.yaml @@ -5,5 +5,5 @@ apiVersion: v2 name: cluster-bootstrap-acm-hub-registration description: Helm chart to register spoke clusters with ACM hub type: application -version: 0.1.3 +version: 0.1.4 appVersion: "1.0" diff --git a/charts/cluster-bootstrap-acm-hub-registration/templates/gitopscluster.yaml b/charts/cluster-bootstrap-acm-hub-registration/templates/gitopscluster.yaml index 38d675a..1ed742d 100644 --- a/charts/cluster-bootstrap-acm-hub-registration/templates/gitopscluster.yaml +++ b/charts/cluster-bootstrap-acm-hub-registration/templates/gitopscluster.yaml @@ -12,4 +12,20 @@ spec: kind: Placement apiVersion: cluster.open-cluster-management.io/v1beta1 name: {{ .Values.gitopsCluster.placementName }} +{{- if .Values.gitopsCluster.appArgoNamespace }} +--- +apiVersion: apps.open-cluster-management.io/v1beta1 +kind: GitOpsCluster +metadata: + name: {{ .Values.clusterName }}-app-gitops + namespace: {{ .Values.gitopsCluster.appArgoNamespace }} +spec: + argoServer: + cluster: local-cluster + argoNamespace: {{ .Values.gitopsCluster.appArgoNamespace }} + placementRef: + kind: Placement + apiVersion: cluster.open-cluster-management.io/v1beta1 + name: {{ .Values.gitopsCluster.placementName }} +{{- end }} {{- end }} diff --git a/charts/cluster-bootstrap-acm-hub-registration/values.yaml b/charts/cluster-bootstrap-acm-hub-registration/values.yaml index 882283b..c2cb943 100644 --- a/charts/cluster-bootstrap-acm-hub-registration/values.yaml +++ b/charts/cluster-bootstrap-acm-hub-registration/values.yaml @@ -19,4 +19,5 @@ applicationManager: gitopsCluster: enabled: true argoNamespace: openshift-gitops + appArgoNamespace: application-gitops placementName: all-spoke-clusters