github.com/argoproj-labs/argocd-operator@v0.10.0/build/redis/redis_liveness.sh.tpl (about)

     1  response=$(
     2    redis-cli \
     3      -h localhost \
     4      -p 6379 \
     5  {{- if eq .UseTLS "true"}}
     6      --tls \
     7      --cacert /app/config/redis/tls/tls.crt \
     8  {{- end}}
     9      ping
    10  )
    11  if [ "$response" != "PONG" ] && [ "${response:0:7}" != "LOADING" ] ; then
    12    echo "$response"
    13    exit 1
    14  fi
    15  echo "response=$response"