Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts/app-of-apps-acm-team-onboarding/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
name: app-of-apps-acm-team-onboarding
description: Chart to onboard teams on an ACM hub with AppProjects, RBAC, and placement infrastructure for spoke deployment via ApplicationSets
version: 0.3.1
version: 0.4.0
home: https://rh-mobb.github.io/validated-pattern-helm-charts/
maintainers:
- name: rh-mobb

This file was deleted.

43 changes: 0 additions & 43 deletions charts/app-of-apps-acm-team-onboarding/templates/placement.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion charts/cluster-bootstrap-acm-hub-registration/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.4
version: 0.2.1
appVersion: "1.0"
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ spec:
placementRef:
kind: Placement
apiVersion: cluster.open-cluster-management.io/v1beta1
name: {{ .Values.gitopsCluster.placementName }}
name: {{ .Values.clusterName }}
{{- end }}
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ metadata:
acm: spoke
environment: {{ .Values.environment }}
name: {{ .Values.clusterName }}
cluster.open-cluster-management.io/clusterset: {{ .Values.clusterName }}
spec:
hubAcceptsClient: {{ .Values.managedCluster.hubAcceptsClient }}
leaseDurationSeconds: {{ .Values.managedCluster.leaseDurationSeconds }}
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{{- if .Values.gitopsCluster.appArgoNamespace }}
---
# Per-cluster ManagedClusterSet so that each spoke can be individually
# bound to namespaces and referenced by team Placements.
apiVersion: cluster.open-cluster-management.io/v1beta2
kind: ManagedClusterSet
metadata:
name: {{ .Values.clusterName }}
spec: {}
---
# Bind this cluster's set to the application-gitops namespace so that
# Placements there can select it.
apiVersion: cluster.open-cluster-management.io/v1beta2
kind: ManagedClusterSetBinding
metadata:
name: {{ .Values.clusterName }}
namespace: {{ .Values.gitopsCluster.appArgoNamespace }}
spec:
clusterSet: {{ .Values.clusterName }}
---
# Per-cluster Placement that resolves to exactly this spoke.
# ApplicationSets reference this by name via clusterDecisionResource.
apiVersion: cluster.open-cluster-management.io/v1beta1
kind: Placement
metadata:
name: {{ .Values.clusterName }}
namespace: {{ .Values.gitopsCluster.appArgoNamespace }}
spec:
clusterSets:
- {{ .Values.clusterName }}
predicates:
- requiredClusterSelector:
labelSelector:
matchLabels:
name: {{ .Values.clusterName }}
---
# ConfigMap for the clusterDecisionResource generator to discover
# PlacementDecisions created by the above Placement.
apiVersion: v1
kind: ConfigMap
metadata:
name: acm-placement-{{ .Values.clusterName }}
namespace: {{ .Values.gitopsCluster.appArgoNamespace }}
data:
apiVersion: cluster.open-cluster-management.io/v1beta1
kind: placementdecisions
statusListKey: decisions
matchKey: clusterName
{{- end }}
Loading