Skip to content

fix: skip deploy-config-schema validate for ClusterContext file#41

Merged
jorisjonkers-dev-agents[bot] merged 1 commit into
mainfrom
fix/remove-cluster-context-deploy-config-validate
Jul 9, 2026
Merged

fix: skip deploy-config-schema validate for ClusterContext file#41
jorisjonkers-dev-agents[bot] merged 1 commit into
mainfrom
fix/remove-cluster-context-deploy-config-validate

Conversation

@jorisjonkers-dev-agents

Copy link
Copy Markdown
Contributor

Removes the incorrect call to deploy-config-schema validate "$context_file" in deploy-artifact/run.sh step (6).

The cluster-context-public.yml file has kind=ClusterContext, not a deploy-config. Using the validate CLI subcommand on it causes the CLI to fall back to the deploy-config schema, producing spurious E_SCHEMA errors for fields like access_intent, cluster, exposure_intent, etc. that don't exist in the deploy-config schema.

The context is already validated by homelab-inventory before being published (using the programmatic validateClusterContext API, not the CLI). The fix reduces step (6) to a presence-check only: fail if the file is absent, but do not schema-validate it.

@jorisjonkers-dev-agents jorisjonkers-dev-agents Bot added the type: bug Something is broken or behaving incorrectly. label Jul 9, 2026
@jorisjonkers-dev-agents jorisjonkers-dev-agents Bot merged commit 97d6e32 into main Jul 9, 2026
5 checks passed
@jorisjonkers-dev-agents jorisjonkers-dev-agents Bot deleted the fix/remove-cluster-context-deploy-config-validate branch July 9, 2026 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: bug Something is broken or behaving incorrectly.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant