From b3565dbec12f36650449470fb78b08a78d060407 Mon Sep 17 00:00:00 2001 From: doyoubi Date: Sun, 19 Dec 2021 16:41:07 +0800 Subject: [PATCH] Bump version to 0.4.0 and add release guide --- Makefile | 2 +- Makefile.utils | 2 +- README.md | 14 ++--- .../manager/overlays/test/kustomization.yaml | 2 +- docs/release_guide.md | 60 +++++++++++++++++++ helm/undermoon-cluster/Chart.yaml | 2 +- helm/undermoon-operator/Chart.yaml | 4 +- helm/undermoon-operator/values.yaml | 2 +- helm/undermoon-scheduler/Chart.yaml | 2 +- 9 files changed, 75 insertions(+), 15 deletions(-) create mode 100644 docs/release_guide.md diff --git a/Makefile b/Makefile index 49b896e..ff524d3 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ # Current Operator version -VERSION ?= v0.3.1 +VERSION ?= v0.4.0 SCHEDULER_VERSION ?= v0.1.0 # Default bundle image tag BUNDLE_IMG ?= controller-bundle:$(VERSION) diff --git a/Makefile.utils b/Makefile.utils index 95aa816..434a04e 100644 --- a/Makefile.utils +++ b/Makefile.utils @@ -1,5 +1,5 @@ OPERATOR_VERSION=$(VERSION) -OPERATOR_HELM_VERSION=0.3.1 +OPERATOR_HELM_VERSION=0.4.0 CHECKER_HELM_VERSION=0.1.0 TEST_K8S_VER="v1.18.2" diff --git a/README.md b/README.md index 0c139ef..bc6d70c 100644 --- a/README.md +++ b/README.md @@ -11,15 +11,15 @@ make build-helm ``` Then you can see the following packages in the current directory: -- undermoon-operator-0.3.1.tgz -- undermoon-cluster-0.3.1.tgz -- undermoon-scheduler-0.3.1.tgz +- undermoon-operator-0.4.0.tgz +- undermoon-cluster-0.4.0.tgz +- undermoon-scheduler-0.4.0.tgz ### Run the Operator Run the `undermoon-operator`: Note that you can change the name `my-undermoon-operator`. ``` -helm install my-undermoon-operator undermoon-operator-0.3.1.tgz +helm install my-undermoon-operator undermoon-operator-0.4.0.tgz ``` ### Create an Undermoon Cluster @@ -32,7 +32,7 @@ helm install \ --set 'cluster.port=5299' \ my-cluster \ -n my-namespace \ - undermoon-cluster-0.3.1.tgz + undermoon-cluster-0.4.0.tgz ``` Fields here: @@ -68,7 +68,7 @@ You may want to replace the default scheduler instead. See the [docs](https://github.com/kubernetes-sigs/scheduler-plugins/blob/master/doc/install.md#as-a-second-scheduler) from scheduler-plugins for more details. ``` -helm install example-scheduler -n my-namespace "undermoon-scheduler-0.3.1.tgz" +helm install example-scheduler -n my-namespace "undermoon-scheduler-0.4.0.tgz" ``` Then specify the `schedulerName` when installing `undermoon-cluster`: @@ -81,7 +81,7 @@ helm install \ --set "schedulerName=undermoon-scheduler" \ my-cluster \ -n my-namespace \ - undermoon-cluster-0.3.1.tgz + undermoon-cluster-0.4.0.tgz ``` ## Docs diff --git a/config/manager/overlays/test/kustomization.yaml b/config/manager/overlays/test/kustomization.yaml index 26106fa..af5e9a9 100644 --- a/config/manager/overlays/test/kustomization.yaml +++ b/config/manager/overlays/test/kustomization.yaml @@ -7,7 +7,7 @@ resources: images: - name: controller newName: localhost:5000/undermoon-operator - newTag: v0.3.1 + newTag: v0.4.0 patchesJson6902: - target: diff --git a/docs/release_guide.md b/docs/release_guide.md new file mode 100644 index 0000000..e1b7030 --- /dev/null +++ b/docs/release_guide.md @@ -0,0 +1,60 @@ +# Release Guide + +Need to change the following versions: + +[Makefile](../Makefile) +``` +VERSION ?= vx.x.x +``` + +[Makefile.utils](../Makefile.utils) +``` +OPERATOR_HELM_VERSION=0.3.1 +``` + +[README.md](../README.md) +Need to change all the +- `undermoon-operator-x.x.x.tgz` +- `undermoon-cluster-x.x.x.tgz` +- `undermoon-scheduler-x.x.x.tgz` + +[config/manager/overlays/test/kustomization.yaml](../config/manager/overlays/test/kustomization.yaml) +``` +images: +- name: controller + newName: localhost:5000/undermoon-operator + newTag: vx.x.x +``` + +[helm/undermoon-cluster/Chart.yaml ](../helm/undermoon-cluster/Chart.yaml) +``` +version: x.x.x +``` + +[helm/undermoon-operator/Chart.yaml](../helm/undermoon-operator/Chart.yaml) +``` +version: x.x.x +... +appVersion: vx.x.x +``` + +[helm/undermoon-operator/values.yaml](../helm/undermoon-operator/values.yaml) +``` +image: + operatorImage: doyoubi/undermoon-operator + operatorImageTag: vx.x.x +``` + +[helm/undermoon-scheduler/Chart.yaml](../helm/undermoon-scheduler/Chart.yaml) +``` +version: x.x.x +... +# If scheduler image is updated +appVersion: vx.x.x +``` + +Then finally run: +``` +make update-types +``` +to make sure everything updated. diff --git a/helm/undermoon-cluster/Chart.yaml b/helm/undermoon-cluster/Chart.yaml index 236d54b..6027471 100644 --- a/helm/undermoon-cluster/Chart.yaml +++ b/helm/undermoon-cluster/Chart.yaml @@ -15,7 +15,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.3.1 +version: 0.4.0 maintainers: - name: doyoubi diff --git a/helm/undermoon-operator/Chart.yaml b/helm/undermoon-operator/Chart.yaml index 0364c79..0dff295 100644 --- a/helm/undermoon-operator/Chart.yaml +++ b/helm/undermoon-operator/Chart.yaml @@ -15,14 +15,14 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.3.1 +version: 0.4.0 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to # follow Semantic Versioning. They should reflect the version the application is using. # # This should be the same as the version of undermoon-operator. -appVersion: v0.3.1 +appVersion: v0.4.0 maintainers: - name: doyoubi diff --git a/helm/undermoon-operator/values.yaml b/helm/undermoon-operator/values.yaml index c838d96..f4281ae 100644 --- a/helm/undermoon-operator/values.yaml +++ b/helm/undermoon-operator/values.yaml @@ -4,7 +4,7 @@ image: operatorImage: doyoubi/undermoon-operator - operatorImageTag: v0.3.1 + operatorImageTag: v0.4.0 operatorImagePullPolicy: IfNotPresent broker_api_version: "v3" diff --git a/helm/undermoon-scheduler/Chart.yaml b/helm/undermoon-scheduler/Chart.yaml index 420eeb3..74ad32f 100644 --- a/helm/undermoon-scheduler/Chart.yaml +++ b/helm/undermoon-scheduler/Chart.yaml @@ -15,7 +15,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.3.1 +version: 0.4.0 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to