Skip to content

Commit 9ea1c38

Browse files
authored
Set git version variable during the build (#2252)
1 parent 1fdebaa commit 9ea1c38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ VERSION ?= $(shell git describe --dirty --tags --match='v*')
3636
GOARCH :=
3737
GOFLAGS :=
3838
TAGS :=
39-
LDFLAGS := "-w -s -X 'k8s.io/component-base/version.gitVersion=$(VERSION)'"
39+
LDFLAGS := "-w -s -X 'k8s.io/component-base/version.gitVersion=$(VERSION)' -X 'k8s.io/cloud-provider-openstack/pkg/version.Version=$(VERSION)'"
4040
GOX_LDFLAGS := $(shell echo "$(LDFLAGS) -extldflags \"-static\"")
4141
REGISTRY ?= registry.k8s.io/provider-os
4242
IMAGE_OS ?= linux

0 commit comments

Comments
 (0)