/kubernetes-platform-skills:crossplane-configuration-validationfrom kubernetes-platform-skills
Validates Crossplane Compositions, XRDs, and Claims using crossplane beta validate and crossplane render. Catches field-path patch typos and schema mismatches to prevent silent provisioning failures.
Ships in kubernetes-platform-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
A Composition's field-path patches (fromFieldPath/toFieldPath) are
plain strings, not compiler-checked references — a typo in either path,
or a transform that doesn't match the target field's actual type, fails
silently in many Crossplane versions rather than producing an obvious
error: the target field just keeps its base manifest's default value,
and a Claim that requested tier: large can quietly provision a
small-tier resource with no error surfaced anywhere an operator would
naturally look. Because a Composition sits between a namespaced
Claim (what an application team wrote) and real cloud infrastructure
(what actually gets provisioned, and billed, and depended on), this gap
is higher-stakes than a typical Kubernetes manifest typo. This skill
covers the validation tooling — schema validation, render/dry-run, and
patch-path checking — that should run before a
crossplane-kubernetes-native-provisioning-built
Composition or XRD reaches a live cluster.
Composition/XRD changes in a
platform repo before merge, so a broken patch or schema mismatch
surfaces in a PR check rather than in a silently-wrong provisioned
resource.Composition's patches, transforms, or
an XRD's schema, and wanting to see the actual resulting managed
resource manifest before approving.Claim reconciles without error, but the resulting cloud resource
doesn't match what the Claim's parameters seem to request.Claim is rejected at admission (a schema validation
failure) versus one that's accepted but produces a wrong resource
(a Composition patch problem) — these require different
investigation paths.crossplane ≥ v1.16, via up or the standalone
binary) with crossplane beta validate and crossplane render
support — check the CLI's own version against the installed
Crossplane version, since render/validate behavior has evolved across
releases.Composition/XRD/Claim already defined per
crossplane-kubernetes-native-provisioning
— this skill validates changes to those definitions, not how to
author them from scratch.kubectl read access to inspect
Composite/managed resources' actual reconciled state, to compare
against what local rendering predicted.crossplane render
can validate against these without needing a live cluster connection
for the structural check itself.Validate an XRD's own schema is well-formed OpenAPI before
testing anything downstream — catches basic schema authoring errors
(bad types, invalid enum values, missing required fields) cheaply:
crossplane beta validate xrd.yaml --extra-resources composition.yaml
This is a structural check independent of any live cluster or cloud credentials, and should be the fastest, first CI gate on any XRD change.
Render a Composition against a representative Claim/composite
input, offline, before applying anything — this is the single
most important validation step, since it reproduces exactly what
Crossplane's controller would produce from the patches, without
provisioning anything real:
crossplane render xr.yaml composition.yaml functions.yaml
(xr.yaml here is a representative XDatabaseInstance/Claim-shaped
input, functions.yaml an empty/no-op function pipeline file if the
Composition uses the classic patch-and-transform mode rather than
composition functions.) Read the rendered output for the actual
spec.forProvider values a real Claim with those parameters would
produce — this is where a silent field-path typo becomes visible:
the target field will show its base default instead of the
expected patched value.
Confirm every fromFieldPath actually exists in the XRD's
schema, and every toFieldPath actually exists on the target
provider resource's CRD — a mismatch on either side is exactly the
silent-failure case this skill exists to catch:
kubectl explain xdatabaseinstance.spec.parameters --recursive
kubectl explain instance.rds.aws.upbound.io.spec.forProvider --recursive
Cross-check each patch's fromFieldPath string against the first
command's output and each toFieldPath against the second — a path
that doesn't appear in either explain output is a patch that will
never actually apply, regardless of how correct the Composition
YAML otherwise looks.
Test a representative Claim against the XRD's schema via server-side dry run, which catches schema validation failures (a Claim with an invalid enum value, a missing required parameter) without actually creating anything:
kubectl apply --dry-run=server -f databaseclaim.yaml
A rejection here is the "loud" failure mode (an admission-time schema violation) — genuinely easier to debug than the "quiet" failure mode of a patch that's individually valid YAML but doesn't map to any real field.
Compare rendered output across a matrix of representative
parameter values, not just one happy-path input, especially for
any transform (map, match, string) whose behavior depends on
which branch a given input value hits:
for tier in small medium large; do
yq ".spec.parameters.tier = \"$tier\"" xr-template.yaml > /tmp/xr-$tier.yaml
echo "=== $tier ==="
crossplane render /tmp/xr-$tier.yaml composition.yaml functions.yaml | yq '.spec.forProvider.instanceClass'
done
Confirm every enumerated value in the XRD's schema actually maps to
something sensible in the Composition's transform — an enum value
the schema allows but the transform's map doesn't cover falls through
to an undefined/zero value silently in many Crossplane versions.
Wire render + explain-path checks into CI as a required PR
check on any change touching a Composition, CompositionRevision,
or XRD:
# CI step (tool-agnostic pseudocode)
- crossplane beta validate xrd.yaml --extra-resources composition.yaml
- crossplane render xr-representative.yaml composition.yaml functions.yaml > rendered.yaml
- diff rendered.yaml rendered.expected.yaml # golden-file comparison, if maintained
A golden-file comparison (checking rendered output against a
committed expected-output snapshot) catches unintended behavior
changes in a Composition refactor even when no individual check
above fails outright.
After a Composition/XRD change ships, cross-check a live Claim's
actual reconciled state against what local rendering predicted —
confirming the offline validation and the real cluster agree, not
just trusting the offline check in isolation:
kubectl get instance.rds.aws.upbound.io -o jsonpath='{.items[0].spec.forProvider}'
Compare directly against the equivalent crossplane render output
for the same Claim's parameters — a mismatch here means either the
render tooling and the live controller are using different
Composition Function/patch logic versions, or a CompositionRevision
pin is holding a live resource to an older Composition than the one
just validated.
Validate CompositionRevision pinning explicitly when a
Composition has been updated but existing Claims are pinned to a
prior revision, so what's validated matches what's actually live:
kubectl get compositions.apiextensions.crossplane.io xdatabaseinstances.aws -o jsonpath='{.status.currentRevision}'
kubectl get databaseclaim payments-db -n payments -o jsonpath='{.spec.compositionRevisionRef.name}'
If these differ, the live Claim is still running against an older revision — validate against that revision's manifest, not only the newest one, before assuming your validation covers what's actually deployed.
crossplane render (not just schema validation) the primary CI
gate for any Composition/patch change — schema validation alone
cannot catch a field-path typo, since the typo produces a
syntactically valid patch that simply never applies.fromFieldPath/toFieldPath against kubectl explain
output for both the XRD and the target provider CRD as a standard
part of Composition code review, not just as an incident-response
step after something goes wrong.CompositionRevision pinning explicitly when validating —
render against the revision a Claim is actually pinned to, not
reflexively the newest Composition in the repo.Symptom: A Composition patch is reviewed and looks correct, but
a live Claim using the field it patches shows the base manifest's
default value instead.
Fix: This is the classic silent field-path-typo failure — run
crossplane render locally with the Claim's actual parameters and
inspect the rendered spec.forProvider output directly; a
fromFieldPath/toFieldPath that doesn't exactly match the schema
(a typo, wrong casing, or an outdated path after a schema refactor)
produces no error, just a patch that never applies.
Symptom: crossplane beta validate passes cleanly on an XRD/
Composition pair, but applying a real Claim against it in a live
cluster is rejected at admission.
Fix: Schema-level validation (crossplane beta validate) checks
structural correctness of the XRD/Composition themselves, not
necessarily every admission-time constraint the live API server
enforces (webhooks, additional CRD-level validation from the
provider). Add a server-side dry run of the actual Claim
(kubectl apply --dry-run=server) against a real cluster as a
second, complementary check rather than trusting offline validation
alone.
Symptom: An XRD's schema enum includes a value (e.g. a new tier: xlarge) that was added without updating the Composition's
corresponding transform map, and a Claim using it reconciles without
error but provisions an unexpected/undersized resource.
Fix: Render every enum value the schema allows (step 5), not just
the ones already known to work — an enum value the schema accepts
but the transform doesn't explicitly map typically falls through to
a zero-value/undefined result silently rather than failing the
Claim outright.
Symptom: A validated, working Composition change doesn't seem to
affect an existing production Claim at all after being merged and
applied to the cluster.
Fix: Check whether the Claim is pinned to an older
CompositionRevision (step 8) — Crossplane's revision-pinning
mechanism is designed to prevent exactly this kind of unexpected
live change from an in-place Composition edit, but it also means
"I validated and merged the new Composition" doesn't automatically
mean "this Claim now uses it" until the pin is deliberately updated.
Symptom: A CI validation pipeline is given write/apply credentials
to a real cluster "to make the dry-run more thorough," and a bug in
the CI script accidentally applies a test Claim against production,
provisioning real (billed) cloud infrastructure from a validation run.
Fix: Validation tooling (crossplane render, crossplane beta validate, --dry-run=server) needs, at most, read-only cluster
access and no cloud-provisioning credentials at all for the render/
validate steps specifically — never grant a CI validation job the
same write-capable ProviderConfig credentials real reconciliation
uses, and treat any pipeline that can apply real Claims as a
deployment job, not a validation job, with the corresponding review
gates.
Scenario: A platform team adds a new xlarge tier to the
DatabaseClaim XRD from
crossplane-kubernetes-native-provisioning's
worked example, and wants to validate the change end-to-end before
merging.
Update the XRD schema (tier enum gains xlarge) and run
structural validation:
crossplane beta validate xrd.yaml --extra-resources composition.yaml
Passes — the schema itself is well-formed.
Render every enum value, including the new one, against the current Composition (deliberately, before updating its transform map, to see what happens):
for tier in small medium large xlarge; do
yq ".spec.parameters.tier = \"$tier\"" xr-template.yaml > /tmp/xr-$tier.yaml
echo "=== $tier ==="
crossplane render /tmp/xr-$tier.yaml composition.yaml functions.yaml | yq '.spec.forProvider.instanceClass'
done
Output:
=== small ===
db.t3.small
=== medium ===
db.t3.medium
=== large ===
db.r6g.xlarge
=== xlarge ===
null
xlarge renders instanceClass: null — exactly the silent
fall-through failure mode this validation step exists to catch,
caught before merge instead of after a real Claim requests it.
Fix the Composition's transform map to include the new tier:
transforms:
- type: map
map:
small: db.t3.small
medium: db.t3.medium
large: db.r6g.xlarge
xlarge: db.r6g.2xlarge
Re-run the render loop — xlarge now correctly produces
db.r6g.2xlarge.
Dry-run a representative Claim requesting the new tier against a real (non-prod) cluster before merging:
kubectl apply --dry-run=server -f databaseclaim-xlarge-test.yaml
Passes cleanly — the schema and admission chain both accept it, and
the render output confirms it maps to the intended instance class.
The PR merges with confidence that no Claim requesting xlarge will
hit the silent-default failure the render step caught.
terraform plan-review discipline this skill's render/dry-run workflow mirrors for a Kubernetes-native provisioning model.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub selvarajmurugesan90/ops-engineering-skills --plugin kubernetes-platform-skills35 skills in this plugin
/cert-manager-tls-automationGuides installing and configuring cert-manager for automated TLS certificate issuance and renewal — Issuers vs. ClusterIssuers, ACME/ Let's Encrypt HTTP-01 and DNS-01 challenges, private-CA issuance, and integration with Ingress-nginx and Istio gateways. Use when a user asks to "automate TLS certificates on Kubernetes," "set up cert-manager with Let's Encrypt," "fix a stuck Certificate that won't become Ready," "use DNS-01 for a wildcard cert," "rotate mTLS certs automatically," or "issue certs from an internal CA."
/cni-networking-calico-flannelGuides choosing and installing a Kubernetes CNI plugin — Calico vs. Flannel — including NetworkPolicy enforcement capability differences, BGP vs. VXLAN/overlay data paths, and IP address management (IPAM) tradeoffs. Use when a user asks to "choose a CNI plugin for Kubernetes," "enable NetworkPolicy enforcement," "set up Calico with BGP peering," "install Flannel," "debug pod-to-pod connectivity across nodes," or "migrate from Flannel to Calico."
/complete-kubernetes-deployment-on-aks-from-scratchSequences a complete, end-to-end AKS deployment from a bare Azure subscription to a production-ready cluster serving a first workload — Azure landing zone prerequisites, AKS cluster and node pool provisioning, Azure CNI (with the Calico/Cilium alternative noted), ingress (Application Gateway Ingress Controller vs. ingress-nginx), cert-manager with Azure DNS, conformance validation, a Helm-deployed workload, and a node/cluster health baseline. This is an integration/orchestration skill that sequences several existing tool-specific skills in the correct order and flags the handoff points between them — it does not restate their internals. Use when a user asks to "deploy a Kubernetes cluster on AKS from scratch," "set up a new AKS environment end to end," "build a production AKS cluster from a fresh Azure subscription," or "give me the full sequence to go from nothing to a working AKS cluster."
/complete-kubernetes-deployment-on-eks-from-scratchSequences a complete, end-to-end EKS deployment from a bare AWS account to a production-ready cluster serving a first workload — landing zone/IAM prerequisites, EKS cluster and node group provisioning, VPC CNI (with the Calico/Cilium alternative noted), ingress (ALB vs. ingress-nginx), cert- manager with Route 53 DNS-01, conformance validation, a Helm-deployed workload, and a node/cluster health baseline. This is an integration/ orchestration skill that sequences several existing tool-specific skills in the correct order and flags the handoff points between them — it does not restate their internals. Use when a user asks to "deploy a Kubernetes cluster on EKS from scratch," "stand up a new EKS environment end to end," "build a production EKS cluster from a fresh AWS account," or "give me the full sequence to go from nothing to a working EKS cluster."
/complete-kubernetes-deployment-on-gke-from-scratchSequences a complete, end-to-end GKE deployment from a bare GCP project to a production-ready cluster serving a first workload — GCP landing zone prerequisites, GKE cluster and node pool provisioning, VPC-native/ Dataplane V2 CNI (with the Calico alternative noted), ingress (GKE Ingress/Gateway API vs. ingress-nginx), cert-manager with Cloud DNS, conformance validation, a Helm-deployed workload, and a node/cluster health baseline. This is an integration/orchestration skill that sequences several existing tool-specific skills in the correct order and flags the handoff points between them — it does not restate their internals. Use when a user asks to "deploy a Kubernetes cluster on GKE from scratch," "set up a new GKE environment end to end," "build a production GKE cluster from a fresh GCP project," or "give me the full sequence to go from nothing to a working GKE cluster."
/complete-kubernetes-deployment-on-oke-oci-from-scratchSequences a complete, end-to-end OKE (Oracle Container Engine for Kubernetes) deployment from a bare OCI tenancy to a production-ready cluster serving a first workload — OCI landing zone prerequisites (Compartments, Dynamic Groups), OKE Enhanced cluster and node pool provisioning, VCN-Native pod networking (with the Calico NetworkPolicy add-on noted), ingress (Native Ingress Controller vs. ingress-nginx), cert-manager with OCI DNS via a community webhook solver, conformance validation, a Helm-deployed workload, and a node/cluster health baseline. This is an integration/orchestration skill sequencing several existing tool-specific skills in the correct order and flagging the handoff points between them — it does not restate their internals. Use when a user asks to "deploy a Kubernetes cluster on OKE from scratch," "set up OKE on OCI end to end," "build a production OKE cluster from a fresh OCI tenancy," or "give me the full sequence to go from nothing to a working OKE cluster."
Other plugins' skills for the same job