Skip to content

Commit

Permalink
Merge pull request #122 from haarchri/feature/xeks-split
Browse files Browse the repository at this point in the history
feat(split): split xeks
  • Loading branch information
haarchri authored Oct 27, 2023
2 parents 786b2b6 + 380c3b0 commit 41eab0e
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 568 deletions.
4 changes: 2 additions & 2 deletions apis/app/composition.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ spec:
kind: Usage
spec:
of:
apiVersion: aws.platformref.upbound.io/v1alpha1
apiVersion: aws.platform.upbound.io/v1alpha1
kind: XEKS
by:
apiVersion: helm.crossplane.io/v1beta1
Expand All @@ -86,4 +86,4 @@ spec:
matchControllerRef: true
patches:
- fromFieldPath: spec.parameters.providerConfigName
toFieldPath: spec.of.resourceSelector.matchLabels[xeks.aws.platformref.upbound.io/cluster-id]
toFieldPath: spec.of.resourceSelector.matchLabels[xeks.aws.platform.upbound.io/cluster-id]
10 changes: 3 additions & 7 deletions apis/cluster/composition.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ spec:
fromFieldPath: Required
name: compositeNetworkEKS
- base:
apiVersion: aws.platformref.upbound.io/v1alpha1
apiVersion: aws.platform.upbound.io/v1alpha1
kind: XEKS
connectionDetails:
- fromConnectionSecretKey: kubeconfig
name: compositeClusterEKS
patches:
- fromFieldPath: spec.parameters.id
toFieldPath: metadata.labels[xeks.aws.platformref.upbound.io/cluster-id]
toFieldPath: metadata.labels[xeks.aws.platform.upbound.io/cluster-id]
- fromFieldPath: spec.parameters.id
toFieldPath: spec.parameters.id
- fromFieldPath: spec.parameters.region
Expand Down Expand Up @@ -65,10 +65,6 @@ spec:
toFieldPath: spec.parameters.iam.roleArn
- fromFieldPath: spec.parameters.iam.userArn
toFieldPath: spec.parameters.iam.userArn
- fromFieldPath: status.subnetIds
toFieldPath: spec.parameters.subnetIds
policy:
fromFieldPath: Required
- base:
apiVersion: aws.platformref.upbound.io/v1alpha1
kind: XServices
Expand Down Expand Up @@ -99,7 +95,7 @@ spec:
kind: Usage
spec:
of:
apiVersion: aws.platformref.upbound.io/v1alpha1
apiVersion: aws.platform.upbound.io/v1alpha1
kind: XEKS
resourceSelector:
matchControllerRef: true
Expand Down
Loading

0 comments on commit 41eab0e

Please sign in to comment.