Skip to content

Commit

Permalink
Add ocm connections (#379)
Browse files Browse the repository at this point in the history
Signed-off-by: Rokibul Hasan <[email protected]>
  • Loading branch information
RokibulHasan7 authored Oct 27, 2023
1 parent 59b3555 commit f69b82e
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ spec:
kind: Connection
name: ManagedClusterSets
query:
byLabel: offshoot
byLabel: ocm_bind
type: GraphQL
ref:
group: cluster.open-cluster-management.io
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,17 @@ spec:
ref:
group: work.open-cluster-management.io
kind: ManifestWork
- actions:
create: Never
displayMode: List
kind: Connection
name: Placements
query:
byLabel: placed_into
type: GraphQL
ref:
group: cluster.open-cluster-management.io
kind: Placement
resource:
group: work.open-cluster-management.io
kind: ManifestWorkReplicaSet
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@ spec:
apiVersion: work.open-cluster-management.io/v1
kind: ManifestWork
type: MatchSelector
- labels:
- placed_into
references:
- '{range .spec.placementRefs[*]}{.name}{"\n"}{end}'
target:
apiVersion: cluster.open-cluster-management.io/v1beta1
kind: Placement
type: MatchRef
resource:
group: work.open-cluster-management.io
kind: ManifestWorkReplicaSet
Expand Down

0 comments on commit f69b82e

Please sign in to comment.