Skip to content

Commit

Permalink
Fix flags to faas-cli ready
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
  • Loading branch information
alexellis committed Apr 11, 2024
1 parent b72ea6e commit aa77dc7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions contrib/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ helm upgrade \

kubectl --context "kind-$DEVENV" rollout status deploy/prometheus -n openfaas
kubectl --context "kind-$DEVENV" rollout status deploy/gateway -n openfaas

4 changes: 2 additions & 2 deletions contrib/run_function.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ kubectl --context "kind-$DEVENV" port-forward deploy/gateway -n openfaas 8080:80
echo -n "$!" > "of_${DEVENV}_portforward.pid"

# Wait for the gateway to be ready
faas-cli ready --attempts 180 --interval
faas-cli ready --attempts=180 --interval=1s

echo "Using existing password for OpenFaaS gateway retrieved from Kubernetes."
PASSWORD=$(kubectl get secret -n openfaas basic-auth -o=go-template='{{index .data "basic-auth-password"}}' | base64 --decode)
Expand All @@ -46,4 +46,4 @@ fi
faas-cli deploy --image=functions/alpine:latest --fprocess=cat --name "echo"

# Call echo function
faas-cli ready --attempts 180 --interval 1s echo
faas-cli ready --attempts=180 --interval=1s echo

0 comments on commit aa77dc7

Please sign in to comment.