Skip to content

Commit e1c175e

Browse files
Apply suggestions from code review
Co-authored-by: Nick <10092581+NickLarsenNZ@users.noreply.github.com>
1 parent 5c1521d commit e1c175e

1 file changed

Lines changed: 14 additions & 10 deletions

File tree

demos/spark-k8s-anomaly-detection-taxi-data/create-spark-anomaly-detection-job.yaml

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,24 @@ spec:
1010
- name: wait-for-testdata
1111
image: oci.stackable.tech/sdp/testing-tools:0.2.0-stackable0.0.0-dev
1212
command:
13-
[
14-
"bash",
15-
"-c",
16-
"echo 'Waiting for job load-ny-taxi-data to finish' && kubectl wait --for=condition=complete --timeout=30m job/load-ny-taxi-data",
17-
]
13+
- bash
14+
- -euo
15+
- pipefail
16+
- -c
17+
- |
18+
echo 'Waiting for job load-ny-taxi-data to finish'
19+
kubectl wait --for=condition=complete --timeout=30m job/load-ny-taxi-data
1820
containers:
1921
- name: create-spark-anomaly-detection-job
2022
image: oci.stackable.tech/sdp/testing-tools:0.2.0-stackable0.0.0-dev
2123
command:
22-
[
23-
"bash",
24-
"-c",
25-
"echo 'Submitting Spark job' && kubectl apply -f /tmp/manifest/spark-ad-job.yaml",
26-
]
24+
- bash
25+
- -euo
26+
- pipefail
27+
- -c
28+
- |
29+
echo 'Submitting Spark job'
30+
kubectl apply -f /tmp/manifest/spark-ad-job.yaml
2731
volumeMounts:
2832
- name: manifest
2933
mountPath: /tmp/manifest

0 commit comments

Comments
 (0)