If I have a parent chart with multiple subcharts, and the subcharts define resources that I would like to check with pre-flight checks and use analyze to generate support bundles, do you recommend I create the pre-flight and support-bundle templates in the subcharts or do the need to exist in the parent chart?
You can distribute the Preflight and Support Bundle specs with the component/chart that makes the most sense. They don’t have to all be in the parent chart.
As long as your Helm chart renders all the Preflight specs when you do a helm template
, they will get parsed and executed:
helm template gitea-1.0.6.tgz | kubectl preflight -
helm template gitea | kubectl preflight -
helm template oci://myregistry.io/org/examplechart | kubectl preflight -
The preflight
tool will parse all of the manifests that get piped through stdin
and execute all the Preflight specs it finds.