Skip to content

Commit

Permalink
Get consul-dataplane image from helm chart
Browse files Browse the repository at this point in the history
  • Loading branch information
curtbushko committed Jun 1, 2023
1 parent 0c28b9b commit 71293af
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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

Expand Down Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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}"

0 comments on commit 71293af

Please sign in to comment.