github.com/argoproj-labs/argocd-operator@v0.10.0/tests/k8s/1-013_validate_controller_sharding/03-check-env.yaml (about) 1 apiVersion: kuttl.dev/v1beta1 2 kind: TestStep 3 commands: 4 - script: | 5 replicas=$(kubectl get -n $NAMESPACE statefulset argocd-application-controller -o json \ 6 | jq -r '.spec.template.spec.containers[0].env[]|select(.name=="ARGOCD_CONTROLLER_REPLICAS").value') 7 if test "$replicas" != "3"; then 8 echo "Environment ARGOCD_CONTROLLER_REPLICAS not correct. Should '3', is '$replicas'" 9 exit 1 10 fi