Skip to content

Commit 3af4364

Browse files
authored
Merge pull request #14 from rh-mobb/foster/acm-stuff
added acm spoke hub clusters
2 parents 26ee1de + 2c21668 commit 3af4364

3 files changed

Lines changed: 18 additions & 1 deletion

File tree

charts/cluster-bootstrap-acm-hub-registration/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ apiVersion: v2
55
name: cluster-bootstrap-acm-hub-registration
66
description: Helm chart to register spoke clusters with ACM hub
77
type: application
8-
version: 0.1.3
8+
version: 0.1.4
99
appVersion: "1.0"

charts/cluster-bootstrap-acm-hub-registration/templates/gitopscluster.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,20 @@ spec:
1212
kind: Placement
1313
apiVersion: cluster.open-cluster-management.io/v1beta1
1414
name: {{ .Values.gitopsCluster.placementName }}
15+
{{- if .Values.gitopsCluster.appArgoNamespace }}
16+
---
17+
apiVersion: apps.open-cluster-management.io/v1beta1
18+
kind: GitOpsCluster
19+
metadata:
20+
name: {{ .Values.clusterName }}-app-gitops
21+
namespace: {{ .Values.gitopsCluster.appArgoNamespace }}
22+
spec:
23+
argoServer:
24+
cluster: local-cluster
25+
argoNamespace: {{ .Values.gitopsCluster.appArgoNamespace }}
26+
placementRef:
27+
kind: Placement
28+
apiVersion: cluster.open-cluster-management.io/v1beta1
29+
name: {{ .Values.gitopsCluster.placementName }}
30+
{{- end }}
1531
{{- end }}

charts/cluster-bootstrap-acm-hub-registration/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,5 @@ applicationManager:
1919
gitopsCluster:
2020
enabled: true
2121
argoNamespace: openshift-gitops
22+
appArgoNamespace: application-gitops
2223
placementName: all-spoke-clusters

0 commit comments

Comments
 (0)