Repository navigation
Conversation
…cluster container-preflight k8s reads manifests (files, dirs, or helm/kustomize output on stdin), profiles a cluster with read-only kubectl calls (or a saved snapshot) and checks five rules: k8s.api (no matches for kind), k8s.image (ErrImagePull / ImagePullBackOff), k8s.platform (images that cannot run on eligible node architectures), k8s.schedulable (FailedScheduling with the scheduler's reasons) and k8s.storage (PVCs Pending on missing StorageClasses). Unreachable clusters and missing RBAC become root causes through the existing fact graph.
…d apiVersion hint Applying the example manifests to minikube confirmed 4 of 5 predictions (3 verbatim). The miss: an amd64-only image ran on the arm64 node through Docker Desktop's emulation. Local clusters now get a warning instead of an error. The API rule names the served apiVersion for a kind that moved groups.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
container-preflight k8s. It checks Kubernetes manifests against a specific cluster beforekubectl apply.helm template/kustomize buildoutput on stdin.kubectlcalls (nodes, API resources, StorageClasses), or a snapshot saved with--save-clusterand used with--cluster.k8s.api:no matches for kindk8s.image:ErrImagePull/ImagePullBackOffk8s.platform: image architecture vs eligible nodes; local clusters get an emulation warningk8s.schedulable:FailedSchedulingwith the scheduler's reasonsk8s.storage: PVCPendingValidation
Checked on minikube: 4 of 5 predictions confirmed, 3 word for word. The miss (emulation on local clusters) is fixed. See
docs/validation/2026-09-24-minikube-k8s.md.Known limitations
imagePullSecretsaren't checked.