This repository has been archived by the owner on Apr 4, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add script to update example manifests
Fixes #260.
- Loading branch information
Showing
2 changed files
with
26 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/bash | ||
|
||
set -o errexit | ||
set -o nounset | ||
set -o pipefail | ||
|
||
SCRIPT_ROOT=$(dirname ${BASH_SOURCE})/.. | ||
|
||
CASS_TEMPLATE="${SCRIPT_ROOT}/hack/testdata/cass-cluster-test.template.yaml" | ||
ES_TEMPLATE="${SCRIPT_ROOT}/hack/testdata/es-cluster-test.template.yaml" | ||
|
||
EXAMPLES_DIR="${SCRIPT_ROOT}/docs/quick-start/" | ||
CASS_EXAMPLE="${EXAMPLES_DIR}/cassandra-cluster.yaml" | ||
ES_EXAMPLE="${EXAMPLES_DIR}/es-cluster-demo.yaml" | ||
|
||
export NAVIGATOR_IMAGE_REPOSITORY="jetstackexperimental" | ||
export NAVIGATOR_IMAGE_TAG="canary" | ||
export NAVIGATOR_IMAGE_PULLPOLICY="IfNotPresent" | ||
|
||
export CASS_NAME="demo" | ||
export CASS_REPLICAS=3 | ||
export CASS_CQL_PORT=9042 | ||
export CASS_VERSION="3.11.1" | ||
|
||
envsubst < ${CASS_TEMPLATE} > ${CASS_EXAMPLE} |