CICD-289 · Kubernetes API compatibility testing
Encyclopedia · Advanced Kubernetes operations · All snippets
Previous · CICD-288 · Next · CICD-290
1. Where it fits
- Placement CI compatibility gate.
- Prerequisites kubectl, isolated cluster or namespace and installed CRDs when named.
- Platforms kubernetes, local-lab.
2. Copy the snippet
bash
kubeconform -strict -summary -kubernetes-version 1.31.0 manifests/
kubectl -n staging apply --dry-run=server -f manifests/3. How it works
Server-side dry run sends the candidate through API validation and admission without persisting the change.
4. Verify the result
Compare against the oldest supported cluster version. Supply pinned schemas for CRDs.
Validation version-dependent (Bash parse). Status definitions.