I am trying to create a helm deployment where one of the templates is creating a namespace as below
apiVersion : v1
kind : Namespace
metadata :
name : "{{ .Values.productId }}"
I am passing the value for the productId in values file as follows:
productId: "32345"
I get the following error when I do helm install/upgrade
Error: unable to build kubernetes objects from release manifest: unable to decode "": json: cannot unmarshal number into Go struct field ObjectMeta.metadata.namespace of type string helm.go:84: [debug] unable to decode "": json: cannot unmarshal number into Go struct field ObjectMeta.metadata.namespace of type string
I am using helm version 3.8.2. Not sure what is wrong.