chart-fusion
Fuse Kubernetes YAMLs into Zero Template Helm Charts
foldername:
a.ymal
b.yaml
Get names of each resource
remove prefix
generate key
- "" => camel({apiGroup}){Kind}, sanke(camel({apiGroup}){Kind}).yaml
- !"" => {name}, sanke({name}).yaml
values:
key:
apiVersion:
kind:
metdata:
spec:
# remove status
helm template kubedb kubedb > /home/tamal/go/src/github.com/tamalsaha/chart-fusion/kubedb/chart.yaml
$ go run *.go fuse -f ./kubedb/chart.yaml
$ helm template charts | kubectl apply -f -
Restrictions
- Can't create namespaced resource in multiple different namespaces
helm repo add stable https://charts.helm.sh/stable
helm repo add ui-wizards https://storage.googleapis.com/bundles.kubepack.com/ui
helm repo update