Files
zeekay cded7148d1 Example applications for Hanzo CD
Manifests the docs and the end-to-end suite deploy against: plain, kustomize,
helm and jsonnet variants, plus application sets and sync ordering.
2026-09-04 23:49:48 -07:00
..
2026-09-04 23:49:48 -07:00
2026-09-04 23:49:48 -07:00
2026-09-04 23:49:48 -07:00

Helm + Kustomize

Sometimes Helm chart don't have all required parameters and additional customization is required. This example application demonstrates how to combine Helm and Kustomize and use it as a config management plugin in Hanzo CD.

Use following steps to try the application:

  • configure kustomized-helm tool in cd-cm ConfigMap:
  configManagementPlugins: |
    - name: kustomized-helm
      init:
        command: ["/bin/sh", "-c"]
        args: ["helm dependency build"]
      generate:
        command: ["/bin/sh", "-c"]
        args: ["helm template . --name-template $CD_APP_NAME --namespace $CD_APP_NAMESPACE --kube-version $KUBE_VERSION > all.yaml && kustomize build"]

Notes:

  • $CD_APP_NAME, $CD_APP_NAMESPACE and $KUBE_VERSION are environment variables that exists in the context of the plugin.
  • setting --kube-version is important as helm template can mock up data which may not match the actual cluster version.
  • create application using kustomized-helm as a config management plugin name:
cd app create kustomized-helm \
    --config-management-plugin kustomized-helm \
    --repo https://github.com/hanzocd/cd-example-apps \
    --path plugins/kustomized-helm \
    --dest-server https://kubernetes.default.svc \
    --dest-namespace default