Skip to content

Commit

Permalink
chore(getting-started): add warning to generated script
Browse files Browse the repository at this point in the history
  • Loading branch information
NickLarsenNZ committed Jul 20, 2024
1 parent 4ad0b08 commit 8189f19
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 4 deletions.
19 changes: 17 additions & 2 deletions docs/modules/hive/examples/getting_started/getting_started.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,21 @@
#!/usr/bin/env bash
set -euo pipefail

# DO NOT EDIT THE SCRIPT
# Instead, update the j2 template, and regenerate it for dev:
# cat <<EOF | jinja2 --format yaml getting_started.sh.j2 -o getting_started.sh
# helm:
# repo_name: stackable-dev
# repo_url: https://repo.stackable.tech/repository/helm-dev/
# versions:
# commons: 0.0.0-dev
# hive: 0.0.0-dev
# listener: 0.0.0-dev
# secret: 0.0.0-dev
# minio: 4.0.2
# postgresql: 12.1.5
# EOF

# The getting started guide script
# It uses tagged regions which are included in the documentation
# https://docs.asciidoctor.org/asciidoc/latest/directives/include-tagged-regions/
Expand Down Expand Up @@ -39,8 +54,8 @@ helm install --wait hive-operator stackable-dev/hive-operator --version 0.0.0-de
echo "Install minio for S3"
# tag::helm-install-minio[]
helm install minio \
--namespace default \
--version 4.0.2 \
--namespace default \
--set mode=standalone \
--set replicas=1 \
--set persistence.enabled=false \
Expand All @@ -55,7 +70,7 @@ helm install minio \
echo "Install postgres for Hive"
# tag::helm-install-postgres[]
helm install postgresql \
--version=12.1.5 \
--version 12.1.5 \
--namespace default \
--set auth.username=hive \
--set auth.password=hive \
Expand Down
19 changes: 17 additions & 2 deletions docs/modules/hive/examples/getting_started/getting_started.sh.j2
Original file line number Diff line number Diff line change
@@ -1,6 +1,21 @@
#!/usr/bin/env bash
set -euo pipefail

# DO NOT EDIT THE SCRIPT
# Instead, update the j2 template, and regenerate it for dev:
# cat <<EOF | jinja2 --format yaml getting_started.sh.j2 -o getting_started.sh
# helm:
# repo_name: stackable-dev
# repo_url: https://repo.stackable.tech/repository/helm-dev/
# versions:
# commons: 0.0.0-dev
# hive: 0.0.0-dev
# listener: 0.0.0-dev
# secret: 0.0.0-dev
# minio: 4.0.2
# postgresql: 12.1.5
# EOF

# The getting started guide script
# It uses tagged regions which are included in the documentation
# https://docs.asciidoctor.org/asciidoc/latest/directives/include-tagged-regions/
Expand Down Expand Up @@ -39,8 +54,8 @@ helm install --wait hive-operator {{ helm.repo_name }}/hive-operator --version {
echo "Install minio for S3"
# tag::helm-install-minio[]
helm install minio \
--version {{ versions.minio }} \
--namespace default \
--version 4.0.2 \
--set mode=standalone \
--set replicas=1 \
--set persistence.enabled=false \
Expand All @@ -55,7 +70,7 @@ helm install minio \
echo "Install postgres for Hive"
# tag::helm-install-postgres[]
helm install postgresql \
--version=12.1.5 \
--version {{ versions.postgresql }} \
--namespace default \
--set auth.username=hive \
--set auth.password=hive \
Expand Down

0 comments on commit 8189f19

Please sign in to comment.