Bundle Kubernetes schema definitions into values.schema.json

What does this MR do?

values.schema.json pointed five properties at raw.githubusercontent.com for Kubernetes definitions, and Helm fetches a remote $ref on every helm template, helm lint and helm install. Without internet access, as on an air-gapped install, the chart renders only with --skip-schema-validation, dropping validation entirely.

This sets bundle and bundleWithoutID in .schema.yaml and regenerates the schema with plugin 2.6.1, the version check-values-schema installs. The same pinned v1.34.0 definitions now sit under $defs and make up nearly all of the diff.

Test plan

With Helm 3.19.0 (the chart's .tool-versions) and 4.3.2, and HTTPS_PROXY and HTTP_PROXY pointed at a closed port:

Chart helm template helm lint --strict
main fails loading _definitions.json fails loading _definitions.json
this branch renders passes

With internet on, --set podSecurityContext.supplementalGroups=abc, securityContext.privileged=abc and livenessProbe.failureThreshold=abc are rejected on both main and this branch, and the first two are rejected by the bundled definitions alone, since values.yaml does not declare those keys.

Author's Checklist

For anything in this list which will not be completed, please provide a reason in the MR discussion.

Required

  • Ensure a release milestone is set. (Left for a maintainer to set.)
  • MR title and description are up to date, accurate, and descriptive.
  • MR targeting the appropriate branch.
  • MR has a green pipeline on GitLab.com. (Pending the first pipeline.)
  • If the MR changes the packaged chart (templates/, values.yaml, values.schema.json), version in Chart.yaml is bumped per the release process.
  • When ready for review, MR is labeled workflowready for review per the MR workflow. (After the first pipeline.)

Expected

  • Test plan indicating conditions for success has been posted and passes.
  • Documentation is created or updated. (No documented behaviour changes.)
  • Tests are added. (helm unittest cannot simulate a missing network; see the test plan.)
Edited by Fabien Catteau

Merge request reports

Loading
Loading