coreos / kpm

KPM is a tool to deploy and manage application stacks on Kubernetes.
Apache License 2.0
124 stars 29 forks source link

Document `namespace` behavior #95

Open Quentin-M opened 8 years ago

Quentin-M commented 8 years ago

With both yaml and jsonnet formats, the metadata: namespace value in the manifests is overwritten with the value from --namespace (or default), after templating. Also, $.variables.namespace is available.

It should be documented as it is not intuitive.

https://github.com/coreos/kpm/blob/b26723c/kpm/kub.py#L132 https://github.com/coreos/kpm/blob/b26723c/kpm/jsonnet/lib/kpm.libjsonnet#L61

Quentin-M commented 8 years ago

This also applies to metadata: name.