Open luolong opened 1 year ago
This would be a very welcomed addition from my perspective.
Is there any tooling we could use to generate these as part of ci and perhaps push them to schemastore.org, or similar? I wouldn't mind doing some of the required work if there's any suggestions.
There is https://github.com/losisin/helm-values-schema-json and the README mentions ways of automation. But the generated schema leaves a lot to be desired:
values.yaml
is null
, the generated schema thinks that null
is the only valid value for this attribute.It is probably impossible to reliably generate a schema for a given values.yaml
. These schemas should probably be authored manually.
Edit: Fixed link, sorry!
https://github.com/dadav/helm-schema works very nicely and also adds dependency charts to the schema. I just tested it with the grafana-oncall
chart and the resulting schema is very usable.
Also, this tool can be nicely integrated into github-actions, as seen in https://github.com/kubernetes/ingress-nginx/pull/11295
This will allow various IDE's to provide intellisense when authoring Grafana chart values.