kubernetesopenshiftkubernetes-helm

Helm super chart


We have 2 helm-charts:

  1. helm-chart-A which deploys:
    • A-config-map
    • A-deployment
    • A-secret
  2. helm-chart-B which deploys:
    • B-config-map
    • B-statefulset
    • B-secret

Is it possible to create an empty super hart which include the above as dependencies and deploy them?

e.g

helm-chart-C:

--> Output:

In case yes, is it possible to specify as well the "helm.sh/hook-weight"? e.g. helm-chart-B has to be deployed before A

I use an example 2 charts but we have 7/8 charts that we want to deploy with an "helm super chart"


Solution

  • You can create a new chart C with two subcharts A and B, or just add them as dependencies, but you cannot easly control the execution order between the two charts (deploying all resources from A before B), you will have something like:

    To force helm to deploy the resources (not the charts) in some order, you can use helm hooks weights.