Skip to content

Commit 778ad13

Browse files
sfc-gh-jmckulkajmckulk
authored andcommitted
use variable in template
1 parent 7bc0e02 commit 778ad13

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

testing/chainsaw/e2e/pgbackrest-restore/templates/clone-cluster.yaml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,10 @@ spec:
5353
catch:
5454
- description: Read all log lines from job pods
5555
podLogs:
56-
selector: >
57-
batch.kubernetes.io/job-name,
58-
postgres-operator.crunchydata.com/cluster in (clone-one)
56+
selector: (join('', ['batch.kubernetes.io/job-name,', 'postgres-operator.crunchydata.com/cluster=', $name]))
5957
tail: -1
6058

6159
- description: Read all log lines from postgres pods
6260
podLogs:
63-
selector: >
64-
postgres-operator.crunchydata.com/instance,
65-
postgres-operator.crunchydata.com/cluster in (clone-one)
61+
selector: (join('', ['postgres-operator.crunchydata.com/instance,', 'postgres-operator.crunchydata.com/cluster=', $name]))
6662
tail: -1

0 commit comments

Comments
 (0)