From c4b5adec415013998e9a0ca1d51f9a9001fc9761 Mon Sep 17 00:00:00 2001 From: Negash Date: Sun, 7 Jan 2024 12:27:16 +0000 Subject: [PATCH] Fix use last snapshot --- chart/templates/generator-application.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chart/templates/generator-application.yaml b/chart/templates/generator-application.yaml index 065aa9d..ed57525 100644 --- a/chart/templates/generator-application.yaml +++ b/chart/templates/generator-application.yaml @@ -52,7 +52,7 @@ spec: - status=ready,aldaas={{ template "aldaas.fullname" . }} - --sort-by=.metadata.creationTimestamp - -o - - jsonpath={.items[0].metadata.name} + - jsonpath={.items[-1].metadata.name} - name: create-pvc-from-snapshot inputs: parameters: