Skip to content

Commit

Permalink
replace jq usage with yq
Browse files Browse the repository at this point in the history
  • Loading branch information
adwk67 committed Oct 31, 2023
1 parent ac62254 commit f1d5975
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/templates/kuttl/resources/20-assert.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ apiVersion: kuttl.dev/v1beta1
kind: TestAssert
timeout: 120
commands:
- script: kubectl get pods -n $NAMESPACE resources-crd-exec-1 -o jsonpath='{.spec.containers[]}' | jq '.env[] | select(.name == "SPARK_EXECUTOR_CORES")'.value | grep "2"
- script: kubectl get pods -n $NAMESPACE resources-sparkconf-exec-1 -o jsonpath='{.spec.containers[]}' | jq '.env[] | select(.name == "SPARK_EXECUTOR_CORES")'.value | grep "2"
- script: kubectl get pods -n $NAMESPACE resources-crd-exec-1 -o yaml | yq '.spec.containers[].env[] | select(.name == "SPARK_EXECUTOR_CORES").value' | grep -w "2"
- script: kubectl get pods -n $NAMESPACE resources-sparkconf-exec-1 -o yaml | yq '.spec.containers[].env[] | select(.name == "SPARK_EXECUTOR_CORES").value' | grep -w "2"

0 comments on commit f1d5975

Please sign in to comment.