Skip to content

Commit

Permalink
Merge pull request #18347 from linzhaoming/linzm-fix
Browse files Browse the repository at this point in the history
Automatic merge from submit-queue.

Fix the wrong check script for zookeeper

Should use $i, insead of $1
  • Loading branch information
openshift-merge-robot authored Jan 31, 2018
2 parents a1f96fb + a33e6b4 commit 971bf1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/statefulsets/zookeeper/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ $ kubectl exec zoo-2 -- /opt/zookeeper/bin/zkCli.sh get /foo;

Watch existing members:
```console
$ kubectl run --attach bbox --image=busybox --restart=Never -- sh -c 'while true; do for i in 0 1 2; do echo zoo-$i $(echo stats | nc zoo-$1.zk:2181 | grep Mode); sleep 1; done; done';
$ kubectl run --attach bbox --image=busybox --restart=Never -- sh -c 'while true; do for i in 0 1 2; do echo zoo-$i $(echo stats | nc zoo-$i.zk:2181 | grep Mode); sleep 1; done; done';
zoo-2 Mode: follower
zoo-0 Mode: follower
zoo-1 Mode: leader
Expand Down

0 comments on commit 971bf1c

Please sign in to comment.