/kustomize-helm-plugins

Kustomize to Helm Chart

Primary LanguageGo

Kustomize helm plugins

This repo help to generate Helm Chart from Kustomize.

Read more about Kustomize Plugins.

Version: v0.1.0

Installation

build image

docker build -t kustomize-helm-plugins .

usage

Add transformers to kustomization.yaml

transformers:
- helm.yaml

helm.yaml

apiVersion: helm/v1
kind: HelmTransformer
metadata:
  name: external-dns
ChartName: external-dns
ChartVersion: 0.1.0
appVersion: 0.7.3
Values:
  DOMAIN: example.com
  PROVIDER: aws

Example

cd example
mkdir -p chart/templates
docker run -v ${PWD}:/working kustomize-helm-plugins kustomize/overlays/helm > chart/templates/all.yaml
helm template --release-name kustomize --namespace external-dns-ns -f chart/values.yaml chart/