The following resources are composed to implement the referenced Composite Resource Definition (XRD).
XSQLInstance
XNetwork
kind: Composition
apiVersion: apiextensions.crossplane.io/v1
metadata:
name: xsqlinstances.aws.dbaas.upbound.io
creationTimestamp: null
labels:
provider: aws
spec:
compositeTypeRef:
apiVersion: dbaas.upbound.io/v1alpha1
kind: XSQLInstance
patchSets:
- name: providerConfigRef
patches:
- type: FromCompositeFieldPath
fromFieldPath: spec.parameters.providerConfigName
toFieldPath: spec.parameters.providerConfigName
- name: deletionPolicy
patches:
- type: FromCompositeFieldPath
fromFieldPath: spec.parameters.deletionPolicy
toFieldPath: spec.parameters.deletionPolicy
- name: region
patches:
- type: FromCompositeFieldPath
fromFieldPath: spec.parameters.region
toFieldPath: spec.parameters.region
resources:
- name: xsqlinstance
base:
apiVersion: aws.platform.upbound.io/v1alpha1
kind: XSQLInstance
patches:
- type: PatchSet
patchSetName: providerConfigRef
- type: PatchSet
patchSetName: deletionPolicy
- type: PatchSet
patchSetName: region
- fromFieldPath: spec.parameters.storageGB
toFieldPath: spec.parameters.storageGB
- fromFieldPath: spec.parameters.passwordSecretRef.namespace
toFieldPath: spec.parameters.passwordSecretRef.namespace
- fromFieldPath: spec.parameters.passwordSecretRef.name
toFieldPath: spec.parameters.passwordSecretRef.name
- fromFieldPath: spec.parameters.passwordSecretRef.key
toFieldPath: spec.parameters.passwordSecretRef.key
- fromFieldPath: metadata.name
toFieldPath: spec.parameters.networkRef.id
- fromFieldPath: spec.parameters.engine
toFieldPath: spec.parameters.engine
- fromFieldPath: spec.parameters.engineVersion
toFieldPath: spec.parameters.engineVersion
connectionDetails:
- name: host
type: FromConnectionSecretKey
fromConnectionSecretKey: host
- name: username
type: FromConnectionSecretKey
fromConnectionSecretKey: username
- name: password
type: FromConnectionSecretKey
fromConnectionSecretKey: password
- name: port
type: FromConnectionSecretKey
fromConnectionSecretKey: port
- name: xnetwork
base:
apiVersion: aws.platform.upbound.io/v1alpha1
kind: XNetwork
patches:
- type: PatchSet
patchSetName: region
- type: PatchSet
patchSetName: providerConfigRef
- type: PatchSet
patchSetName: deletionPolicy
- fromFieldPath: metadata.name
toFieldPath: spec.parameters.id
writeConnectionSecretsToNamespace: upbound-system