Skip to content

Commit

Permalink
Merge pull request #42 from doyoubi/BumpVersion
Browse files Browse the repository at this point in the history
Bump version to 0.4.0 and add release guide
  • Loading branch information
doyoubi committed Dec 19, 2021
2 parents df1f639 + b3565db commit 8fdc382
Show file tree
Hide file tree
Showing 9 changed files with 75 additions and 15 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
2 changes: 1 addition & 1 deletion Makefile.utils
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down Expand Up @@ -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`:
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion config/manager/overlays/test/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ resources:
images:
- name: controller
newName: localhost:5000/undermoon-operator
newTag: v0.3.1
newTag: v0.4.0

patchesJson6902:
- target:
Expand Down
60 changes: 60 additions & 0 deletions docs/release_guide.md
Original file line number Diff line number Diff line change
@@ -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.
2 changes: 1 addition & 1 deletion helm/undermoon-cluster/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions helm/undermoon-operator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion helm/undermoon-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

image:
operatorImage: doyoubi/undermoon-operator
operatorImageTag: v0.3.1
operatorImageTag: v0.4.0
operatorImagePullPolicy: IfNotPresent

broker_api_version: "v3"
Expand Down
2 changes: 1 addition & 1 deletion helm/undermoon-scheduler/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8fdc382

Please sign in to comment.