I have a kind: Namespace
template yaml like follows,
apiVersion: v1
kind: Namespace
metadata:
name: {{ .Values.namespace }}
namespace: ""
How do I make helm install
create the above-given namespace ({{ .Values.namespace }}
) if and only if above namespace ({{ .Values.namespace }}
) doesn't exits in the pointed Kubernetes cluster
This feature is implemented in helm >= 3.2 (Pull Request)
Use --create-namespace
in addition to --namespace <namespace>