Skip to content

Commit

Permalink
release: update go mod to use v0.5.0
Browse files Browse the repository at this point in the history
Signed-off-by: spacewander <[email protected]>
  • Loading branch information
spacewander committed Jan 16, 2025
1 parent b99be34 commit c045638
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 8 deletions.
4 changes: 2 additions & 2 deletions controller/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,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.4.1
mosn.io/htnn/types v0.4.1
mosn.io/htnn/api v0.5.0
mosn.io/htnn/types v0.5.0
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 @@ -23,8 +23,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.4.1
mosn.io/htnn/types v0.4.1
mosn.io/htnn/controller v0.5.0
mosn.io/htnn/types v0.5.0
sigs.k8s.io/controller-runtime v0.17.3
sigs.k8s.io/gateway-api v1.0.0
)
Expand Down
4 changes: 3 additions & 1 deletion maintainer/guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,16 @@ To release a new version, please follow the steps below:
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`.
You can refer to https://github.com/mosn/htnn/commit/d651fdf4e14dda6c769c468141d2b151c4c1b80f for an example.
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 or longer. 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):
5. Submit a new pull request with the changes below (ensure the CI passes):
* Once the image is ready, update the version in the `manifests/charts/*/Chart.yaml`.
* Update the `./examples/dev_your_plugin` to use the released version.
* Run `make fmt-go`.
* Promote the maturity of plugins that meet the criteria to stable by updating `maintainer/feature_maturity_level.yaml` and plugin documentation.
* Update the `CHANGELOG.md`.
You can refer to https://github.com/mosn/htnn/pull/777/files for an example.
6. Create a release branch `release/v${version}` from the main branch, like `release/v0.3.2`. The CI will create a new chart package.

## Upgrade components
Expand Down
4 changes: 2 additions & 2 deletions plugins/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ require (
golang.org/x/oauth2 v0.21.0
golang.org/x/time v0.6.0
google.golang.org/protobuf v1.34.2
mosn.io/htnn/api v0.4.1
mosn.io/htnn/types v0.4.1
mosn.io/htnn/api v0.5.0
mosn.io/htnn/types v0.5.0
)

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.4.1
mosn.io/htnn/api v0.5.0
sigs.k8s.io/controller-runtime v0.17.3
sigs.k8s.io/gateway-api v1.0.0
)
Expand Down

0 comments on commit c045638

Please sign in to comment.