How to create a namespace if it doesn't exists from HELM templates

Kasun Siyambalapitiya <kasunsi@...>

Hi all,

I have a `kind: Namespace` template yaml like follows,

    apiVersion: v1
    kind: Namespace
      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 kubernets cluster?

Kasun Siyambalapitiya

Kasun Siyambalapitiya
Software Engineer
WSO2 Inc. -
lean . enterprise . middleware
Tel : 0715523466
E mail : kasunsi@...

Join { to automatically receive all group messages.