upbound/configuration-dbaas@v0.4.0
xsqlinstances.azure.dbaas.upbound.io

xsqlinstances.azure.dbaas.upbound.io

xsqlinstances.azure.dbaas.upbound.io
upbound/configuration-dbaas@v0.4.0xsqlinstances.azure.dbaas.upbound.io
Type

Composition

Referenced XRD

XSQLInstance

Source Codegithub.com/upbound/configuration-dbaas
Resources (2)

The following resources are composed to implement the referenced Composite Resource Definition (XRD).

Kind
Group
Version

XSQLInstance

azure.platform.upbound.io
v1alpha1

XNetwork

azure.platform.upbound.io
v1alpha1
YAML
kind: Composition
apiVersion: apiextensions.crossplane.io/v1
metadata:
  name: xsqlinstances.azure.dbaas.upbound.io
  creationTimestamp: null
  labels:
    provider: azure
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: azure.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.compositionSelector.matchLabels[dbengine]
      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: azure.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
Discover the building blocks for your internal cloud platform.
© 2024 Upbound, Inc.
Solutions