From 4f76a87c09b39c71607184d50395deee9890f280 Mon Sep 17 00:00:00 2001 From: patrick hermann <47567770+patrick-hermann-sva@users.noreply.github.com> Date: Sun, 16 Jun 2024 16:02:05 +0200 Subject: [PATCH] Update kustomization-patch.yaml.tpl --- templates/kustomization-patch.yaml.tpl | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/templates/kustomization-patch.yaml.tpl b/templates/kustomization-patch.yaml.tpl index 22faf96..c2c1d2d 100644 --- a/templates/kustomization-patch.yaml.tpl +++ b/templates/kustomization-patch.yaml.tpl @@ -4,5 +4,10 @@ kind: Kustomization resources: - gotk-components.yaml - gotk-sync.yaml +%{ if length(patches) > 0 } patches: - ${patches} + %{ for patch in patches } + - patch: | + ${patch} + %{ endfor ~} +%{ endif }