From da8134417ed32ef8adff934b29cba04fafc3d747 Mon Sep 17 00:00:00 2001 From: Stavros kois Date: Mon, 6 Nov 2023 19:07:12 +0200 Subject: [PATCH] use storage shim on postres too --- library/common/templates/app_functions/_postgres.tpl | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/library/common/templates/app_functions/_postgres.tpl b/library/common/templates/app_functions/_postgres.tpl index 8f055f9496..44f861a5fb 100644 --- a/library/common/templates/app_functions/_postgres.tpl +++ b/library/common/templates/app_functions/_postgres.tpl @@ -192,9 +192,7 @@ pgBackup (required): Data persistence configuration for backup postgresdata: enabled: true - type: {{ $data.type }} - datasetName: {{ $data.datasetName | default "" }} - hostPath: {{ $data.hostPath | default "" }} + {{- include "ix.v1.common.app.storageOptions" (dict "storage" $data) | nindent 2 }} targetSelector: postgres: postgres: @@ -203,9 +201,7 @@ postgresdata: mountPath: /mnt/directories/postgres_data postgresbackup: enabled: true - type: {{ $backup.type }} - datasetName: {{ $backup.datasetName | default "" }} - hostPath: {{ $backup.hostPath | default "" }} + {{- include "ix.v1.common.app.storageOptions" (dict "storage" $backup) | nindent 2 }} targetSelector: postgresbackup: postgresbackup: