Quote Strings, Don’t Quote Integers

When you are working with string data, you are always safer quoting thestrings than leaving them as bare words:

  1. name: {{ .Values.MyName | quote }}

But when working with integers do not quote the values. That can, inmany cases, cause parsing errors inside of Kubernetes.

  1. port: {{ .Values.Port }}

This remark does not apply to env variables values which are expected to be string, even if they represent integers:

  1. env:
  2. -name: HOST
  3. value: "http://host"
  4. -name: PORT
  5. value: "1234"