Skip to content

Validate render-drift targets with kubeconform, not byte equality#30

Merged
ExtraToast merged 2 commits into
mainfrom
refactor/render-drift-schema-check
Jul 6, 2026
Merged

Validate render-drift targets with kubeconform, not byte equality#30
ExtraToast merged 2 commits into
mainfrom
refactor/render-drift-schema-check

Conversation

@jorisjonkers-dev-agents

Copy link
Copy Markdown
Contributor

The deploy-config-render-drift action compared each freshly rendered
adapter file against its committed counterpart with cmp, so any
formatting, key-order, or comment difference registered as drift even when
the rendered Kubernetes objects were identical. Committed targets are now
validated with kubeconform, reporting drift only on genuine schema
violations rather than byte-level noise. The loop structure and
drift_found accounting are unchanged.

This mirrors the functional-validation change made in homelab-deploy's
render-drift path.

…uality

The render-drift action compared each freshly rendered adapter file against
its committed counterpart with cmp, so any formatting, key-order, or comment
difference registered as drift even when the Kubernetes objects were
identical. Committed targets are now validated with kubeconform, reporting
drift only on genuine schema violations rather than byte-level noise.
…tion

kubeconform validates that the committed target is well-formed Kubernetes
YAML; it does not compare the target against the freshly rendered output, so
genuine drift went undetected. The action now compares canonicalised YAML
(key order, formatting, and comments normalised) so real content drift is
reported while cosmetic differences are not.
@ExtraToast ExtraToast merged commit 42daec5 into main Jul 6, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant