8000 Fix installer to default template URL to OPERATOR_VERSION by realyota · Pull Request #1910 · Altinity/clickhouse-operator · GitHub
[go: up one dir, main page]

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8000
8 changes: 4 additions & 4 deletions deploy/operator-web-installer/clickhouse-operator-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,6 @@ check_envsubst_available

# Manifest is expected to be ready-to-use manifest file
MANIFEST="${MANIFEST:-""}"
# Template can have params to substitute
DEFAULT_TEMPLATE="https://raw.githubusercontent.com/Altinity/clickhouse-operator/master/deploy/operator/clickhouse-operator-install-template.yaml"
TEMPLATE="${TEMPLATE:-"${DEFAULT_TEMPLATE}"}"
# Namespace to install operator
OPERATOR_NAMESPACE="${OPERATOR_NAMESPACE:-"kube-system"}"
METRICS_EXPORTER_NAMESPACE="${OPERATOR_NAMESPACE}"
Expand All @@ -153,6 +150,9 @@ if [[ -z "${OPERATOR_VERSION}" ]]; then
RELEASE_VERSION=$(get_file https://raw.githubusercontent.com/Altinity/clickhouse-operator/master/release)
fi
OPERATOR_VERSION="${OPERATOR_VERSION:-"${RELEASE_VERSION}"}"
# Template can have params to substitute
DEFAULT_TEMPLATE="https://raw.githubusercontent.com/Altinity/clickhouse-operator/${OPERATOR_VERSION:-master}/deploy/operator/clickhouse-operator-install-template.yaml"
TEMPLATE="${TEMPLATE:-"${DEFAULT_TEMPLATE}"}"
OPERATOR_IMAGE="${OPERATOR_IMAGE:-"altinity/clickhouse-operator:${OPERATOR_VERSION}"}"
OPERATOR_IMAGE_PULL_POLICY="${OPERATOR_IMAGE_PULL_POLICY:-"Always"}"
METRICS_EXPORTER_IMAGE="${METRICS_EXPORTER_IMAGE:-"altinity/metrics-exporter:${OPERATOR_VERSION}"}"
Expand Down Expand Up @@ -199,4 +199,4 @@ elif [[ ! -z "${TEMPLATE}" ]]; then
)
else
echo "Neither manifest nor template available. Abort."
fi
fi
0