diff --git a/Makefile b/Makefile index 02527e4d76..151f7868de 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,6 @@ VERSION = $(shell ./control-plane/build-support/scripts/version.sh control-plane/version/version.go) CONSUL_IMAGE_VERSION = $(shell ./control-plane/build-support/scripts/consul-version.sh charts/consul/values.yaml) +CONSUL_DATAPLANE_IMAGE_VERSION = $(shell ./control-plane/build-support/scripts/consul-dataplane-version.sh charts/consul/values.yaml) # ===========> Helm Targets @@ -164,6 +165,10 @@ version: consul-version: @echo $(CONSUL_IMAGE_VERSION) +consul-dataplane-version: + @echo $(CONSUL_DATAPLANE_IMAGE_VERSION) + + # ===========> Release Targets prepare-release: ## Sets the versions, updates changelog to prepare this repository to release diff --git a/control-plane/build-support/scripts/consul-dataplane-version.sh b/control-plane/build-support/scripts/consul-dataplane-version.sh new file mode 100755 index 0000000000..906ee54a1f --- /dev/null +++ b/control-plane/build-support/scripts/consul-dataplane-version.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 +FILE=$1 +VERSION=$(yq .global.imageConsulDataplane $FILE) + +echo "${VERSION}"