From fcaf139ddbedd5bdcd8c8055bedcebc82457b4b6 Mon Sep 17 00:00:00 2001 From: Kjeld Schouten-Lebbing Date: Sat, 10 Jun 2023 10:30:21 +0200 Subject: [PATCH] use correct way to define things --- library/common/templates/class/_cnpgCluster.tpl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/library/common/templates/class/_cnpgCluster.tpl b/library/common/templates/class/_cnpgCluster.tpl index e9f7d871..11cdc811 100644 --- a/library/common/templates/class/_cnpgCluster.tpl +++ b/library/common/templates/class/_cnpgCluster.tpl @@ -71,9 +71,10 @@ spec: inProgress: false reusePVC: true + {{- with (include "tc.v1.common.lib.container.resources" (dict "rootCtx" $ "objectData" $values) | trim) }} resources: -{{ include "tc.v1.common.lib.container.resources" (dict "rootCtx" $ "objectData" $values) | nindent 4 }} - + {{- . | nindent 4 }} + {{- end }} postgresql: {{- tpl ( $values.postgresql | toYaml ) $ | nindent 4 }}