Marketplace
BrowsePublish
Marketplace
upbound/platform-ref-azure@v0.11.0
xmariadbinstances.azure.platformref.upbound.io

xmariadbinstances.azure.platformref.upbound.io

xmariadbinstances.azure.platformref.upbound.io
upbound/platform-ref-azure@v0.11.0xmariadbinstances.azure.platformref.upbound.io
Type

Composition

Referenced XRD

XSQLInstance

Source Codegithub.com/upbound/platform-ref-azure
Resources (3)

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

Kind
Group
Version

Server

dbformariadb.azure.upbound.io
v1beta1

VirtualNetworkRule

dbformariadb.azure.upbound.io
v1beta1

Database

dbformariadb.azure.upbound.io
v1beta1
YAML
kind: Composition
apiVersion: apiextensions.crossplane.io/v1
metadata:
  name: xmariadbinstances.azure.platformref.upbound.io
  creationTimestamp: null
  labels:
    dbengine: mariadb
    provider: azure
spec:
  compositeTypeRef:
    apiVersion: azure.platformref.upbound.io/v1alpha1
    kind: XSQLInstance
  resources:
    - name: mariadlserver
      base:
        apiVersion: dbformariadb.azure.upbound.io/v1beta1
        kind: Server
        spec:
          forProvider:
            administratorLogin: xp-admin
            identity:
              - type: SystemAssigned
            location: West US 2
            skuName: GP_Gen5_2
            sslEnforcementEnabled: false
            sslMinimalTlsVersionEnforced: TLSEnforcementDisabled
            storageMb: 5120
            version: "10.3"
      patches:
        - fromFieldPath: spec.parameters.clusterRef.id
          toFieldPath: metadata.name
          transforms:
            - type: string
              string:
                fmt: "%s-mariadb"
        - fromFieldPath: spec.writeConnectionSecretToRef.namespace
          toFieldPath: spec.writeConnectionSecretToRef.namespace
        - fromFieldPath: metadata.uid
          toFieldPath: spec.writeConnectionSecretToRef.name
          transforms:
            - type: string
              string:
                fmt: "%s-mariadb"
        - fromFieldPath: spec.parameters.storageGB
          toFieldPath: spec.forProvider.storageMb
          transforms:
            - type: math
              math:
                multiply: 1024
        - fromFieldPath: spec.parameters.clusterRef.id
          toFieldPath: spec.forProvider.resourceGroupNameSelector.matchLabels[azure.platformref.upbound.io/network-id]
        - fromFieldPath: spec.parameters.passwordSecretRef.namespace
          toFieldPath: spec.forProvider.administratorLoginPasswordSecretRef.namespace
        - fromFieldPath: spec.parameters.passwordSecretRef.name
          toFieldPath: spec.forProvider.administratorLoginPasswordSecretRef.name
        - fromFieldPath: spec.parameters.passwordSecretRef.key
          toFieldPath: spec.forProvider.administratorLoginPasswordSecretRef.key
      connectionDetails:
        - name: host
          type: FromFieldPath
          fromFieldPath: status.atProvider.fqdn
        - name: username
          type: FromConnectionSecretKey
          fromConnectionSecretKey: username
        - name: password
          type: FromConnectionSecretKey
          fromConnectionSecretKey: password
        - name: port
          type: FromConnectionSecretKey
          fromConnectionSecretKey: port
    - name: vnetrule
      base:
        apiVersion: dbformariadb.azure.upbound.io/v1beta1
        kind: VirtualNetworkRule
        spec:
          forProvider:
            serverNameSelector:
              matchControllerRef: true
      patches:
        - fromFieldPath: spec.parameters.clusterRef.id
          toFieldPath: metadata.name
          transforms:
            - type: string
              string:
                fmt: "%s-sn-rule"
        - fromFieldPath: spec.parameters.clusterRef.id
          toFieldPath: spec.forProvider.subnetIdSelector.matchLabels[azure.platformref.upbound.io/network-id]
        - fromFieldPath: spec.parameters.clusterRef.id
          toFieldPath: spec.forProvider.resourceGroupNameSelector.matchLabels[azure.platformref.upbound.io/network-id]
    - name: database
      base:
        apiVersion: dbformariadb.azure.upbound.io/v1beta1
        kind: Database
        spec:
          forProvider:
            charset: utf8
            collation: utf8_general_ci
            serverNameSelector:
              matchControllerRef: true
      patches:
        - fromFieldPath: spec.parameters.clusterRef.id
          toFieldPath: metadata.name
          transforms:
            - type: match
              match:
                patterns:
                  - type: regexp
                    regexp: .*
                    result: upbound
                fallbackValue: null
        - fromFieldPath: spec.parameters.clusterRef.id
          toFieldPath: spec.forProvider.resourceGroupNameSelector.matchLabels[azure.platformref.upbound.io/network-id]
  writeConnectionSecretsToNamespace: upbound-system
Marketplace

Discover the building blocks for your internal cloud platform.

© 2022 Upbound, Inc.

SolutionsProvidersConfigurations
LearnDocumentationTry for Free
MorePrivacy PolicyTerms & Conditions
Marketplace

© 2022 Upbound, Inc.

Marketplace

Discover the building blocksfor your internal cloud platform.