Skip to content

Commit

Permalink
Merge pull request #45 from ytsarev/split-network-database-app
Browse files Browse the repository at this point in the history
Split network, database and app
  • Loading branch information
ytsarev authored Nov 9, 2023
2 parents 38d0d15 + d9c5284 commit f927caa
Show file tree
Hide file tree
Showing 14 changed files with 42 additions and 686 deletions.
89 changes: 0 additions & 89 deletions apis/app/composition.yaml

This file was deleted.

72 changes: 0 additions & 72 deletions apis/app/definition.yaml

This file was deleted.

26 changes: 2 additions & 24 deletions apis/cluster/aks/composition.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ spec:
string:
fmt: "%s-aks"
- fromFieldPath: spec.parameters.id
toFieldPath: spec.forProvider.resourceGroupNameSelector.matchLabels[azure.platformref.upbound.io/network-id]
toFieldPath: spec.forProvider.resourceGroupNameSelector.matchLabels[azure.platform.upbound.io/network-id]
- fromFieldPath: spec.parameters.id
toFieldPath: spec.forProvider.defaultNodePool[0].vnetSubnetIdSelector.matchLabels[azure.platformref.upbound.io/network-id]
toFieldPath: spec.forProvider.defaultNodePool[0].vnetSubnetIdSelector.matchLabels[azure.platform.upbound.io/network-id]
- fromFieldPath: spec.parameters.id
toFieldPath: spec.forProvider.dnsPrefix
- fromFieldPath: spec.parameters.nodes.instanceType
Expand Down Expand Up @@ -92,25 +92,3 @@ spec:
fmt: "%s-akscluster"
readinessChecks:
- type: None
- name: providerConfigKubernetes
base:
apiVersion: kubernetes.crossplane.io/v1alpha1
kind: ProviderConfig
spec:
credentials:
source: Secret
secretRef:
key: kubeconfig
patches:
- fromFieldPath: spec.parameters.id
toFieldPath: metadata.name
- fromFieldPath: spec.writeConnectionSecretToRef.namespace
toFieldPath: spec.credentials.secretRef.namespace
- fromFieldPath: metadata.uid
toFieldPath: spec.credentials.secretRef.name
transforms:
- type: string
string:
fmt: "%s-akscluster"
readinessChecks:
- type: None
21 changes: 20 additions & 1 deletion apis/cluster/composition.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ spec:
resources:
- name: compositeNetworkAKS
base:
apiVersion: azure.platformref.upbound.io/v1alpha1
apiVersion: azure.platform.upbound.io/v1alpha1
kind: XNetwork
patches:
- fromFieldPath: spec.parameters.id
Expand Down Expand Up @@ -93,3 +93,22 @@ spec:
kind: XServices
resourceSelector:
matchControllerRef: true

- name: usageXAksByArbitraryLabeledRelease
base:
apiVersion: apiextensions.crossplane.io/v1alpha1
kind: Usage
spec:
of:
apiVersion: aws.platform.upbound.io/v1alpha1
kind: XAKS
resourceSelector:
matchControllerRef: true
by:
apiVersion: helm.crossplane.io/v1beta1
kind: Release
resourceSelector:
matchLabels:
platform.upbound.io/deletion-ordering: enabled
readinessChecks:
- type: None
99 changes: 0 additions & 99 deletions apis/cluster/network/default/composition.yaml

This file was deleted.

48 changes: 0 additions & 48 deletions apis/cluster/network/definition.yaml

This file was deleted.

Loading

0 comments on commit f927caa

Please sign in to comment.