From bafb792339b5898a0e6b6219ad54b5f501d727c2 Mon Sep 17 00:00:00 2001 From: Niklas Wik Date: Tue, 9 Jan 2018 15:12:50 +0200 Subject: feat(templater): Added support for file include Adds a 'fileContent' template function to insert the literal contents of a file specified in the template. Signed-off-by: Niklas Wik --- example/some-api/some-api.yaml | 2 ++ 1 file changed, 2 insertions(+) (limited to 'example') diff --git a/example/some-api/some-api.yaml b/example/some-api/some-api.yaml index 57ab7c65275d..44b61541744c 100644 --- a/example/some-api/some-api.yaml +++ b/example/some-api/some-api.yaml @@ -25,6 +25,8 @@ spec: value: {{ .importantFeature }} - name: SOME_GLOBAL_VAR value: {{ .globalVar }} + - name: FILE_VAR + value: {{ fileContent "some-api/filevar.txt" }} --- apiVersion: v1 kind: Service -- cgit 1.4.1