arttor / helmify

Creates Helm chart from Kubernetes yaml
MIT License
1.48k stars 137 forks source link

feat: support statefulSets #29

Open Duologic opened 2 years ago

Duologic commented 2 years ago

This PR implements support for StatefulSets, which is pretty much the same as Deployments. To facilitate this I've abstracted out the processing of Deployment into logical functions so that both the StatefulSet and Deployment can use them.

I've also hitched a small feature along with this change: templating Args into Values.

arttor commented 2 years ago

@Duologic looks really nice! Can you please add statefulset sample to test_data/sample-app.yaml And regenerate examples in /examples directory by running:

cat test_data/sample-app.yaml | go run ./cmd/helmify examples/app