Skip to content

Commit

Permalink
release v0.3.1
Browse files Browse the repository at this point in the history
Signed-off-by: spacewander <spacewanderlzx@gmail.com>
  • Loading branch information
spacewander committed Jul 30, 2024
1 parent 19b3db2 commit 7ace4ff
Show file tree
Hide file tree
Showing 10 changed files with 33 additions and 32 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ jobs:
with:
go-version: '1.21'
cache-dependency-path: "**/*.sum"
- name: Check helm docs
- name: Check helm files
run: |
make gen-helm-docs
make gen-helm
if ! git diff --exit-code; then
echo "Generated files are not up-to-date. Please run 'make gen-helm-docs' and commit changes."
echo "Generated files are not up-to-date. Please run 'make gen-helm' and commit changes."
exit 1
fi
Expand Down
19 changes: 10 additions & 9 deletions MAINTAIN.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,17 @@ This doc tracks how to maintain the source code of HTNN.

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

* Create a new release branch `release/v${version}` from the main branch. Do the work below on the new branch.
* Create tag `api/v${version}`.
* Commit the changes below (the CI will fail at this point):
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):
* Update those `go.mod` which depend on `mosn.io/htnn/$mod`.
* Create tag `types/v${version}` for `types` module. Then do the same with `controller` and `plugins`.
* Running `make fmt-go`. Don't panic for "server response: not found" error. The sync of sum.golang.org might take half an hour. Try again later. Commit a new commit after the command succeed. The CI should pass now.
* Create tag `image/v${version}` to trigger image building.
* Once the image is ready, update the version in the `manifests/charts/*/Chart.yaml`, verify the helm chart locally, then submit as a new commit.
* The CI will create a new chart package.
* Add the `go.work` back, and merge the release branch to the main branch.
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:
* Once the image is ready, update the version in the `manifests/charts/*/Chart.yaml`.
* Run `make fmt-go`.
7. The CI will create a new chart package.
8. Merge the release branch to the main branch.

## Upgrade components

Expand Down
8 changes: 4 additions & 4 deletions controller/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -569,10 +569,10 @@ k8s.io/kube-openapi v0.0.0-20231010175941-2dd684a91f00 h1:aVUu9fTY98ivBPKR9Y5w/A
k8s.io/kube-openapi v0.0.0-20231010175941-2dd684a91f00/go.mod h1:AsvuZPBlUDVuCdzJ87iajxtXuR9oktsTctW/R9wwouA=
k8s.io/utils v0.0.0-20230726121419-3b25d923346b h1:sgn3ZU783SCgtaSJjpcVVlRqd6GSnlTLKgpAAttJvpI=
k8s.io/utils v0.0.0-20230726121419-3b25d923346b/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0=
mosn.io/htnn/api v0.3.0 h1:wAkMJrLcHKzam+41Twp02NRn84eNBERMVx5WTnWH2EY=
mosn.io/htnn/api v0.3.0/go.mod h1:DumqbmMou8J1/DzEDaRIZWpan82bOqxGceWxTju7WkU=
mosn.io/htnn/types v0.3.0 h1:HIajVzpr3KkWD1kXSHcCr7497DoOcKOGN7592ph/SyY=
mosn.io/htnn/types v0.3.0/go.mod h1:9wCJE4V+QgFDtCpY6rtdKy9xh/FPFfAH+GkTGRviaoY=
mosn.io/htnn/api v0.3.1 h1:vQMJI1XCgrWb3PdK7/T9ygdytl1Fps43Ekj36OY1vRk=
mosn.io/htnn/api v0.3.1/go.mod h1:DumqbmMou8J1/DzEDaRIZWpan82bOqxGceWxTju7WkU=
mosn.io/htnn/types v0.3.1 h1:WTxSVe8yUQhIjnYs6Y5RkPBUfknM2FBzgMdCzDfqjbQ=
mosn.io/htnn/types v0.3.1/go.mod h1:SEEwBojLXw7tEgmEro3cqxgUFWuJRsBosTU86U5S92A=
sigs.k8s.io/controller-runtime v0.17.3 h1:65QmN7r3FWgTxDMz9fvGnO1kbf2nu+acg9p2R9oYYYk=
sigs.k8s.io/controller-runtime v0.17.3/go.mod h1:N0jpP5Lo7lMTF9aL56Z/B2oWBJjey6StQM0jRbKQXtY=
sigs.k8s.io/gateway-api v1.0.0 h1:iPTStSv41+d9p0xFydll6d7f7MOBGuqXM6p2/zVYMAs=
Expand Down
2 changes: 1 addition & 1 deletion e2e/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ require (
k8s.io/klog/v2 v2.110.1 // indirect
k8s.io/kube-openapi v0.0.0-20231010175941-2dd684a91f00 // indirect
k8s.io/utils v0.0.0-20230726121419-3b25d923346b // indirect
mosn.io/htnn/api v0.3.0 // indirect
mosn.io/htnn/api v0.3.1 // indirect
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect
sigs.k8s.io/structured-merge-diff/v4 v4.4.1 // indirect
sigs.k8s.io/yaml v1.4.0 // indirect
Expand Down
12 changes: 6 additions & 6 deletions e2e/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -258,12 +258,12 @@ k8s.io/kube-openapi v0.0.0-20231010175941-2dd684a91f00 h1:aVUu9fTY98ivBPKR9Y5w/A
k8s.io/kube-openapi v0.0.0-20231010175941-2dd684a91f00/go.mod h1:AsvuZPBlUDVuCdzJ87iajxtXuR9oktsTctW/R9wwouA=
k8s.io/utils v0.0.0-20230726121419-3b25d923346b h1:sgn3ZU783SCgtaSJjpcVVlRqd6GSnlTLKgpAAttJvpI=
k8s.io/utils v0.0.0-20230726121419-3b25d923346b/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0=
mosn.io/htnn/api v0.3.0 h1:wAkMJrLcHKzam+41Twp02NRn84eNBERMVx5WTnWH2EY=
mosn.io/htnn/api v0.3.0/go.mod h1:DumqbmMou8J1/DzEDaRIZWpan82bOqxGceWxTju7WkU=
mosn.io/htnn/controller v0.3.0 h1:ntdxIfIodQTZ3V+5kwpxNrzVcxrQ8DeZWXAVt1nFdXI=
mosn.io/htnn/controller v0.3.0/go.mod h1:sKce6I7GEGT6wpje4fvfaWrE/u/iJE76sUTcSd0uEaw=
mosn.io/htnn/types v0.3.0 h1:HIajVzpr3KkWD1kXSHcCr7497DoOcKOGN7592ph/SyY=
mosn.io/htnn/types v0.3.0/go.mod h1:9wCJE4V+QgFDtCpY6rtdKy9xh/FPFfAH+GkTGRviaoY=
mosn.io/htnn/api v0.3.1 h1:vQMJI1XCgrWb3PdK7/T9ygdytl1Fps43Ekj36OY1vRk=
mosn.io/htnn/api v0.3.1/go.mod h1:DumqbmMou8J1/DzEDaRIZWpan82bOqxGceWxTju7WkU=
mosn.io/htnn/controller v0.3.1 h1:hLT7+SWdRpeQ+0yyiTuzDaPDp6ZXy4WE3TfqGxbkB2A=
mosn.io/htnn/controller v0.3.1/go.mod h1:U54nzBvGbU+Pu/vwb7hvha5JNSj1NF8wWgx1aVzvUpg=
mosn.io/htnn/types v0.3.1 h1:WTxSVe8yUQhIjnYs6Y5RkPBUfknM2FBzgMdCzDfqjbQ=
mosn.io/htnn/types v0.3.1/go.mod h1:SEEwBojLXw7tEgmEro3cqxgUFWuJRsBosTU86U5S92A=
sigs.k8s.io/controller-runtime v0.17.3 h1:65QmN7r3FWgTxDMz9fvGnO1kbf2nu+acg9p2R9oYYYk=
sigs.k8s.io/controller-runtime v0.17.3/go.mod h1:N0jpP5Lo7lMTF9aL56Z/B2oWBJjey6StQM0jRbKQXtY=
sigs.k8s.io/gateway-api v1.0.0 h1:iPTStSv41+d9p0xFydll6d7f7MOBGuqXM6p2/zVYMAs=
Expand Down
2 changes: 1 addition & 1 deletion manifests/charts/htnn-controller/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ helm uninstall htnn-controller -n istio-system
| global.remotePilotAddress | string | `""` | |
| global.sds.token.aud | string | `"istio-ca"` | |
| global.sts.servicePort | int | `0` | |
| global.tag | string | `"v0.3.0"` | |
| global.tag | string | `"v0.3.1"` | |
| istio_cni.chained | bool | `true` | |
| istio_cni.provider | string | `"default"` | |
| istiodRemote.injectionCABundle | string | `""` | |
Expand Down
2 changes: 1 addition & 1 deletion manifests/charts/htnn-controller/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@
]
},
"tag": {
"default": "v0.3.0",
"default": "v0.3.1",
"title": "tag",
"type": "string"
}
Expand Down
2 changes: 1 addition & 1 deletion manifests/charts/htnn-controller/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ global:

# Default hub for HTNN images.
hub: ghcr.io/mosn
tag: v0.3.0
tag: v0.3.1

# Specify image pull policy if default behavior isn't desired.
# Default behavior: latest images will be Always else IfNotPresent.
Expand Down
8 changes: 4 additions & 4 deletions plugins/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -247,9 +247,9 @@ gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ=
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
mosn.io/htnn/api v0.3.0 h1:wAkMJrLcHKzam+41Twp02NRn84eNBERMVx5WTnWH2EY=
mosn.io/htnn/api v0.3.0/go.mod h1:DumqbmMou8J1/DzEDaRIZWpan82bOqxGceWxTju7WkU=
mosn.io/htnn/types v0.3.0 h1:HIajVzpr3KkWD1kXSHcCr7497DoOcKOGN7592ph/SyY=
mosn.io/htnn/types v0.3.0/go.mod h1:9wCJE4V+QgFDtCpY6rtdKy9xh/FPFfAH+GkTGRviaoY=
mosn.io/htnn/api v0.3.1 h1:vQMJI1XCgrWb3PdK7/T9ygdytl1Fps43Ekj36OY1vRk=
mosn.io/htnn/api v0.3.1/go.mod h1:DumqbmMou8J1/DzEDaRIZWpan82bOqxGceWxTju7WkU=
mosn.io/htnn/types v0.3.1 h1:WTxSVe8yUQhIjnYs6Y5RkPBUfknM2FBzgMdCzDfqjbQ=
mosn.io/htnn/types v0.3.1/go.mod h1:SEEwBojLXw7tEgmEro3cqxgUFWuJRsBosTU86U5S92A=
sigs.k8s.io/yaml v1.4.0 h1:Mk1wCc2gy/F0THH0TAp1QYyJNzRm2KCLy3o5ASXVI5E=
sigs.k8s.io/yaml v1.4.0/go.mod h1:Ejl7/uTz7PSA4eKMyQCUTnhZYNmLIl+5c2lQPGR2BPY=
4 changes: 2 additions & 2 deletions types/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -311,8 +311,8 @@ k8s.io/kube-openapi v0.0.0-20231010175941-2dd684a91f00 h1:aVUu9fTY98ivBPKR9Y5w/A
k8s.io/kube-openapi v0.0.0-20231010175941-2dd684a91f00/go.mod h1:AsvuZPBlUDVuCdzJ87iajxtXuR9oktsTctW/R9wwouA=
k8s.io/utils v0.0.0-20230726121419-3b25d923346b h1:sgn3ZU783SCgtaSJjpcVVlRqd6GSnlTLKgpAAttJvpI=
k8s.io/utils v0.0.0-20230726121419-3b25d923346b/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0=
mosn.io/htnn/api v0.3.0 h1:wAkMJrLcHKzam+41Twp02NRn84eNBERMVx5WTnWH2EY=
mosn.io/htnn/api v0.3.0/go.mod h1:DumqbmMou8J1/DzEDaRIZWpan82bOqxGceWxTju7WkU=
mosn.io/htnn/api v0.3.1 h1:vQMJI1XCgrWb3PdK7/T9ygdytl1Fps43Ekj36OY1vRk=
mosn.io/htnn/api v0.3.1/go.mod h1:DumqbmMou8J1/DzEDaRIZWpan82bOqxGceWxTju7WkU=
sigs.k8s.io/controller-runtime v0.17.3 h1:65QmN7r3FWgTxDMz9fvGnO1kbf2nu+acg9p2R9oYYYk=
sigs.k8s.io/controller-runtime v0.17.3/go.mod h1:N0jpP5Lo7lMTF9aL56Z/B2oWBJjey6StQM0jRbKQXtY=
sigs.k8s.io/gateway-api v1.0.0 h1:iPTStSv41+d9p0xFydll6d7f7MOBGuqXM6p2/zVYMAs=
Expand Down

0 comments on commit 7ace4ff

Please sign in to comment.