diff options
author | Krzysztof Opasiak <k.opasiak@samsung.com> | 2020-03-27 19:10:44 +0100 |
---|---|---|
committer | Sylvain Desbureaux <sylvain.desbureaux@orange.com> | 2020-03-31 06:26:00 +0000 |
commit | 5af320fc0c9e5f250e595cfa8daa93835016fca1 (patch) | |
tree | 5b9aec2816100f808e672f8b178f416b8767e97f /kubernetes/clamp/templates | |
parent | 8a5938824366fa06d5426e14862ee61df33e6903 (diff) |
[COMMON] Allow to include filePaths as a reference to variable
filePaths comes as a list and we didn't "fully support" passing this
variable as a reference to other variable like we do in all other
cases.
Let's fix that and allow both constructs:
secrets:
- name: construct 1
type: generic
filePaths:
- file1
- file2
- name: construct 2
type: generic
filePaths: '{{ .Values.fpaths }}'
fpaths: |
- file1
- file2
- '{{ include "templateThatGeneratesFileName" . }}
Please note the | after : in fpaths. It means that from yaml point of
view this is is a string. We need to do it this way because we pass
this to tpl function and then we need to collect a proper list from it.
Issue-ID: SO-2730
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
Change-Id: I5a6b475366bfea4cd0995a7e530bf88cb8ad639e
Diffstat (limited to 'kubernetes/clamp/templates')
0 files changed, 0 insertions, 0 deletions