The following resources are composed to implement the referenced Composite Resource Definition (XRD).
ControlPlane
ControlPlaneAuth
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