github.com/argoproj-labs/argocd-operator@v0.10.0/tests/k8s/1-014_validate_parallelism_limit/04-check-deployment.yaml (about) 1 apiVersion: kuttl.dev/v1beta1 2 kind: TestStep 3 commands: 4 - script: sleep 30 5 - script: | 6 set -e 7 expected=20 8 wlCommand=$(kubectl get -n $NAMESPACE statefulset/argocd-application-controller -o jsonpath='{.spec.template.spec.containers[0].command}'| jq -r '.[]' ) 9 if ! echo "$wlCommand" | grep -qPz -- "--kubectl-parallelism-limit\\n${expected}(\$|\\n)"; then 10 echo "Incorrect or missing --kubectl-parallelism-limit detected." 11 echo "$wlCommand" 12 exit 1 13 fi