From e14c3e4ae5c107289e9be5ab27fcb815258417db Mon Sep 17 00:00:00 2001 From: Zhen Wang Date: Mon, 11 Mar 2024 04:25:07 +0000 Subject: [PATCH] Add make release Adds a `make release` command for releasing new NPD version. It stops pushing the tar files to gs://kubernetes-release, because no one has write permission to the GCS bucket any more. We haven't pushed NPD tar files to that GCS bucket after v0.8.10. k/k has been using NPD v0.8.13+ since 1.29. NPD release should just include the tar files in the release note. --- Makefile | 7 ++++++- docs/release_process.md | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index c02b85b4..f75e0e7e 100644 --- a/Makefile +++ b/Makefile @@ -17,7 +17,8 @@ .PHONY: all \ vet fmt version test e2e-test \ build-binaries build-container build-tar build \ - docker-builder build-in-docker push-container push-tar push clean depup + docker-builder build-in-docker \ + push-container push-tar push release clean depup all: build @@ -268,8 +269,12 @@ push-tar: build-tar gsutil cp $(TARBALL) $(UPLOAD_PATH)/node-problem-detector/ gsutil cp node-problem-detector-$(VERSION)-*.tar.gz* $(UPLOAD_PATH)/node-problem-detector/ +# `make push` is used by presubmit and CI jobs. push: push-container push-tar +# `make release` is used when releasing a new NPD version. +release: push-container build-tar + coverage.out: rm -f coverage.out go test -coverprofile=coverage.out -timeout=1m -v -short ./... diff --git a/docs/release_process.md b/docs/release_process.md index 8a9953a4..f1893755 100644 --- a/docs/release_process.md +++ b/docs/release_process.md @@ -58,7 +58,7 @@ section to perform steps in this section.** sudo apt-get install libsystemd-dev gcc-aarch64-linux-gnu cd node-problem-detector -make push +make release # Get SHA256 of the tar files. For example sha256sum node-problem-detector-v0.8.17-linux_amd64.tar.gz