Skip to content

Commit c8c2f8a

Browse files
authored
Merge pull request #1910 from realyota/web-installer-operator-version-fix
Fix installer to default template URL to OPERATOR_VERSION
2 parents 420b97c + 709c56c commit c8c2f8a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

deploy/operator-web-installer/clickhouse-operator-install.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,6 @@ check_envsubst_available
141141

142142
# Manifest is expected to be ready-to-use manifest file
143143
MANIFEST="${MANIFEST:-""}"
144-
# Template can have params to substitute
145-
DEFAULT_TEMPLATE="https://raw.githubusercontent.com/Altinity/clickhouse-operator/master/deploy/operator/clickhouse-operator-install-template.yaml"
146-
TEMPLATE="${TEMPLATE:-"${DEFAULT_TEMPLATE}"}"
147144
# Namespace to install operator
148145
OPERATOR_NAMESPACE="${OPERATOR_NAMESPACE:-"kube-system"}"
149146
METRICS_EXPORTER_NAMESPACE="${OPERATOR_NAMESPACE}"
@@ -153,6 +150,9 @@ if [[ -z "${OPERATOR_VERSION}" ]]; then
153150
RELEASE_VERSION=$(get_file https://raw.githubusercontent.com/Altinity/clickhouse-operator/master/release)
154151
fi
155152
OPERATOR_VERSION="${OPERATOR_VERSION:-"${RELEASE_VERSION}"}"
153+
# Template can have params to substitute
154+
DEFAULT_TEMPLATE="https://raw.githubusercontent.com/Altinity/clickhouse-operator/${OPERATOR_VERSION:-master}/deploy/operator/clickhouse-operator-install-template.yaml"
155+
TEMPLATE="${TEMPLATE:-"${DEFAULT_TEMPLATE}"}"
156156
OPERATOR_IMAGE="${OPERATOR_IMAGE:-"altinity/clickhouse-operator:${OPERATOR_VERSION}"}"
157157
OPERATOR_IMAGE_PULL_POLICY="${OPERATOR_IMAGE_PULL_POLICY:-"Always"}"
158158
METRICS_EXPORTER_IMAGE="${METRICS_EXPORTER_IMAGE:-"altinity/metrics-exporter:${OPERATOR_VERSION}"}"
@@ -199,4 +199,4 @@ elif [[ ! -z "${TEMPLATE}" ]]; then
199199
)
200200
else
201201
echo "Neither manifest nor template available. Abort."
202-
fi
202+
fi

0 commit comments

Comments
 (0)