Azure / draft-classic

A tool for developers to create cloud-native applications on Kubernetes.
https://draft.sh
MIT License
3.92k stars 397 forks source link

Support `helm template | kubectl apply -f -` #915

Open danmikita opened 5 years ago

danmikita commented 5 years ago

Draft is an excellent local development tool, but many production kubernetes (and openshift) installations do not use Tiller. Although Helm 3 will be getting rid of Tiller, adding helm template | kubectl apply -f - for the Helm 2 version of Draft would increase adoption.

j-rewerts commented 5 years ago

Love this idea. Is the right place for this here or with Helm?

danmikita commented 5 years ago

My thought is that since draft currently utilizes the Helm go package, which doesn't have a clean template implementation (the template cmd is pretty much a hodge-podge of the functions leading up to the install cmd), it would need to be manually implemented in Draft. That being said - with Helm 3 and the removal of Tiller imminent, this issue may be resolved on its own.

bacongobbler commented 5 years ago

In Helm 3 the template command has been re-architected to cleanly re-use the same package as helm install so it should be easier to implement in that time.

https://github.com/helm/helm/pull/5171