Skip to content

Commit

Permalink
update compositions for usage
Browse files Browse the repository at this point in the history
Signed-off-by: Steven Borrelli <steve@borrelli.org>
  • Loading branch information
stevendborrelli committed Aug 31, 2023
1 parent 671ccaa commit 4b576b6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 15 deletions.
15 changes: 0 additions & 15 deletions package/cluster/composition.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,18 +71,3 @@ spec:
toFieldPath: spec.operators.universal-crossplane.version
- fromFieldPath: spec.id
toFieldPath: spec.operators.universal-crossplane.clusterRef
- name: usage-service-eks
base:
apiVersion: apiextensions.crossplane.io/v1alpha1
kind: Usage
spec:
of:
apiVersion: aws.platformref.upbound.io/v1alpha1
kind: XEKS
resourceSelector:
matchControllerRef: true
by:
apiVersion: aws.platformref.upbound.io/v1alpha1
kind: XServices
resourceSelector:
matchControllerRef: true
4 changes: 4 additions & 0 deletions package/cluster/services/composition.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ spec:
patches:
- fromFieldPath: metadata.labels[crossplane.io/claim-name]
toFieldPath: spec.of.resourceSelector.matchLabels[crossplane.io/claim-name]
- fromFieldPath: metadata.labels[crossplane.io/claim-namespace]
toFieldPath: spec.of.resourceSelector.matchLabels[crossplane.io/claim-namespace]
- fromFieldPath: status.releaseNamePrometheus
toFieldPath: spec.by.resourceRef.name

Expand Down Expand Up @@ -158,5 +160,7 @@ spec:
patches:
- fromFieldPath: metadata.labels[crossplane.io/claim-name]
toFieldPath: spec.of.resourceSelector.matchLabels[crossplane.io/claim-name]
- fromFieldPath: metadata.labels[crossplane.io/claim-namespace]
toFieldPath: spec.of.resourceSelector.matchLabels[crossplane.io/claim-namespace]
- fromFieldPath: status.releaseNameUXP
toFieldPath: spec.by.resourceRef.name

0 comments on commit 4b576b6

Please sign in to comment.