Skip to content

Commit 78fe749

Browse files
test: fix shell syntax error in clone-cluster template
Use env var instead of JMESPath expression in shell script.
1 parent dc4a117 commit 78fe749

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,13 @@ spec:
3939
duration: 5s
4040

4141
- description: Check PVC provisioning status early
42+
env:
43+
- name: CLUSTER_NAME
44+
value: ($name)
4245
script:
4346
content: |
44-
echo "=== PVCs for ($name) ==="
45-
kubectl get pvc -l postgres-operator.crunchydata.com/cluster=($name) -o wide || true
47+
echo "=== PVCs for ${CLUSTER_NAME} ==="
48+
kubectl get pvc -l postgres-operator.crunchydata.com/cluster=${CLUSTER_NAME} -o wide || true
4649
echo ""
4750
echo "=== All PVC Events ==="
4851
kubectl get events --field-selector involvedObject.kind=PersistentVolumeClaim -o wide | tail -20 || true

0 commit comments

Comments
 (0)