From 0458089a740be84c86397c8fc72f0fabdb4a683e Mon Sep 17 00:00:00 2001 From: Michael Dresser Date: Wed, 16 Feb 2022 15:59:40 -0500 Subject: [PATCH 1/2] Update to v1.3.0 --- DEVELOPMENT.md | 8 ++++++++ Makefile | 2 +- artifacts/cluster-turndown-full.yaml | 4 ++-- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/DEVELOPMENT.md b/DEVELOPMENT.md index b30c8c4..0c0b8d0 100644 --- a/DEVELOPMENT.md +++ b/DEVELOPMENT.md @@ -8,3 +8,11 @@ bash generate.sh ``` The script is based on https://github.com/kubernetes/sample-controller, specifically https://github.com/kubernetes/sample-controller/blob/master/hack/update-codegen.sh. + +## Cutting a release + +1. Update the `VERSION` in the Makefile +2. Update the image version to match in artifacts/cluster-turndown-full.yaml +3. Build and push the new image to GCR (`make release`) +4. Merge the changes +5. Tag a new release off of develop for the new version diff --git a/Makefile b/Makefile index 462ccfc..aa3e47f 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -VERSION=1.2.2 +VERSION=1.3.0 REGISTRY=gcr.io PROJECT_ID=kubecost1 APPNAME=cluster-turndown diff --git a/artifacts/cluster-turndown-full.yaml b/artifacts/cluster-turndown-full.yaml index ceee688..4e15ac4 100644 --- a/artifacts/cluster-turndown-full.yaml +++ b/artifacts/cluster-turndown-full.yaml @@ -179,7 +179,7 @@ spec: spec: containers: - name: cluster-turndown - image: gcr.io/kubecost1/cluster-turndown:1.2.2 + image: gcr.io/kubecost1/cluster-turndown:1.3.0 volumeMounts: - name: turndown-keys mountPath: /var/keys @@ -248,4 +248,4 @@ spec: - name: Next Turn Up type: string description: The next turn up date-time - JSONPath: .status.nextScaleUpTime \ No newline at end of file + JSONPath: .status.nextScaleUpTime From 2b5cb8bfb85c0306327d94c7a6e9e6721454e2ca Mon Sep 17 00:00:00 2001 From: Michael Dresser Date: Wed, 16 Feb 2022 16:11:52 -0500 Subject: [PATCH 2/2] Update DEVELOPMENT.md for update-version.sh --- DEVELOPMENT.md | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/DEVELOPMENT.md b/DEVELOPMENT.md index 0c0b8d0..13590f0 100644 --- a/DEVELOPMENT.md +++ b/DEVELOPMENT.md @@ -11,8 +11,7 @@ The script is based on https://github.com/kubernetes/sample-controller, specific ## Cutting a release -1. Update the `VERSION` in the Makefile -2. Update the image version to match in artifacts/cluster-turndown-full.yaml -3. Build and push the new image to GCR (`make release`) -4. Merge the changes -5. Tag a new release off of develop for the new version +1. Call `update-version.sh VERSION`, e.g. `./update-version.sh 1.3.0` +2. Build and push the new image to GCR (`make release`) +3. Merge the changes +4. Tag a new release off of develop for the new version