File tree Expand file tree Collapse file tree 3 files changed +5
-6
lines changed
Expand file tree Collapse file tree 3 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ include Makefile-az.mk
44LDFLAGS ?= -ldflags=-X=sigs.k8s.io/karpenter/pkg/operator.Version=$(shell git describe --tags --always | cut -d"v" -f2)
55
66GOFLAGS ?= $(LDFLAGS )
7- WITH_GOFLAGS = GOFLAGS="$(GOFLAGS ) "
87
98# # CR for local builds of Karpenter
109KARPENTER_NAMESPACE ?= kube-system
@@ -116,10 +115,10 @@ codegen: ## Auto generate files based on Azure API responses
116115 ./hack/codegen.sh
117116
118117snapshot : az-login # # Builds and publishes snapshot release
119- $( WITH_GOFLAGS ) ./hack/release/snapshot.sh
118+ ./hack/release/snapshot.sh
120119
121120release : az-login # # Builds and publishes stable release
122- $( WITH_GOFLAGS ) ./hack/release/release.sh
121+ ./hack/release/release.sh
123122
124123toolchain : # # Install developer toolchain
125124 ./hack/toolchain.sh
Original file line number Diff line number Diff line change @@ -70,10 +70,10 @@ buildAndPublish() {
7070 exit 1
7171 fi
7272
73- img=" $( GOFLAGS=${GOFLAGS:- } \
73+ img=" $( GOFLAGS=" ${GOFLAGS:- } -ldflags=-X=sigs.k8s.io/karpenter/pkg/operator.Version= ${version} " \
7474 SOURCE_DATE_EPOCH=" ${date_epoch} " KO_DATA_DATE_EPOCH=" ${date_epoch} " KO_DOCKER_REPO=" ${oci_repo} " \
7575 ko publish -B --sbom none -t " ${version} " ./cmd/controller) "
76- img_nap=" $( GOFLAGS=" ${GOFLAGS:- } -tags=ccp" \
76+ img_nap=" $( GOFLAGS=" ${GOFLAGS:- } -ldflags=-X=sigs.k8s.io/karpenter/pkg/operator.Version= ${version} -aks - tags=ccp" \
7777 SOURCE_DATE_EPOCH=" ${date_epoch} " KO_DATA_DATE_EPOCH=" ${date_epoch} " KO_DOCKER_REPO=" ${oci_repo} " \
7878 ko publish -B --sbom none -t " ${version} " -aks ./cmd/controller) "
7979
Original file line number Diff line number Diff line change @@ -23,5 +23,5 @@ import (
2323)
2424
2525func GetUserAgentExtension () string {
26- return fmt .Sprintf ("karpenter-aks /v%s" , operator .Version )
26+ return fmt .Sprintf ("karpenter/v%s" , operator .Version )
2727}
You can’t perform that action at this time.
0 commit comments