Marketplace
BrowsePublish
Marketplace
upbound/platform-ref-azure@v0.10.0
xclusters.azure.platformref.upbound.io

xclusters.azure.platformref.upbound.io

xclusters.azure.platformref.upbound.io
upbound/platform-ref-azure@v0.10.0xclusters.azure.platformref.upbound.io
Type

Composition

Referenced XRD

XCluster

Source Codegithub.com/upbound/platform-ref-azure
YAML
kind: Composition
apiVersion: apiextensions.crossplane.io/v1
metadata:
  name: xclusters.azure.platformref.upbound.io
  creationTimestamp: null
spec:
  compositeTypeRef:
    apiVersion: azure.platformref.upbound.io/v1alpha1
    kind: XCluster
  mode: Pipeline
  pipeline:
    - step: patch-and-transform
      functionRef:
        name: upbound-function-patch-and-transform
      input:
        apiVersion: pt.fn.crossplane.io/v1beta1
        kind: Resources
        resources:
          - base:
              apiVersion: azure.platform.upbound.io/v1alpha1
              kind: XNetwork
            name: compositeNetworkAKS
            patches:
              - fromFieldPath: spec.parameters.id
                toFieldPath: spec.parameters.id
                type: FromCompositeFieldPath
              - fromFieldPath: spec.parameters.region
                toFieldPath: spec.parameters.region
                type: FromCompositeFieldPath
              - fromFieldPath: spec.parameters.deletionPolicy
                toFieldPath: spec.parameters.deletionPolicy
                type: FromCompositeFieldPath
              - fromFieldPath: spec.parameters.providerConfigName
                toFieldPath: spec.parameters.providerConfigName
                type: FromCompositeFieldPath
              - fromFieldPath: spec.parameters.networkSelector
                toFieldPath: spec.compositionSelector.matchLabels[type]
                type: FromCompositeFieldPath
          - base:
              apiVersion: azure.platform.upbound.io/v1alpha1
              kind: XAKS
            connectionDetails:
              - fromConnectionSecretKey: kubeconfig
                name: kubeconfig
                type: FromConnectionSecretKey
            name: compositeClusterAKS
            patches:
              - fromFieldPath: spec.parameters.id
                toFieldPath: metadata.labels[xaks.azure.platform.upbound.io/cluster-id]
                type: FromCompositeFieldPath
              - fromFieldPath: spec.parameters.id
                toFieldPath: spec.parameters.id
                type: FromCompositeFieldPath
              - fromFieldPath: spec.parameters.region
                toFieldPath: spec.parameters.region
                type: FromCompositeFieldPath
              - fromFieldPath: spec.parameters.deletionPolicy
                toFieldPath: spec.parameters.deletionPolicy
                type: FromCompositeFieldPath
              - fromFieldPath: spec.parameters.providerConfigName
                toFieldPath: spec.parameters.providerConfigName
                type: FromCompositeFieldPath
              - fromFieldPath: metadata.uid
                toFieldPath: spec.writeConnectionSecretToRef.name
                transforms:
                  - string:
                      fmt: "%s-aks"
                      type: Format
                    type: string
                type: FromCompositeFieldPath
              - fromFieldPath: spec.writeConnectionSecretToRef.namespace
                toFieldPath: spec.writeConnectionSecretToRef.namespace
                type: FromCompositeFieldPath
              - fromFieldPath: spec.parameters.version
                toFieldPath: spec.parameters.version
                type: FromCompositeFieldPath
              - fromFieldPath: spec.parameters.nodes.count
                toFieldPath: spec.parameters.nodes.count
                type: FromCompositeFieldPath
              - fromFieldPath: spec.parameters.nodes.instanceType
                toFieldPath: spec.parameters.nodes.instanceType
                type: FromCompositeFieldPath
          - base:
              apiVersion: observe.platform.upbound.io/v1alpha1
              kind: XOss
            name: XOss
            patches:
              - fromFieldPath: spec.parameters.deletionPolicy
                toFieldPath: spec.parameters.deletionPolicy
                type: FromCompositeFieldPath
              - fromFieldPath: spec.parameters.id
                toFieldPath: spec.parameters.id
                type: FromCompositeFieldPath
              - fromFieldPath: spec.parameters.operators.prometheus.version
                toFieldPath: spec.parameters.operators.prometheus.version
                type: FromCompositeFieldPath
          - base:
              apiVersion: gitops.platform.upbound.io/v1alpha1
              kind: XFlux
            name: XFlux
            patches:
              - fromFieldPath: spec.parameters.deletionPolicy
                toFieldPath: spec.parameters.deletionPolicy
                type: FromCompositeFieldPath
              - fromFieldPath: spec.parameters.id
                toFieldPath: spec.parameters.providerConfigName
                type: FromCompositeFieldPath
              - fromFieldPath: spec.parameters.operators.flux.version
                toFieldPath: spec.parameters.operators.flux.version
                type: FromCompositeFieldPath
              - fromFieldPath: spec.parameters.operators.flux-sync.version
                toFieldPath: spec.parameters.operators.flux-sync.version
                type: FromCompositeFieldPath
              - fromFieldPath: spec.parameters.gitops
                toFieldPath: spec.parameters.source
                type: FromCompositeFieldPath
          - base:
              apiVersion: apiextensions.crossplane.io/v1alpha1
              kind: Usage
              spec:
                by:
                  apiVersion: gitops.platform.upbound.io/v1alpha1
                  kind: XFlux
                  resourceSelector:
                    matchControllerRef: true
                of:
                  apiVersion: azure.platform.upbound.io/v1alpha1
                  kind: XAKS
                  resourceSelector:
                    matchControllerRef: true
            name: usageXEksByXFlux
          - base:
              apiVersion: apiextensions.crossplane.io/v1alpha1
              kind: Usage
              spec:
                by:
                  apiVersion: observe.platform.upbound.io/v1alpha1
                  kind: XOss
                  resourceSelector:
                    matchControllerRef: true
                of:
                  apiVersion: azure.platform.upbound.io/v1alpha1
                  kind: XAKS
                  resourceSelector:
                    matchControllerRef: true
            name: usageXEksByXOss
          - base:
              apiVersion: apiextensions.crossplane.io/v1alpha1
              kind: Usage
              spec:
                by:
                  apiVersion: helm.crossplane.io/v1beta1
                  kind: Release
                  resourceSelector:
                    matchLabels:
                      platform.upbound.io/deletion-ordering: enabled
                of:
                  apiVersion: azure.platform.upbound.io/v1alpha1
                  kind: XAKS
                  resourceSelector:
                    matchControllerRef: true
            name: usageXAksByArbitraryLabeledRelease
            readinessChecks:
              - type: None
  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.