From e464479cb2bb9b7228f595e513622bef2b173946 Mon Sep 17 00:00:00 2001 From: Joan Rieu Date: Mon, 30 Oct 2017 22:58:17 +0100 Subject: [PATCH] docs(templates): fix misleading/broken examples --- docs/charts_tips_and_tricks.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/charts_tips_and_tricks.md b/docs/charts_tips_and_tricks.md index 885c30085..1573f2edd 100644 --- a/docs/charts_tips_and_tricks.md +++ b/docs/charts_tips_and_tricks.md @@ -18,11 +18,11 @@ We also added two special template functions: `include` and `required`. The `inc function allows you to bring in another template, and then pass the results to other template functions. -For example, this template snippet includes a template called `mytpl.tpl`, then +For example, this template snippet includes a template called `mytpl`, then lowercases the result, then wraps that in double quotes. ```yaml -value: {{include "mytpl.tpl" . | lower | quote}} +value: {{include "mytpl" . | lower | quote}} ``` The `required` function allows you to declare a particular @@ -144,7 +144,7 @@ spec: template: metadata: annotations: - checksum/config: {{ include (print $.Template.BasePath "/secret.yaml") . | sha256sum }} + checksum/config: {{ .Files.Get "path/to/config" | sha256sum }} [...] ```