github.com/argoproj-labs/argocd-operator@v0.10.0/tests/k8s/1-013_validate_controller_sharding/05-check-env.yaml (about)

     1  apiVersion: kuttl.dev/v1beta1
     2  kind: TestStep
     3  commands:
     4  - script: |
     5      # we do expect error from jq here if env is not set at all
     6      replicas=$(kubectl get -n $NAMESPACE statefulset argocd-application-controller -o json \
     7        | jq -r '.spec.template.spec.containers[0].env[]|select(.name=="ARGOCD_CONTROLLER_REPLICASE").value')
     8      if test "$replicas" != ""; then
     9        echo "Environment ARGOCD_CONTROLLER_REPLICAS not correct. Should '', is '$replicas'"
    10        exit 1
    11      fi