From 4f041918e3e55fe7bd740ac44b5da6bf02c26b28 Mon Sep 17 00:00:00 2001 From: Daniil Fedotov Date: Thu, 19 Dec 2024 14:13:41 -0500 Subject: [PATCH] Fix variables --- .../elasticsearch/blueprint-v2/elasticsearch-blueprint.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/examples/elasticsearch/blueprint-v2/elasticsearch-blueprint.yaml b/examples/elasticsearch/blueprint-v2/elasticsearch-blueprint.yaml index 910547d313..758608496f 100644 --- a/examples/elasticsearch/blueprint-v2/elasticsearch-blueprint.yaml +++ b/examples/elasticsearch/blueprint-v2/elasticsearch-blueprint.yaml @@ -36,7 +36,6 @@ actions: - -c - | host_name="{{ .Object.spec.serviceName }}.{{ .StatefulSet.Namespace }}.svc.cluster.local" - backup_file_path='backup.gz' master_username="{{ index .Phases.backupToStore.Secrets.esMasterCredSecret.Data "username" | toString }}" master_password="{{ index .Phases.backupToStore.Secrets.esMasterCredSecret.Data "password" | toString }}" NODE_TLS_REJECT_UNAUTHORIZED=0 elasticdump --bulk=true --input=https://${master_username}:${master_password}@${host_name}:9200 --output=$ > /tmp/data @@ -50,9 +49,9 @@ actions: - pipefail - -c - | + backup_file_path='backup.gz' cat /tmp/data | gzip -c | kando location push --profile '{{ toJson .Profile }}' --path "${backup_file_path}" --output-name "kopiaOutput" - - restore: inputArtifactNames: # The kopia snapshot info created in backup phase can be used here