Description
Hi 👋
I’m working on generating a values.schema.json
for the sentry-kubernetes/charts repository which using some bitnami charts and I’m running into several challenges:
-
Rollback of Bulk Schema Update
A recent effort to regenerate allvalues.schema.json
files in the Bitnami Charts repository (see Revert "[bitnami/*] Autogenerate json-schema files for all the charts" charts#19335 was reverted, leaving no clear, up-to-date source of truth for schema generation in the Bitnami workflow. -
Missing or Out-of-Sync Schemas
- Some charts in the Sentry Helm repository lack a
values.schema.json
. - Others include one that doesn’t match their
values.yaml
.
Runninghelm lint
against these charts triggers validation errors due to these discrepancies.
- Some charts in the Sentry Helm repository lack a
-
Concrete Example
In the Bitnami PostgreSQL chart version 16.7.4, the schema defines a propertyreplication.readReplicas
(see values.schema.json#L123, but thevalues.yaml
file does not include this key. This mismatch alone causes Helm lint failures. -
Schema Generation Tool
To produce thevalues.schema.json
for the Sentry charts, I’m using the dadav/helm-schema helm plugin, which traverses all chart dependencies and overrides any existingvalues.schema.json
with content generated from their correspondingvalues.yaml
files. -
Open Questions
- Should we update each Bitnami chart’s
values.yaml
to include all fields—even those missing but defined in the existingvalues.schema.json
—to avoid these misalignments? - What is the recommended best practice for keeping
values.yaml
andvalues.schema.json
in sync, given this automated process? - Since the
readme-generator-for-helm
tool is responsible for creatingvalues.schema.json
, would a PR to update missing fields in thevalues.yaml
be allowed and accepted? - I will also submit a request for
dadav/helm-schema
to not override any existingvalues.schema.json
files during generation. - What is the current status of the “full”
values.schema.json
study mentioned here: [bitnami/rabbitmq] update values.schema.json charts#29095 (comment) ? - And what is the progress on the internal issue referenced here: Revert "[bitnami/*] Autogenerate json-schema files for all the charts" charts#19335 (comment) ?
- Should we update each Bitnami chart’s
Thanks for your guidance and support!