File tree Expand file tree Collapse file tree 4 files changed +44
-12
lines changed
docs/modules/kafka/examples/getting_started Expand file tree Collapse file tree 4 files changed +44
-12
lines changed Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
set -euo pipefail
3
3
4
+ # DO NOT EDIT THE SCRIPT
5
+ # Instead, update the j2 template, and regenerate it for dev:
6
+ # cat <<EOF | jinja2 --format yaml getting_started.sh.j2 -o getting_started.sh
7
+ # helm:
8
+ # repo_name: stackable-dev
9
+ # repo_url: https://repo.stackable.tech/repository/helm-dev/
10
+ # versions:
11
+ # commons: 0.0.0-dev
12
+ # kafka: 0.0.0-dev
13
+ # listener: 0.0.0-dev
14
+ # secret: 0.0.0-dev
15
+ # zookeeper: 0.0.0-dev
16
+ # EOF
17
+
4
18
# The getting started guide script
5
19
# It uses tagged regions which are included in the documentation
6
20
# https://docs.asciidoctor.org/asciidoc/latest/directives/include-tagged-regions/
@@ -83,10 +97,12 @@ kubectl rollout status --watch --timeout=5m statefulset/simple-kafka-broker-defa
83
97
# end::watch-kafka-rollout[]
84
98
85
99
echo " Starting port-forwarding of port 9092"
100
+ # shellcheck disable=2069 # we want all output to be blackholed
86
101
# tag::port-forwarding[]
87
102
kubectl port-forward svc/simple-kafka 9092 2>&1 > /dev/null &
88
103
# end::port-forwarding[]
89
104
PORT_FORWARD_PID=$!
105
+ # shellcheck disable=2064 # we want the PID evaluated now, not at the time the trap is
90
106
trap " kill $PORT_FORWARD_PID " EXIT
91
107
92
108
sleep 15
@@ -98,12 +114,12 @@ echo "some test data" > data
98
114
99
115
echo " Writing test data"
100
116
# tag::kcat-write-data[]
101
- kcat -b localhost:9092 -t test-data-topic -P data
117
+ kafkacat -b localhost:9092 -t test-data-topic -P data
102
118
# end::kcat-write-data[]
103
119
104
120
echo " Reading test data"
105
121
# tag::kcat-read-data[]
106
- kcat -b localhost:9092 -t test-data-topic -C -e > read-data.out
122
+ kafkacat -b localhost:9092 -t test-data-topic -C -e > read-data.out
107
123
# end::kcat-read-data[]
108
124
109
125
echo " Check contents"
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
set -euo pipefail
3
3
4
+ # DO NOT EDIT THE SCRIPT
5
+ # Instead, update the j2 template, and regenerate it for dev:
6
+ # cat <<EOF | jinja2 --format yaml getting_started.sh.j2 -o getting_started.sh
7
+ # helm:
8
+ # repo_name: stackable-dev
9
+ # repo_url: https://repo.stackable.tech/repository/helm-dev/
10
+ # versions:
11
+ # commons: 0.0.0-dev
12
+ # kafka: 0.0.0-dev
13
+ # listener: 0.0.0-dev
14
+ # secret: 0.0.0-dev
15
+ # zookeeper: 0.0.0-dev
16
+ # EOF
17
+
4
18
# The getting started guide script
5
19
# It uses tagged regions which are included in the documentation
6
20
# https://docs.asciidoctor.org/asciidoc/latest/directives/include-tagged-regions/
@@ -83,10 +97,12 @@ kubectl rollout status --watch --timeout=5m statefulset/simple-kafka-broker-defa
83
97
# end::watch-kafka-rollout[]
84
98
85
99
echo " Starting port-forwarding of port 9092"
100
+ # shellcheck disable=2069 # we want all output to be blackholed
86
101
# tag::port-forwarding[]
87
102
kubectl port-forward svc/simple-kafka 9092 2>&1 > /dev/null &
88
103
# end::port-forwarding[]
89
104
PORT_FORWARD_PID=$!
105
+ # shellcheck disable=2064 # we want the PID evaluated now, not at the time the trap is
90
106
trap " kill $PORT_FORWARD_PID " EXIT
91
107
92
108
sleep 15
Original file line number Diff line number Diff line change 1
1
# tag::stackablectl-install-operators-output[]
2
- [INFO ] Installing commons operator in version 0.0.0-dev
3
- [INFO ] Installing secret operator in version 0.0.0-dev
4
- [INFO ] Installing listener operator in version 0.0.0-dev
5
- [INFO ] Installing zookeeper operator in version 0.0.0-dev
6
- [INFO ] Installing kafka operator in version 0.0.0-dev
2
+ Installing commons= 0.0.0-dev operator
3
+ Installing secret= 0.0.0-dev operator
4
+ Installing listener= 0.0.0-dev operator
5
+ Installing zookeeper= 0.0.0-dev operator
6
+ Installing kafka= 0.0.0-dev operator
7
7
# end::stackablectl-install-operators-output[]
Original file line number Diff line number Diff line change 1
1
# tag::stackablectl-install-operators-output[]
2
- [INFO ] Installing commons operator in version {{ versions.commons }}
3
- [INFO ] Installing secret operator in version {{ versions.secret }}
4
- [INFO ] Installing listener operator in version {{ versions.listener }}
5
- [INFO ] Installing zookeeper operator in version {{ versions.zookeeper }}
6
- [INFO ] Installing kafka operator in version {{ versions.kafka }}
2
+ Installing commons= {{ versions.commons }} operator
3
+ Installing secret= {{ versions.secret }} operator
4
+ Installing listener= {{ versions.listener }} operator
5
+ Installing zookeeper= {{ versions.zookeeper }} operator
6
+ Installing kafka= {{ versions.kafka }} operator
7
7
# end::stackablectl-install-operators-output[]
You can’t perform that action at this time.
0 commit comments