From 67c190af28a2ae5b530969b3a0319d648887b78d Mon Sep 17 00:00:00 2001 From: Arnaud Rinquin Date: Mon, 29 Jan 2018 14:42:40 -0800 Subject: [PATCH] doc(tips): Add an exception to tip about quoting integers Add a sentence to balance the advice about not quoting integers as it can cause headaches when applied to env variables. --- docs/charts_tips_and_tricks.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/charts_tips_and_tricks.md b/docs/charts_tips_and_tricks.md index b1df146db..f6b482963 100644 --- a/docs/charts_tips_and_tricks.md +++ b/docs/charts_tips_and_tricks.md @@ -52,6 +52,16 @@ many cases, cause parsing errors inside of Kubernetes. port: {{ .Values.Port }} ``` +This remark does not apply to env variables values which are expected to be string, even if they represent integers: + +``` +env: + -name: HOST + value: "http://host" + -name: PORT + value: "1234" +``` + ## Using the 'include' Function Go provides a way of including one template in another using a built-in