upbound/configuration-caas@v0.4.0
xcontrolplanes.mcp.caas.upbound.io

xcontrolplanes.mcp.caas.upbound.io

xcontrolplanes.mcp.caas.upbound.io
upbound/configuration-caas@v0.4.0xcontrolplanes.mcp.caas.upbound.io
Type

Composition

Referenced XRD

XControlPlane

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

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

Kind
Group
Version

ControlPlane

mcp.upbound.io
v1alpha1

ControlPlaneAuth

mcp.upbound.io
v1alpha1
YAML
kind: Composition
apiVersion: apiextensions.crossplane.io/v1
metadata:
  name: xcontrolplanes.mcp.caas.upbound.io
  creationTimestamp: null
spec:
  compositeTypeRef:
    apiVersion: mcp.caas.upbound.io/v1alpha1
    kind: XControlPlane
  resources:
    - name: controlplane
      base:
        apiVersion: mcp.upbound.io/v1alpha1
        kind: ControlPlane
        spec:
          deletionPolicy: Orphan
      patches:
        - fromFieldPath: metadata.labels[crossplane.io/claim-name]
          toFieldPath: metadata.annotations[crossplane.io/external-name]
        - fromFieldPath: spec.parameters.organizationName
          toFieldPath: spec.forProvider.organizationName
        - fromFieldPath: spec.parameters.configuration
          toFieldPath: spec.forProvider.configuration
    - name: controlplane-auth
      base:
        apiVersion: mcp.upbound.io/v1alpha1
        kind: ControlPlaneAuth
      patches:
        - fromFieldPath: metadata.labels[crossplane.io/claim-name]
          toFieldPath: spec.forProvider.controlPlaneName
        - fromFieldPath: spec.parameters.organizationName
          toFieldPath: spec.forProvider.organizationName
        - fromFieldPath: spec.writeConnectionSecretToRef.namespace
          toFieldPath: spec.writeConnectionSecretToRef.namespace
        - fromFieldPath: metadata.labels[crossplane.io/claim-name]
          toFieldPath: spec.writeConnectionSecretToRef.name
          transforms:
            - type: string
              string:
                fmt: mcp-controlplane-%s
      connectionDetails:
        - fromConnectionSecretKey: kubeconfig
  writeConnectionSecretsToNamespace: upbound-system
Discover the building blocks for your internal cloud platform.
© 2024 Upbound, Inc.
Solutions