Skip to content

Commit

Permalink
(fix) : build script with default commit/tag
Browse files Browse the repository at this point in the history
  • Loading branch information
VILJkid committed Sep 4, 2024
1 parent 88bce27 commit fc23671
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion build/kube-prometheus/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,11 @@ fi
# Make sure to use project tooling
outdir="${cluster_dir}/kube-prometheus"

kube_prometheus_release=$(jsonnet "${cluster_jsonnet}" | jq -r .kube_prometheus_version)
# NOTE: If 'kube_prometheus_version' isn't specified in the customer values file ($cluster_jsonnet),
# then we're setting '74e445ae4a2582f978bae2e0e9b63024d7f759d6' as the default tag for it.
# You can always specify it to get the specific version/tag build by specifying `kube_prometheus_version`
# in the customer values file.
kube_prometheus_release=$(jsonnet "${cluster_jsonnet}" | jq -e -r '.kube_prometheus_version // "74e445ae4a2582f978bae2e0e9b63024d7f759d6"')
if [[ -z "${kube_prometheus_release}" ]]; then
echo "Unable to parse kube-prometheus version, please verify '${cluster_jsonnet}'"
exit 3
Expand Down

0 comments on commit fc23671

Please sign in to comment.