Skip to content

Commit

Permalink
release: update go mod to use v0.3.2
Browse files Browse the repository at this point in the history
Signed-off-by: spacewander <[email protected]>
  • Loading branch information
spacewander committed Aug 14, 2024
1 parent 5bd188b commit b139974
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 15 deletions.
14 changes: 6 additions & 8 deletions MAINTAIN.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,16 @@ This doc tracks how to maintain the source code of HTNN.

To release a new version, please follow the steps below:

1. Create a new release branch `release/v${version}` from the main branch. Do the work below on the new branch.
2. Create tag `api/v${version}`.
3. Commit the changes below (the CI will fail at this point):
1. Create tag `api/v${version}`.
2. Commit the changes below to the main branch (the CI will fail at this point):
* Update those `go.mod` which depend on `mosn.io/htnn/$mod`.
4. Create tag `types/v${version}` for `types` module. Then do the same with `controller` and `plugins`. Rerun the `test` workflow to verify the changes. Don't panic for "server response: not found" error. The sync of sum.golang.org might take half an hour. Try again later.
5. Create tag `image/v${version}` to trigger image building.
6. Submit a new commit with the changes below:
3. Create tag `types/v${version}` for `types` module. Then do the same with `controller` and `plugins`. Rerun the `test` workflow to verify the changes. Don't panic for "server response: not found" error. The sync of sum.golang.org might take half an hour. Try again later.
4. Create tag `image/v${version}` to trigger image building.
5. Submit a new commit with the changes below (ensure the CI passes):
* Once the image is ready, update the version in the `manifests/charts/*/Chart.yaml`.
* Run `make fmt-go`.
* Update the `./examples/dev_your_plugin` to use the released version.
7. The CI will create a new chart package.
8. Merge the release branch to the main branch.
6. The CI will create a new chart package.

## Upgrade components

Expand Down
4 changes: 2 additions & 2 deletions controller/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ require (
k8s.io/api v0.29.3
k8s.io/apimachinery v0.29.3
k8s.io/client-go v0.29.3
mosn.io/htnn/api v0.3.1
mosn.io/htnn/types v0.3.1
mosn.io/htnn/api v0.3.2
mosn.io/htnn/types v0.3.2
sigs.k8s.io/controller-runtime v0.17.3
sigs.k8s.io/gateway-api v1.0.0
sigs.k8s.io/yaml v1.4.0
Expand Down
4 changes: 2 additions & 2 deletions e2e/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ require (
k8s.io/api v0.29.3
k8s.io/apimachinery v0.29.3
k8s.io/client-go v0.29.3
mosn.io/htnn/controller v0.3.1
mosn.io/htnn/types v0.3.1
mosn.io/htnn/controller v0.3.2
mosn.io/htnn/types v0.3.2
sigs.k8s.io/controller-runtime v0.17.3
sigs.k8s.io/gateway-api v1.0.0
)
Expand Down
4 changes: 2 additions & 2 deletions plugins/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ require (
golang.org/x/oauth2 v0.20.0
golang.org/x/time v0.5.0
google.golang.org/protobuf v1.34.0
mosn.io/htnn/api v0.3.1
mosn.io/htnn/types v0.3.1
mosn.io/htnn/api v0.3.2
mosn.io/htnn/types v0.3.2
)

require (
Expand Down
2 changes: 1 addition & 1 deletion types/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ require (
istio.io/client-go v1.21.2
k8s.io/apimachinery v0.29.3
k8s.io/client-go v0.29.3
mosn.io/htnn/api v0.3.1
mosn.io/htnn/api v0.3.2
sigs.k8s.io/controller-runtime v0.17.3
sigs.k8s.io/gateway-api v1.0.0
)
Expand Down

0 comments on commit b139974

Please sign in to comment.