A collection of Crossplane Configurations maintained by stuttgart-things.
Each subdirectory is a self-contained Crossplane Configuration package — an XRD (CompositeResourceDefinition) plus its Composition(s) and example namespaced XRs — that can be built and pushed as an OCI package and consumed by a Crossplane control plane.
For which Configuration brings which along, see docs/diagrams/xr-ownership.md — generated from the packages themselves (python3 tests/lint/lint-configurations.py --write) and linted against them, so it cannot quietly go stale.
| Category | Name | Version | Description | OCI |
|---|---|---|---|---|
| bootstrap | argocd-cluster | v0.2.1 | Registers a cluster with ArgoCD, from a namespaced ArgocdCluster XR — the sibling of remote-cluster, which does the same for Crossplane. Emits exactly two provider-kubernetes Objects onto the ArgoCD cluster: an ExternalSecret that lets ESO pull the kubeconfig out of Vault into argocd/{clusterName}, and the ClusterbookCluster whose labels the platform ApplicationSets select on — everything downstream (IP/DNS reservation, the rendered cluster Secret, the AppProject, the components on the target) follows from those two. The kubeconfig travels Vault → ESO → Secret and is never held by Crossplane, which is also why the identity behind the ClusterProviderConfig should be scoped to clusterbookclusters + externalsecrets rather than an admin credential: that would have to live in the same kubeconfigs/ mount every registered cluster can read. spec.profiles is the human-facing shape of ~30 flat Clusterbook labels, and the composition emits an explicit 'false' for everything it disables — most AppSet selectors match with NotIn ["false"], where omitting a label means ON, so a forgotten entry silently installs software. Complements cluster with platformEnabled: false: a cluster gets its platform from Flux (Platform) or from ArgoCD (this), never both. Teardown ordering is load-bearing — the AppSets carry preserveResourcesOnDeletion: true, so deregistering first leaves orphaned Applications behind that have no ownerReference to collect them. |
ghcr.io/stuttgart-things/crossplane-configurations/argocd-cluster |
| bootstrap | capability | v0.7.2 | Configures what a management cluster can do. A provider is installed on every management cluster and on its own does nothing useful: without a ClusterProviderConfig it does not know where to connect, without credentials it may not log in, and without an EnvironmentConfig it does not know which node, datastore or template to place a VM on. A namespaced Capability XR names capabilities (proxmoxvm, vspherevm, ansible-run) and their placement facts; the Composition emits the ClusterSecretStore, the credential ExternalSecret, the ClusterProviderConfig and the EnvironmentConfig per capability onto a target cluster — rendered by function-kcl (KCL module xplane-capability, structure from xplane-capability-catalog). The native replacement for the per-capability Helm charts on clusters with external-secrets: the two values those charts must be handed (authMountPath, the store name) are derived here from the cluster the XR already names — which only means something because the store is emitted here too, one per capability, since a ClusterSecretStore fixes one Vault KV mount and capabilities do not share one, and package installation stays with management-plane rather than being a second source of lock nodes. spec.workloadNamespace is separate from spec.namespace because a capability's cloud-init password must sit where the VM XRs are, not beside the provider. The placement keys are the catalog's, and a Composition-side key the catalog does not carry is silence rather than an error — proxmoxvm's cloudInitDatastore was missing until catalog 0.5.0, so every capability-built EnvironmentConfig let the cloud-init drive fall through to the root disk's datastore, which in LabUL is the storage whose stop/start round trip leaves the VM unbootable. Every namespace it writes into is emitted as a Namespace with managementPolicies: [Observe, Create] rather than assumed: which one it is comes out of the capability's own placement — ansible-run lands in tekton-ci because a Tekton pipeline reads it there — so on a cluster whose platform does not happen to install the app that brings that namespace along, the credentials Object simply sits at namespaces "tekton-ci" not found while the rest of the XR reports green. A missing or unknown placement field fails the render naming every problem at once, since a missing node otherwise surfaces minutes later as a VM placed nowhere. Readiness differs per emitted kind: the ClusterSecretStore and the ExternalSecrets derive it from their own conditions, because those are the only evidence Vault answered, while the status-less EnvironmentConfig and ClusterProviderConfig would otherwise sit at Ready=False forever (measured, #294). |
ghcr.io/stuttgart-things/crossplane-configurations/capability |
| bootstrap | cilium | — | Installs Cilium and, optionally, its LoadBalancer (CiliumLoadBalancerIPPool + CiliumL2AnnouncementPolicy) and a Gateway API Gateway on a target cluster from a namespaced Cilium XR. The LB IP range can be static or read from an XIPReservation (clusterbook), turning a reserved lab IP into an advertised Gateway VIP. Never published — the Gateway path uses the flux/infra/cilium catalog app via platform.spec.apps instead (#248), so platform.spec.cilium stays unusable until someone pushes this. |
not published |
| bootstrap | cluster | v0.17.0 | Builds a whole Kubernetes cluster from one namespaced ClusterStack XR: a VM (proxmoxvm / vspherevm, with base-OS ansible), the distribution install and the kubeconfig upload (ansible-run), a ClusterAccess (remote-cluster) and a Platform (platform) — all as child XRs, rendered by function-kcl (KCL module xplane-cluster, profiles from xplane-cluster-catalog). Replaces the five hand-written XRs a cluster needs today, in which the cluster name appears 8× and the VM IP 3× — both derived here instead. Each stage is gated on the previous having SUCCEEDED (not merely Ready) and every gate is sticky, so a guest-agent blip cannot delete an AnsibleRun and re-run its play against a live machine; three Usage resources order teardown. platform.cni.enabled follows from the distribution's CNI ownership rather than being restated. Distributions: k3s, kind, single-node rke2 — and the rancher pair rancher-k3s / rancher-rke2, where Rancher creates the cluster and the stack composes a RancherCluster first, the VM waits for the node-registration command it publishes, and one join stage replaces the distribution + kubeconfig pair. The two rancher entries are not interchangeable: machineGlobalConfig keys belong to the server Rancher provisions, k3s and rke2 do not share them, and an unknown key is ignored rather than refused, so the wrong one leaves the bundled CNI and ingress running and the cluster never registers (kcl#282). In rancher mode an app profile also brings its secrets: the stack reads the app-secret-profile declarations the catalog names and composes a vault-secrets VaultSecretSet per app, derives the stores and the platform's secrets gate, and fails the render rather than compose less. On LabDA vSphere (xr-vsphere-rancher.yaml, #508) the base-OS stage takes extraPlaybooks so the node — and the k3s CoreDNS it will run — can resolve a Rancher named in a zone the lab resolver cannot reach. size is one node (small, medium, medium-mem, large) and nodes (1/3/5) the count since v0.16.0 — medium-ha / app-ha remain as deprecated aliases. `nodes: 3 |
5builds N all-role nodes on the rancher custom-node path ([#170](https://github.com/stuttgart-things/crossplane-configurations/issues/170),xr-vsphere-rancher-ha.yaml): node 1 is the single-node path unchanged, nodes 2..N join after it in one base-OS + join run each, and the stack is ready only when all joined; the API endpoint stays node 1's IP ([#171](https://github.com/stuttgart-things/crossplane-configurations/issues/171)). Since v0.17.0 clusterscope.reader.enabled: true(opt-in) composes a Workspace that creates a read-only ServiceAccount on the built cluster and writes its kubeconfig toclusterscope/` in OpenBao, for clusterscope on platform (harvester#753). |
| bootstrap | cni | v0.1.5 | Installs a CNI on a target cluster from a namespaced Cni XR — cilium today (the provider is an enum, so more can follow). Emits a provider-helm Release for the chart plus a provider-kubernetes Object that observes the target's RemoteCluster to gate the install until the derived {clusterName}-helm ClusterProviderConfig exists — rendered by function-kcl (KCL module xplane-cni). Settings that are cluster-shape facts rather than free-form Helm values (kubeProxyReplacement, k8sServiceHost) are named fields with defaults derived from clusterName, because getting them wrong deadlocks the cluster silently; spec.values stays open for the rest. The gate Object carries a readiness query of its own, so neither status.ready nor the XR's Ready condition can go true ahead of the Release (#439) — platform gates its other components on that. |
ghcr.io/stuttgart-things/crossplane-configurations/cni |
| bootstrap | flux-apps | v0.1.4 | Deploys application Flux Kustomizations onto a target cluster from a namespaced FluxApps XR. One provider-kubernetes Object per spec.apps entry, each wrapping a kustomize.toolkit.fluxcd.io/v1 Kustomization that references an existing Flux source (typically bootstrapped by flux-init) — rendered by function-kcl (KCL module xplane-flux-apps). The generic, data-driven counterpart to the flux-app-kustomizations module — hardcoded tekton/crossplane Kustomizations become spec.apps entries, with reconcile defaults from a flux-apps-defaults EnvironmentConfig. |
ghcr.io/stuttgart-things/crossplane-configurations/flux-apps |
| bootstrap | flux-init | v0.3.0 | Bootstraps Flux on a target cluster from a namespaced FluxInit XR via the flux-operator. Emits a provider-helm Release (operator chart), a provider-kubernetes FluxInstance Object, a Usage for teardown ordering, and one OCIRepository/GitRepository Object per source — rendered by function-kcl (KCL module xplane-flux-init), with chart/distribution defaults from a flux-defaults EnvironmentConfig. |
ghcr.io/stuttgart-things/crossplane-configurations/flux-init |
| bootstrap | ip-reservation | v0.1.0 | Reserves IP addresses (and optional wildcard DNS) from clusterbook for a target cluster, from a namespaced XIPReservation XR. Derives the network from the target's RemoteCluster.internalNetworkKey (provider-kubeconfig), then emits an IPReservation (provider-clusterbook) wrapped in a provider-kubernetes Object — rendered by function-kcl (KCL module xplane-ip-reservation). |
ghcr.io/stuttgart-things/crossplane-configurations/ip-reservation |
| bootstrap | management-plane | v0.4.3 | Turns a target cluster into a management cluster from a namespaced ManagementPlane XR: installs Crossplane on it (a provider-helm Release), then the providers, functions, configurations and in-cluster provider configs that let it build other clusters (one provider-kubernetes Object each). What gets installed is NOT in the XR — it comes from a named profile in the xplane-crossplane-catalog KCL module (default machinery: 4 providers, 5 functions, 11 configurations), because the package set is a fleet fact and belongs where it can be version-controlled and unit-tested; spec.packageOverrides is the per-package escape hatch. Providers and configurations carry the CR name Crossplane itself derives from the package path, which is what makes the #247 Lock collision impossible rather than merely unlikely. Install order is gated (Crossplane → packages → provider configs) because the CRDs the later objects need are installed by the earlier ones, and every gate is one-way. The sibling of platform, not a component of it: platform says what a cluster offers, this says what it is. |
ghcr.io/stuttgart-things/crossplane-configurations/management-plane |
| bootstrap | platform | v0.9.0 | Umbrella Configuration that assembles a cluster's platform from the bootstrap building blocks. A namespaced Platform XR carries the shared cluster identity (clusterName, provider config refs, namespace) once and composes one child XR per enabled component — today cni (Cni, opt-in, and a gate on the rest: a cluster with no CNI schedules nothing, so a Helm install aimed at it times out rather than failing fast), flux-init (FluxInit) and flux-apps (FluxApps, one Kustomization per enabled component of each spec.apps entry), with further Configurations to follow — rendered by function-kcl. The XR status publishes the resolved shared contract (status.shared, including the clusterType discovered by a child) plus per-component readiness and outputs. |
ghcr.io/stuttgart-things/crossplane-configurations/platform |
| bootstrap | remote-cluster | v0.1.1 | Makes a cluster targetable by name, from a namespaced ClusterAccess XR. Composes a cluster-scoped RemoteCluster (provider-kubeconfig) wrapped in a provider-kubernetes Object — a namespaced composite cannot compose a cluster-scoped MR — which reads a raw kubeconfig from Vault and emits the {clusterName}-kubernetes / {clusterName}-helm ClusterProviderConfigs that flux-init, cni and platform all derive by convention; this Configuration owns that convention instead of each restating it. An Observe-only Object per emitted config makes status.ready mean the configs exist, not merely the RemoteCluster reconciled. status.share republishes what the target reports about itself (apiEndpoint, clusterType, serverVersion, CIDRs) — so a Platform's vaultIssuer.kubernetesHost can derive from a fact instead of a hand-copied node IP. Rendered by inline function-kcl. |
ghcr.io/stuttgart-things/crossplane-configurations/remote-cluster |
| bootstrap | vault-auth | v0.4.0 | Bootstraps Vault Kubernetes auth backends (and optional backend_config) from a namespaced VaultK8sAuth XR. One OpenTofu Workspace (provider-opentofu) per k8sAuths entry runs the Vault Terraform provider, rendered by function-kcl (KCL module xplane-vault-auth). releaseOnDelete drops Delete from the Workspace's managementPolicies, so an auth can be handed to vault-k8s-auth without a tofu destroy taking the mount with it. |
ghcr.io/stuttgart-things/crossplane-configurations/vault-auth |
| bootstrap | vault-config | v0.1.0 | Deploys Vault secret-tooling (Secrets Store CSI Driver, Vault Secrets Operator, External Secrets Operator) plus the ServiceAccount/token/RBAC bootstrap for Vault Kubernetes auth from a namespaced VaultConfig XR, via namespaced provider-helm/provider-kubernetes (KCL module xplane-vault-config). |
ghcr.io/stuttgart-things/crossplane-configurations/vault-config |
| bootstrap | vault-pki-secrets | v0.1.5 | Provisions the out-of-band prerequisite Secrets (CA bundle vault-pki-ca + Vault token vault-pki-token) that a Vault-backed cert-manager ClusterIssuer references, from a namespaced VaultPkiSecret XR. The XR references two source Secrets (no inlined credentials); the Composition reads their token + CA values (function-go-templating ExtraResources) and pushes both Secrets onto a target cluster via provider-kubernetes, ensuring the target namespace exists first (Observe, Create — never deletes it), with names/namespace/target defaulting per-environment from an EnvironmentConfig. The ClusterIssuer itself stays owned by the cert-manager-vault-pki Argo CD ApplicationSet. Replaces the legacy Terraform vault-cert-issuer step. |
ghcr.io/stuttgart-things/crossplane-configurations/vault-pki-secrets |
| cicd | ansible-run | v0.3.3 | Triggers an Ansible playbook on a target cluster by emitting a Tekton PipelineRun from a namespaced AnsibleRun XR. The PipelineRun is rendered by function-kcl (KCL module kcl-tekton-pr) and applied via provider-kubernetes. |
ghcr.io/stuttgart-things/crossplane-configurations/ansible-run |
| cicd | cluster-backup | v0.2.0 | Exports the state a Crossplane cluster cannot rebuild from git — managed-resource crossplane.io/external-name annotations and the OpenTofu state that lives only as tfstate-* Secrets in crossplane-system — encrypts it to an age public key and pushes it to an OCI registry on a schedule. A namespaced ClusterBackup XR composes a ServiceAccount, least-privilege RBAC (groups only cluster-wide; Secrets only in the tfstate namespace) and a CronJob running kubectl → sops --encrypt → oras push, via provider-kubernetes. |
ghcr.io/stuttgart-things/crossplane-configurations/cluster-backup |
| cicd | github-arc-controller | v0.1.0 | Installs the GitHub Actions Runner Controller (ARC, chart gha-runner-scale-set-controller) on a target cluster from a namespaced GithubArcController XR, as one provider-helm namespaced Release (function-go-templating). One per cluster; runner scale sets are github-runner-set XRs on the same chart version. Helm installs the ARC CRDs on the first install only — a version bump needs them applied by hand (README). |
ghcr.io/stuttgart-things/crossplane-configurations/github-arc-controller |
| cicd | github-runner-set | v0.1.0 | One GitHub Actions runner scale set (ARC chart gha-runner-scale-set) on a target cluster from a namespaced GithubRunnerSet XR, as one provider-helm namespaced Release. The scale set name — the runs-on: label — defaults to ghr-{repository}-{clusterName} like the old github-runner package, and is published in status.runnerScaleSetName. The PAT or GitHub App credential is referenced by Secret name (External Secrets) and never passes through Crossplane or the Helm release values. Needs github-arc-controller on the target. |
ghcr.io/stuttgart-things/crossplane-configurations/github-runner-set |
| cicd | packer-build | v0.7.0 | Builds a machine image with HashiCorp Packer on a target cluster by emitting a Tekton PipelineRun from a namespaced PackerBuild XR — the packer sibling of ansible-run. The PipelineRun is rendered by function-kcl (KCL module kcl-tekton-pr-packer) and applied via provider-kubernetes, with per-environment defaults from a packer-build-scoped EnvironmentConfig. Deals with TWO repos — the pipeline definition (stage-time) and the .pkr.hcl templates (stuttgart-things) — and a second function-kcl step lifts the live PipelineRun's Succeeded condition, timings, child TaskRuns and pipeline results (notably template-name, the template the build produced, sorted into templateName and — on Proxmox — templateVmId, on vSphere also templateUuid) onto the XR status, so with deriveReadiness (default) the XR is Ready only once the build actually succeeds; status.phase and the PipelineRunSucceeded condition tell a running build from a failed one, since Ready stays Creating on both. |
ghcr.io/stuttgart-things/crossplane-configurations/packer-build |
| cicd | packer-release | v0.7.0 | Builds a machine image and proves it works: a namespaced PackerRelease XR composes a packer-build and, once that build succeeds and reports its template-name, a vm-provision VMProvision that clones the freshly built template and runs Ansible against the clone. The test VM is composed only while the gate is open and is torn down by the Composition ceasing to render it — a failed test deliberately leaves it up for inspection. Ready therefore means built AND verified. |
ghcr.io/stuttgart-things/crossplane-configurations/packer-release |
| cicd | scheduled-run | v0.2.0 | Runs an arbitrary Kubernetes object — typically another XR such as an ansible-run AnsibleRun or a TofuRun — on a cron schedule. A namespaced ScheduledRun XR composes a ServiceAccount, least-privilege RBAC scoped to the target's API group, a ConfigMap holding the target manifest, and a CronJob (via provider-kubernetes) that re-creates the target every tick. Because a Crossplane XR is declarative and one-shot, spec.uniqueFields injects a per-tick timestamp suffix into the paths that must differ each run (e.g. metadata.name, spec.pipelineRunName) so scheduling actually re-runs the work instead of no-op re-applying; spec.keepHistory prunes old instances. Rendered by inline function-kcl (no external module). |
ghcr.io/stuttgart-things/crossplane-configurations/scheduled-run |
| cicd | tofu-run | v0.1.0 | Runs OpenTofu on a target cluster by emitting a Tekton PipelineRun from a namespaced TofuRun XR. The manifest is rendered by function-kcl from ghcr.io/stuttgart-things/kcl-tofu-pr and applied via provider-kubernetes. Vault auth is AppRole — each run exchanges role_id/secret_id for a short-lived policy token. |
ghcr.io/stuttgart-things/crossplane-configurations/tofu-run |
| k8s | cloud-config | v0.5.5 | Renders cloud-init userdata as a Kubernetes Secret from a namespaced CloudInit XR, and manages the target namespace. |
ghcr.io/stuttgart-things/crossplane-configurations/cloud-config |
| k8s | namespace | v0.1.2 | Manages a Kubernetes Namespace from a namespaced ManagedNamespace XR, with optional labels/annotations, ResourceQuota, LimitRange, default-deny NetworkPolicy and RoleBindings. |
ghcr.io/stuttgart-things/crossplane-configurations/namespace |
| k8s | volume-claim | v0.1.0 | Provisions a Kubernetes PersistentVolumeClaim from a namespaced VolumeClaim XR, with optional labels/annotations, label selector for pre-provisioned PVs and dataSource for snapshot restore / PVC cloning. Falls back to the cluster's default StorageClass when unset. |
ghcr.io/stuttgart-things/crossplane-configurations/volume-claim |
| machinery | harvester-vm | v0.2.0 | Provisions a Harvester / KubeVirt virtual machine from a namespaced HarvesterVM XR. Composes the volume-claim (root disk PVC) and cloud-config (cloud-init Secret) Configurations, then renders a KubeVirt VirtualMachine via provider-kubernetes; shared placement/image default from an EnvironmentConfig. |
ghcr.io/stuttgart-things/crossplane-configurations/harvester-vm |
| machinery | proxmox-vm | v0.2.0 | Provisions a Proxmox VE virtual machine from a namespaced ProxmoxVM XR. An OpenTofu Workspace (provider-opentofu) runs the proxmox-vm Terraform module; shared placement/credentials default from an EnvironmentConfig. |
ghcr.io/stuttgart-things/crossplane-configurations/proxmox-vm |
| machinery | proxmoxvm | v0.22.0 | Provisions a Proxmox VE virtual machine from a namespaced NativeProxmoxVM XR using the NATIVE provider-proxmox-bpg managed EnvironmentVM resource (no Terraform/OpenTofu; built on bpg/terraform-provider-proxmox). The native-provider sibling of proxmox-vm: clones by template VMID and bootstraps via cloud-init (initialization); shared placement defaults from an EnvironmentConfig, rendered by function-kcl. Optional base-OS provisioning emits an AnsibleRun once the VM is Ready with an IP; it forwards only the fields the XR actually sets and leaves the AnsibleRun's own environmentConfig alone, so ansible-run resolves against ansible-run-defaults (#317 passed spec.environmentConfig down instead; that names a PROXMOX environment, matched no ansible-run EnvironmentConfig, and silently dropped every default including ansibleExtraCollections). Set ansible.environmentConfig explicitly if a per-environment ansible-run EnvironmentConfig exists. The cloud-init drive takes its own datastore (EnvironmentConfig cloudInitDatastore) rather than following the data disk: it is the one disk PVE frees and re-allocates on every stop/start, and on LabUL's V5010-01-1 that leaves an orphaned LV behind which makes the VM unbootable until the volume is deleted through the API. Tags (vm.tags, EnvironmentConfig tags) are MERGED across the two rather than overridden — a VM that names one tag of its own would otherwise lose its environment's — then sorted and deduped, because Proxmox returns a tag set alphabetically and an unsorted list reads as a difference on every reconcile. Emitting them at all makes the emitted list the VM's WHOLE tag set: tags is absent from status.atProvider, so the provider cannot merge with the tags a full clone inherited from its template, nor with plb_* scheduler tags set by hand (#484). rebootAfterUpdate is emitted false unless vm.rebootAfterUpdate says otherwise (since v0.18.0): bpg defaults it to true, so any field a new provider version reads as changed became a silent shutdown + start — provider-proxmox-bpg v1.18.0 → v1.22.0 rebooted two LabUL VMs in the same second, and one came back on another DHCP address (stuttgart-things#3962). The target node goes to initProvider (since v0.19.0), not forProvider: node_name is ForceNew, so a VM Proxmox migrated to another node planned as destroy + recreate and sat at Synced=False, held only by prevent_destroy; initProvider is used on create and added to terraform's ignore_changes. The EnvironmentVM carries managementPolicies without LateInitialize (since v0.21.0): late-init copied the guest agent's macAddresses (every NIC, docker0 and veths included) into forProvider, so each VM was updated every few seconds (#558). vm.os (v0.22.0) picks an OS from the EnvironmentConfig's templates table (template VMID, optionally its node); an os the table lacks fails the render. |
ghcr.io/stuttgart-things/crossplane-configurations/proxmoxvm |
| machinery | rancher-cluster | v0.12.0 | Provisions a generic (custom-node) Rancher cluster from a namespaced RancherCluster XR (k3s/rke2 provisioning.cattle.io Cluster), then wires the downstream cluster's Rancher-managed kubeconfig Secret into a provider-kubernetes ClusterProviderConfig and bootstraps a namespace on it as proof — all via function-go-templating. Optionally registers the cluster in Argo CD via clusterbook-operator (assembles a proxy kubeconfig with a dedicated non-expiring token), and optionally reserves a clusterbook IP/DNS (spec.argocd.reservation) to stamp the allocation-ip anchor the network-platform ApplicationSets require. When network-platform/cert-manager-vault-pki is enabled it also inlines the vault-pki-secrets logic — pushing the Vault token + CA Secrets onto the downstream cluster's cert-manager namespace so the vault-pki ClusterIssuer has its prerequisites. |
ghcr.io/stuttgart-things/crossplane-configurations/rancher-cluster |
| machinery | virtual-machine | v0.1.17 | High-level VM API: a namespaced XVirtualMachine XR asks for a VM by t-shirt size, provider (vsphere/proxmox) and environment, resolves the datacenter topology from an EnvironmentConfig, and emits a VMProvision (via function-kcl). |
ghcr.io/stuttgart-things/crossplane-configurations/virtual-machine |
| machinery | vm-batch | v0.1.3 | Batch VM provisioning (+ Ansible): a namespaced VMBatch XR fans out a list of VM definitions — each with an optional count of identical replicas — to the native proxmoxvm / vspherevm Configurations (per spec.provider), then optionally emits a SINGLE AnsibleRun whose inventory lists every VM IP so one play configures the whole fleet (via function-kcl). |
ghcr.io/stuttgart-things/crossplane-configurations/vm-batch |
| machinery | vm-provision | v0.2.0 | Unified VM router: a namespaced VMProvision XR routes to a VsphereVM or ProxmoxVM (per spec.provider) and optionally chains an AnsibleRun, composing the vsphere-vm, proxmox-vm and ansible-run Configurations (via function-kcl). |
ghcr.io/stuttgart-things/crossplane-configurations/vm-provision |
| machinery | vsphere-vm | v0.2.0 | Provisions a VMware vSphere virtual machine from a namespaced VsphereVM XR. An OpenTofu Workspace (provider-opentofu) runs the vsphere-vm Terraform module; shared placement/credentials default from an EnvironmentConfig. |
ghcr.io/stuttgart-things/crossplane-configurations/vsphere-vm |
| machinery | vspherevm | v0.15.0 | Provisions a VMware vSphere virtual machine from a namespaced NativeVsphereVM XR using the NATIVE provider-vspherevm managed VirtualMachine resource (no Terraform/OpenTofu). The native-provider sibling of vsphere-vm: per-environment placement MOIDs (templateUuid, datastoreId, resourcePoolId, networkId, folder) are loaded from a Crossplane EnvironmentConfig, so an XR states only intent (name/cpu/ram/disk) and the topology is injected. vm.tags and vm.customAttributes mirror proxmoxvm's, with the difference that decides how they are used: a vSphere tag is an inventory OBJECT, so the field takes its id (urn:vmomi:InventoryServiceTag:<uuid>:GLOBAL) and a custom attribute its numeric vCenter field id — and since provider-vspherevm ships only VirtualMachine, nothing here can create or resolve either, so an unknown id fails the clone. Tags merge with the EnvironmentConfig's and are sorted and deduped (the CRD declares the field a set, which rejects a repeat outright); custom attributes merge per key with the XR winning (#484). vm.os (v0.15.0) picks an OS from the EnvironmentConfig's templates table, whose entry carries templateUuid and guestId together — vCenter refuses a clone whose guestId does not match the template's, and an os the table lacks fails the render (stuttgart-things#4489). |
ghcr.io/stuttgart-things/crossplane-configurations/vspherevm |
| storage | minio | v0.1.2 | MinIO buckets, policies and users from a cluster-scoped MinioBucket XR, composed as native provider-minio managed resources — the bucket, one Policy per spec.access entry (<bucket>-<entry>, either scoped to this bucket or a raw S3 policy) and, unless user: false, one User carrying it whose keys land in a Secret as AWS_ACCESS_KEY_ID / AWS_SECRET_ACCESS_KEY — the shape an S3 backend, CNPG's barman plugin and rclone all read. Replaces the mc commands every bucket in the fleet was created with. spec.deletionPolicy decides what deleting the XR does to the BUCKET (Orphan by default, because a bucket holds data this Configuration did not write; DeleteIfEmpty, DeleteAll), while policies and users always go — they are access, not data. Cluster-scoped on purpose: every kind provider-minio serves is cluster-scoped and Crossplane v2 refuses to compose one from a namespaced XR, and a bucket name is unique per instance rather than per namespace anyway (reason recorded on the XRD). Two provider behaviours shape the Composition, both measured on a lab MinIO with v0.4.5: a Policy is named after its Kubernetes OBJECT and ignores crossplane.io/external-name, so a generated resource name would reach the instance and the user referencing it is refused with policy not found — every composed object therefore carries an explicit metadata.name; and an existing bucket cannot be adopted (observe failed: bucket already exists), so the hand-made buckets in the fleet stay outside Crossplane until that changes. A User is composed only once its Policy is Ready, because provider-minio validates the policy's existence in an admission webhook. spec.bucketName is immutable (v0.1.1): the user is named after it and cannot be renamed, so the XRD refuses a change instead of letting the XR stall on Synced=False. |
ghcr.io/stuttgart-things/crossplane-configurations/minio |
| vault | app-secret-profile | v0.1.1 | What an app needs in Vault, declared once per app as a cluster-scoped AppSecretProfile (group secrets.stuttgart-things.com, name = the app, as listed by a catalog profile's appSecrets): entries the app owns per cluster, each key exactly one of generate / literal / shared (enforced at admission), which keys an order may override, and reads of other apps' keys used directly, never copied. Composes nothing — publishes the resolved view and checks every read reference (ReadsResolved). Consumed by xplane-cluster; the environment half stays in cluster-vault-<env> (#464). Cluster-scoped on purpose: a profile decides what every order of that app receives, so only admins or the app owners may change it. |
ghcr.io/stuttgart-things/crossplane-configurations/app-secret-profile |
| vault | vault-k8s-auth | v0.4.2 | Prototype. Vault Kubernetes auth backends from a namespaced VaultK8sAuth XR (group vault.stuttgart-things.com) as native provider-vault managed resources — auth mount, created policies, role and TokenReview config each their own MR — instead of one OpenTofu Workspace per auth like vault-auth. The role is composed only once the mount and every policy it names are Ready (Vault accepts a role naming a missing policy and the token then silently has no permissions); status.share keeps vault-auth's contract. adoption takes over what vault-auth already created for a cluster: Observe-only first, compared with the spec, handed over without Delete — differences hold it and are named in a condition. Created policies carry the fixed prefix xp-, so the AppRole needs only sys/policies/acl/xp-*; policies[].kvMount is denied for admin-credential mounts (kubeconfigs, ssh, cicd-*) and Vault system paths at admission; everything else, including tokenPolicies, is bounded by RBAC on the XR. |
ghcr.io/stuttgart-things/crossplane-configurations/vault-k8s-auth |
| vault | vault-secrets | v0.4.0 | Prototype. Writes secrets into a Vault KV engine (v2 or v1) from a namespaced VaultSecretSet XR via provider-vault. Each key is a literal, a key of a Secret in the XR's own namespace, generated once at random, or adopted once from an existing Vault entry (vaultRef, through the XR's own credential) — kept and read back on every reconcile; the JSON sits in a composed Secret next to the XR and reaches Vault by dataJsonSecretRef, never in an MR spec. Losing that Secret after Vault was written holds the XR at Ready=False instead of silently rotating a live credential, unless generate.regenerate: true. A secret is written only once every source resolves; a source that disappears later keeps the last value and flags SourcesResolved=False. A claim owns an entry without its data — custom_metadata only, and every version deleted with the XR — for paths another writer fills, like kubeconfigs/<cluster>. Can compose the KV mount, which it never deletes. |
ghcr.io/stuttgart-things/crossplane-configurations/vault-secrets |
| zitadel | zitadel-oidc-client | v0.2.0 | One ZITADEL OIDC client in an existing project from a namespaced ZitadelOidcClient XR — e.g. the Argo CD login of one cluster, since ZITADEL matches redirect URIs exactly and each cluster needs its own app. An inline OpenTofu Workspace runs the oidc-app module of zitadel-base-setup (pinned by tag); every XR value reaches it typed through varmap, and a field left out is null, which the module reads as its own default. With spec.vault, a provider-vault SecretV2 owns <mount>/<path> and reads client ID and secret from the Workspace's connection Secret via dataJsonSecretRef, so the credentials never pass through a spec; it is composed only once the Workspace is Ready, and the XR stays Ready=False until the entry is. The project, its roles and its grants stay in the lab root a person applies. releaseOnDelete (default true) drops Delete from both, because a recreated app gets new credentials and breaks every login. Replaces the pipeline plan of stuttgart-things#4855; pilot only until the Workspace state leaves the management cluster (#482). |
ghcr.io/stuttgart-things/crossplane-configurations/zitadel-oidc-client |
Common workflows are wrapped in Taskfile.yaml:
| Task | Purpose |
|---|---|
task render |
Render a Configuration's example XR locally (no cluster needed) |
task check |
Verify a target cluster satisfies a Configuration's dependencies |
task apply-dev |
Apply a Configuration and/or example XR from local files (dev install) |
task pre-commit |
Run the repo's pre-commit hooks (file hygiene, YAML, workflows, secrets) |
task verify |
Offline package + example XR validation (same dagger module the CI workflow runs) |
task push |
Build and push a Configuration as an OCI package to ghcr.io — the version origin/main carries, from main, never over a published tag |
task push-dev |
Build and push to ttl.sh for quick try-on-cluster dev iteration (anonymous, public, ephemeral — default 1 h TTL); no version bump, no canonical-registry touch |
Each interactive task uses gum pickers by default. For CI, scripts and agents — anywhere without a TTY — every picker can be bypassed with an env var (see Non-interactive usage below).
Non-interactive usage
Every gum choose / gum confirm in the Taskfile has an env-var bypass. When the env var is set, the picker is skipped and its value is validated; when unset, the picker runs as before. Mix and match — set only what you need to silence.
| Task | Env vars (bypass) |
|---|---|
render |
CONFIG=k8s/<name>, XR=<file> (path, or basename resolved against <CONFIG>/examples/) |
check |
KUBECONFIG=<path>, CONFIG=k8s/<name> |
apply-dev |
KUBECONFIG=<path>, CONFIG=k8s/<name>, WHAT=configuration|xr|both, XR=<file>, YES=1 (skip confirm) |
verify |
CONFIG=k8s/<name> |
push |
CONFIG=k8s/<name>, BUMP=current|patch|minor|major|custom|vX.Y.Z (custom requires VERSION=vX.Y.Z; anything but the version on origin/main needs FORCE=1), YES=1 (skip confirm), FORCE=1 (skip the main/tag guards), plus the existing REGISTRY / USERNAME / PASSWORD_ENV / PREFIX |
push-dev |
CONFIG=k8s/<name>, TTL=1h|24h|… (default 1h), TTL_PREFIX=<scope> (default $(whoami)/crossplane-configurations) |
Examples:
# fully non-interactive render
CONFIG=k8s/namespace XR=xr-min.yaml task render
# verify a specific Configuration (no picker)
CONFIG=k8s/namespace task verify
# dev-install everything for one Configuration onto a chosen cluster
KUBECONFIG=~/.kube/lab.yaml CONFIG=k8s/namespace WHAT=both XR=xr.yaml YES=1 task apply-dev
# publish what main carries, without prompts (token comes from $GITHUB_TOKEN by default):
# the version bump and README row go in the PR, this runs on main after the merge
CONFIG=k8s/namespace BUMP=current YES=1 task push
# a number main does not carry (a pre-release, say) only with FORCE=1
CONFIG=k8s/namespace BUMP=custom VERSION=v0.2.0-rc1 FORCE=1 YES=1 task push
# dev iteration: push to ttl.sh, install on a test cluster, throw away
CONFIG=k8s/volume-claim task push-dev # → ttl.sh/<you>/crossplane-configurations/volume-claim:1h
# task prints a kubectl-apply'able Configuration manifest pointing at the dev URLpush will refuse to prompt for a password when YES=1 is set and $PASSWORD_ENV (default GITHUB_TOKEN) is unset — set the token in the environment for unattended use.
Dev iteration with ttl.sh
task push-dev publishes the Configuration to ttl.sh — an anonymous, public, ephemeral OCI registry where images auto-delete after a configurable duration (the tag is the TTL). Use it to try a package on a test cluster without going through the canonical ghcr.io release path (which carries version-bump ceremony and the private-by-default visibility flip on first publish per package).
Workflow:
# 1. push the current working tree to ttl.sh
CONFIG=k8s/volume-claim task push-dev
# ✓ pushed ttl.sh/<you>/crossplane-configurations/volume-claim:1h
#
# Install on a test cluster:
# kubectl apply -f - <<MANIFEST
# ---
# apiVersion: pkg.crossplane.io/v1
# kind: Configuration
# metadata:
# name: volume-claim-dev # ← suffix avoids clashing with a canonical install
# spec:
# package: ttl.sh/<you>/crossplane-configurations/volume-claim:1h
# MANIFEST
# 2. copy-paste-apply that manifest on the test cluster, exercise XRs, repeat
# 3. when happy, run `task push` for the canonical ghcr.io releaseThe dagger module is the same one task push uses; the only differences are --registry ttl.sh, an anonymous credential, no version-bump and no visibility check.
Repository layout
Configurations are grouped by the kind of resource they manage:
crossplane-configurations/
├── bootstrap/ # cluster bootstrap (secrets/auth tooling)
│ ├── vault-auth/ # Vault Kubernetes auth backends (OpenTofu)
│ └── vault-config/ # Vault secret-tooling (CSI/VSO/ESO) + auth bootstrap (Helm/Kubernetes)
├── cicd/ # CI/CD workflow resources
│ ├── ansible-run/ # Tekton PipelineRun wrapping an Ansible playbook
│ ├── cluster-backup/ # scheduled encrypted state export to an OCI registry
│ └── scheduled-run/ # runs an arbitrary XR/manifest on a cron schedule (CronJob)
├── k8s/ # Kubernetes-native resources
│ ├── cloud-config/ # cloud-init userdata Secrets for VMs
│ ├── namespace/ # managed Namespaces (+ quota/limits/netpol/RBAC)
│ └── volume-claim/ # PersistentVolumeClaims (default-SC fallback, snapshot restore)
└── machinery/ # VM provisioning
├── harvester-vm/ # Harvester / KubeVirt VMs (EnvironmentConfig defaults)
├── proxmox-vm/ # Proxmox VE VMs (OpenTofu, EnvironmentConfig defaults)
├── rancher-cluster/ # generic Rancher clusters + auto-wired downstream kubeconfig
├── virtual-machine/ # high-level VM API (size/provider/env → VMProvision)
├── vm-batch/ # batch VMs (+Ansible) → native proxmoxvm/vspherevm × N
├── vm-provision/ # VM router (VMProvision → Vsphere/Proxmox + Ansible)
└── vsphere-vm/ # VMware vSphere VMs (OpenTofu, EnvironmentConfig defaults)
├── vault/ # Vault objects as native provider-vault MRs (prototype)
├── app-secret-profile/ # per-app secret declarations (cluster-scoped), read by xplane-cluster
├── vault-k8s-auth/ # Kubernetes auth backends, policies, roles
└── vault-secrets/ # KV secrets from Secret refs, literals or generated values
└── zitadel/ # ZITADEL objects
└── zitadel-oidc-client/ # one OIDC app per XR (OpenTofu), credentials to Vault
Each Configuration follows the same structure:
<configuration>/
├── crossplane.yaml # Package metadata + dependencies
├── apis/
│ ├── definition.yaml # XRD (CompositeResourceDefinition)
│ └── composition.yaml # Composition pipeline
└── examples/
├── xr.yaml # Example namespaced XR (Crossplane v2)
├── configuration.yaml # Configuration manifest (OCI ref)
└── functions.yaml # Required Crossplane Functions
Requirements
Target cluster
- Crossplane
>= v2.1.3
Dev environment
crossplaneCLI — local rendering, packagingtask— runs the workflows inTaskfile.yamlgum— interactive prompts inside the tasksdagger— used bytask pre-commit(lint hooks),task verify(offline validation), andtask push(OCI build & publish)kubectl,yq— invoked bytask check/task apply-dev- A reachable Kubernetes cluster — required for
task check,task apply-dev, and end-to-end iteration
Dependencies used across this repo
Each Configuration declares its own provider and function dependencies in its crossplane.yaml. Examples currently in use:
| Type | Package | Version constraint |
|---|---|---|
| Provider | xpkg.crossplane.io/crossplane-contrib/provider-kubernetes |
>=v1.2.0,<v2.0.0 |
| Function | xpkg.crossplane.io/crossplane-contrib/function-go-templating |
>=v0.12.1,<v0.13.0 |
| Function | xpkg.crossplane.io/crossplane-contrib/function-kcl |
>=v0.12.0,<v0.13.0 |
| Function | xpkg.crossplane.io/crossplane-contrib/function-auto-ready |
>=v0.6.5,<v0.7.0 |
Local rendering
Test a Composition without applying it to a cluster:
cd k8s/cloud-config
crossplane render examples/xr.yaml apis/composition.yaml examples/functions.yaml --include-function-resultsOr via Taskfile (auto-discovers Configurations and example XRs):
task renderPre-commit hooks (local + CI)
.pre-commit-config.yaml runs the standard file-hygiene hooks (trailing whitespace, EOF, large files, merge conflicts, symlinks, YAML, private keys), shellcheck, check-github-workflows, and Yelp's detect-secrets (gated by .secrets.baseline — a snapshot of known not-a-secret matches that the hook ignores).
Local
task pre-commitWraps the dagger/linting module's run-pre-commit, so the host doesn't need Python, the hook environments, or even pre-commit itself installed.
Regenerating the baseline after intentionally introducing a string detect-secrets flags (or after upstream rules change):
docker run --rm -v "$PWD:/work" -w /work python:3.12-slim sh -c \
"apt-get update -qq && apt-get install -qq -y git >/dev/null && \
git config --global --add safe.directory /work && \
pip install --quiet detect-secrets && detect-secrets scan" > .secrets.baselineCI
The pre-commit job in .github/workflows/verify.yaml calls the reusable call-pre-commit.yaml. Findings are printed to the job log, attached as an artifact, and added to the run summary. The job fails on any hook reporting Failed.
Verification (local + CI)
Offline, cluster-free validation of a Configuration package. Both the local task and the GitHub workflow drive the same dagger/crossplane verify function, so a CI failure reproduces with one command.
Per Configuration, verify runs four checks:
crossplane xpkg build— the package itself is well-formed.- Layer 1: XR ↔ XRD — each
examples/xr*.yamlvalidates against the Configuration's own XRD (viakubeconform). - Layer 2: Object wrapper — every rendered
kubernetes.m.crossplane.io/v1alpha1Object validates against theprovider-kubernetesCRD schema (version pinned per Configuration incrossplane.yaml). - Layer 3: embedded manifest — each
spec.forProvider.manifestvalidates against the built-in Kubernetes schemas.
Local
task verify
# pick a Configuration in the promptThe task sniffs the provider-kubernetes floor from the Configuration's dependsOn and passes it through as --provider-kubernetes-version, matching what CI does. Override the dagger module pin with DAGGER_MOD=....
CI
.github/workflows/verify.yaml runs on every pull request and every push to main. A discover job lists all Configuration directories, intersects them with the diff against the base SHA, and matrix-invokes the reusable call-crossplane-verify.yaml workflow — so a PR only re-verifies the Configurations it actually touched. fail-fast: false, so one Configuration's regressions don't mask another's.
PR preview packages (ttl.sh)
On every pull request, the preview job in .github/workflows/verify.yaml reuses the same discover matrix to build each changed Configuration and task push-dev it to the public, ephemeral ttl.sh registry. ttl.sh is anonymous, so the job runs without secrets and is safe for fork PRs.
The preview is published to ttl.sh/stuttgart-things/crossplane-configurations-pr<PR>-<sha7>/<name>:24h — 24h is ttl.sh's maximum TTL (long enough to outlive a review cycle), and the PR-number/short-SHA path segment keeps each commit's preview distinct and traceable.
A second preview-comment job aggregates every changed config's install manifest into one sticky PR comment (updated in place via a hidden marker), so a reviewer can copy-paste a kind: Configuration pointing at the preview and try it on any Crossplane v2 cluster. Unchanged configs are skipped; the image auto-expires 24 h after the last push.
This is Phase 1 of the CI/CD roadmap.