Skip to content

Commit

Permalink
fix(docs): make the getting started guide run reliably (#591)
Browse files Browse the repository at this point in the history
  • Loading branch information
razvan committed Mar 21, 2024
1 parent da54549 commit b1e3071
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 3 additions & 5 deletions docs/modules/nifi/examples/getting_started/getting_started.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,11 @@ metadata:
name: simple-zk
spec:
image:
productVersion: 3.8.3
productVersion: 3.9.2
servers:
roleGroups:
default:
replicas: 3
replicas: 1
EOF
# end::install-zookeeper[]

Expand Down Expand Up @@ -155,7 +155,7 @@ spec:
nodes:
roleGroups:
default:
replicas: 2
replicas: 1
EOF
# end::install-nifi[]

Expand All @@ -164,8 +164,6 @@ sleep 5
echo "Awaiting NiFi rollout finish"
# tag::wait-nifi-rollout[]
kubectl wait -l statefulset.kubernetes.io/pod-name=simple-nifi-node-default-0 \
--for=condition=ready pod --timeout=1200s && \
kubectl wait -l statefulset.kubernetes.io/pod-name=simple-nifi-node-default-1 \
--for=condition=ready pod --timeout=1200s
# end::wait-nifi-rollout[]

Expand Down
2 changes: 1 addition & 1 deletion docs/modules/nifi/examples/getting_started/test-nifi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ nifi_jwt_token=$(curl -s -X POST --insecure --header 'content-type: application/

x=1
retry_interval_seconds=10
expected_nodes=2
expected_nodes=1

while [ $x -le 15 ]
do
Expand Down

0 comments on commit b1e3071

Please sign in to comment.