mirror of
https://github.com/hanzocd/example-apps.git
synced 2026-10-30 20:50:47 +00:00
Manifests the docs and the end-to-end suite deploy against: plain, kustomize, helm and jsonnet variants, plus application sets and sync ordering.
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-helmtool incd-cmConfigMap:
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_NAMESPACEand$KUBE_VERSIONare environment variables that exists in the context of the plugin.- setting
--kube-versionis important as helm template can mock up data which may not match the actual cluster version.
- create application using
kustomized-helmas 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