From d3ca9d1db9859891f9d228bb7e509156cc67d307 Mon Sep 17 00:00:00 2001
From: Erwan Miran <mirwan@users.noreply.github.com>
Date: Fri, 26 Jun 2020 08:59:31 +0200
Subject: [PATCH] kube_encryption_resources must be output as yaml (#6309)

---
 roles/kubernetes/master/templates/secrets_encryption.yaml.j2 | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/roles/kubernetes/master/templates/secrets_encryption.yaml.j2 b/roles/kubernetes/master/templates/secrets_encryption.yaml.j2
index 0fc4bb850..fae9bab32 100644
--- a/roles/kubernetes/master/templates/secrets_encryption.yaml.j2
+++ b/roles/kubernetes/master/templates/secrets_encryption.yaml.j2
@@ -1,7 +1,8 @@
 kind: EncryptionConfig
 apiVersion: v1
 resources:
-  - resources: {{ kube_encryption_resources }}
+  - resources:
+{{ kube_encryption_resources|to_nice_yaml|indent(4, True) }}
     providers:
     - {{ kube_encryption_algorithm }}:
         keys:
-- 
GitLab