helm / helm-classic

⚠️(OBSOLETE) Helm Classic v1
https://github.com/helm/helm
Other
574 stars 54 forks source link

PROPOSAL: helm scaffold #188

Closed technosophos closed 8 years ago

technosophos commented 8 years ago

One of the things that Helm sets out to do is expedite the development of Kuberntes manifest files. And we already provide several tools to help chart developers create new charts.

Perhaps we could add a helm scaffold set of commands that would provide bare-bones Kubernetes manifest files.

$ helm scaffold pod memcached.yaml
----> Generated empty pod spec in ./memcached.yaml
$ helm scaffold service memcached-service.yaml
----> Generated empty service spec in ./memcached-service.yaml

A basic pod would look something like this:

apiVersion: v1
kind: Pod
metadata:
  name: memcached
  heritage: helm
spec:
  containers:
  - name: example
    image: ""

And we would do similar templates for RCs, services, secretes, namespaces, volumes, etc.

Goals

Make building basic charts easier without cluttering the output of helm create

Non-Goals

Supply a generic template system

Cons

This does stretch helm a little more toward a development tool.

technosophos commented 8 years ago

We will not do helm scaffold for a very good reason: https://github.com/kubernetes/kubernetes/blob/570a9dc18f0110bbef38aab6daf8608d9a64a00f/docs/user-guide/kubectl/kubectl_create.md

technosophos commented 8 years ago

Reference: https://github.com/kubernetes/kubernetes/pull/16028