-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Metrics Server: print versions during startup (#748)
* print versions during startup
- Loading branch information
Showing
4 changed files
with
20 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,7 +59,7 @@ release: release_prepare release_file release_pkg | |
|
||
.PHONY: release_file | ||
release_file: | ||
@sed -i 's@Version =.*@Version = "$(VERSION)"@g' ./version/version.go; | ||
@sed -i 's@Version =.*@Version = "$(VERSION)"@g' ./version/version.go; | ||
@for file in $(K8S_DEPLOY_FILES); do \ | ||
sed -i '[email protected]/version:.*@app.kubernetes.io/version: "$(VERSION)"@g' $$file; \ | ||
sed -i 's@image: docker.io/kedacore/keda:.*@image: docker.io/kedacore/keda:$(VERSION)@g' $$file; \ | ||
|
@@ -98,12 +98,12 @@ build: checkenv build-adapter build-controller | |
.PHONY: build-controller | ||
build-controller: generate-api pkg/scalers/liiklus/LiiklusService.pb.go | ||
$(GO_BUILD_VARS) operator-sdk build $(IMAGE_CONTROLLER) \ | ||
--go-build-args "-ldflags -X=main.GitCommit=$(GIT_COMMIT) -ldflags -X=github.com/kedacore/keda/version.Version=$(VERSION) -o build/_output/bin/keda" | ||
--go-build-args "-ldflags -X=github.com/kedacore/keda/version.Version=$(VERSION) -o build/_output/bin/keda" | ||
|
||
.PHONY: build-adapter | ||
build-adapter: generate-api pkg/scalers/liiklus/LiiklusService.pb.go | ||
$(GO_BUILD_VARS) go build \ | ||
-ldflags "-X=main.GitCommit=$(GIT_COMMIT) -X=github.com/kedacore/keda/version.Version=$(VERSION)" \ | ||
-ldflags "-X=github.com/kedacore/keda/version.GitCommit=$(GIT_COMMIT) -X=github.com/kedacore/keda/version.Version=$(VERSION)" \ | ||
-o build/_output/bin/keda-adapter \ | ||
cmd/adapter/main.go | ||
docker build -f build/Dockerfile.adapter -t $(IMAGE_ADAPTER) . | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
package version | ||
|
||
var ( | ||
Version = "1.4.0" | ||
Version = "1.4.0" | ||
GitCommit string | ||
) |