arttor / helmify

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

[Helmify] strategy.type=Recreate not supported by deployments #157

Open ag2308 opened 6 days ago

ag2308 commented 6 days ago

Helmify currently does not support the spec.strategy.type attribute for deployment YAMLs. This attribute is essential for specifying deployment strategies such as Recreate.

After looking into the code, I realized that spec.strategy.type is not supported for deployment.yaml.

Steps to Reproduce: cd test_data update: k8s-operator-kustomization.output, added spec.strategy.type = Recreate. execute: cat test_data/k8s-operator-kustomization.output | go run ./cmd/helmify mychart

The generated Helm chart mychart lacks the strategy configuration in templates/deployment.yaml.

Has anyone else encountered this issue or knows of an alternative solution?