From e76e1a88eb0a3d378213652491107825425816ff Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Mon, 29 Apr 2019 13:30:51 +0200 Subject: [PATCH] elections: Rework again the secret.yml again Signed-off-by: Pierre-Yves Chibon --- .../elections/templates/secret.yml | 21 +++++++------------ 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/roles/openshift-apps/elections/templates/secret.yml b/roles/openshift-apps/elections/templates/secret.yml index be59af6e16..3291b76a1f 100644 --- a/roles/openshift-apps/elections/templates/secret.yml +++ b/roles/openshift-apps/elections/templates/secret.yml @@ -1,16 +1,11 @@ --- {% macro load_file(filename) %}{% include filename %}{%- endmacro -%} apiVersion: v1 -kind: List -metadata: {} -items: - -- apiVersion: v1 - kind: Secret - metadata: - name: elections-secret - labels: - app: elections - data: - client_secrets.json: |- - {{ load_file('client_secrets.json') | indent }} +kind: Secret +metadata: + name: elections-secret + labels: + app: elections +stringData: + client_secrets.json: |- + {{ load_file('client_secrets.json') | indent }}