From d33b95ff9fe80bbe77d1260fbeb7c91409e72fae Mon Sep 17 00:00:00 2001 From: Gabriel Saratura Date: Fri, 27 Oct 2023 15:58:16 +0200 Subject: [PATCH] Fix restore operation not working --- component/component/vshn_postgres.jsonnet | 2 +- .../vshn/appcat/appcat/21_composition_vshn_postgresrestore.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/component/component/vshn_postgres.jsonnet b/component/component/vshn_postgres.jsonnet index 6aaa79d14..7fb39e1a6 100644 --- a/component/component/vshn_postgres.jsonnet +++ b/component/component/vshn_postgres.jsonnet @@ -739,7 +739,7 @@ local copyJob = { }; local clusterRestoreConfig = { - name: 'cluster-restore', + name: 'cluster', base+: { spec+: { references+: [ diff --git a/component/tests/golden/vshn/appcat/appcat/21_composition_vshn_postgresrestore.yaml b/component/tests/golden/vshn/appcat/appcat/21_composition_vshn_postgresrestore.yaml index 3491ce636..66fd88cff 100644 --- a/component/tests/golden/vshn/appcat/appcat/21_composition_vshn_postgresrestore.yaml +++ b/component/tests/golden/vshn/appcat/appcat/21_composition_vshn_postgresrestore.yaml @@ -621,7 +621,7 @@ spec: - dependsOn: apiVersion: stackgres.io/v1 kind: SGBackup - name: cluster-restore + name: cluster patches: - fromFieldPath: status.conditions toFieldPath: status.pgclusterConditions