Skip to content

Commit

Permalink
Upgrade to golang 1.19 (#313)
Browse files Browse the repository at this point in the history
Signed-off-by: Jian Qiu <[email protected]>
  • Loading branch information
qiujian16 authored Feb 17, 2023
1 parent 72d9192 commit 59f379b
Show file tree
Hide file tree
Showing 18 changed files with 31 additions and 442 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.17
go-version: 1.19
- name: Check version
run: |
cat VERSION.txt | grep ${{ github.ref_name }}
- name: Build project
run: |
make build-bin
- name: Release
uses: softprops/action-gh-release@v0.1.5
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.17
go-version: 1.19
- name: verify
run: make verify

Expand All @@ -27,7 +27,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.17
go-version: 1.19
- name: Integration Tests
run: make test-integration

Expand All @@ -39,7 +39,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.17
go-version: 1.19

- name: E2E Tests
run: make test-e2e
13 changes: 4 additions & 9 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,13 @@
[comment]: # ( Copyright Contributors to the Open Cluster Management project )
# Release Content
## Additions
- [refactor join command and add preflight check](https://github.com/open-cluster-management-io/clusteradm/pull/291) @ycyaoxdu
- [add output option: json](https://github.com/open-cluster-management-io/clusteradm/pull/288) @ycyaoxdu

## Breaking Changes
- [Add addon OWNERS files](https://github.com/open-cluster-management-io/clusteradm/pull/301) @dhaiducek

## Changes
- [Update the Policy CRD to contain the spec.copyPolicyMetadata field](https://github.com/open-cluster-management-io/clusteradm/pull/305) @mprahl
- [upgrade github action](https://github.com/open-cluster-management-io/clusteradm/pull/293) @ycyaoxdu
- [Update klusterlet crd](https://github.com/open-cluster-management-io/clusteradm/pull/290) @zhujian7
- [Update some policy crds to improve field descriptions](https://github.com/open-cluster-management-io/clusteradm/pull/286) @gparvin
- [Unify help text for --bundle-version ](https://github.com/open-cluster-management-io/clusteradm/pull/311) @nirs
- [Refine --bundle-version help](https://github.com/open-cluster-management-io/clusteradm/pull/312) @nirs
- [Upgrade to golang 1.19](https://github.com/open-cluster-management-io/clusteradm/pull/312) @qiujian16

## Bug Fixes
- [Fix: warning when klusterletApiServer doesn't start with https://](https://github.com/open-cluster-management-io/clusteradm/pull/297) @xuezhaojun
- [Fix: preflight check should return no error when configmap cluster-info not exist.](https://github.com/open-cluster-management-io/clusteradm/pull/296) @xuezhaojun

4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ clean: clean-test clean-e2e

.PHONY: verify
verify:
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.45.2
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.51.1
go vet ./...
golangci-lint run --timeout=3m --modules-download-mode vendor -E gofmt ./...

Expand All @@ -40,7 +40,7 @@ build-bin:
@mkdir -p bin
GOOS=darwin GOARCH=amd64 go build -ldflags="-s -w" -gcflags=-trimpath=x/y -o bin/clusteradm ./cmd/clusteradm/clusteradm.go && tar -czf bin/clusteradm_darwin_amd64.tar.gz LICENSE -C bin/ clusteradm
GOOS=darwin GOARCH=arm64 go build -ldflags="-s -w" -gcflags=-trimpath=x/y -o bin/clusteradm ./cmd/clusteradm/clusteradm.go && tar -czf bin/clusteradm_darwin_arm64.tar.gz LICENSE -C bin/ clusteradm
GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -gcflags=-trimpath=x/y -o bin/clusteradm ./cmd/clusteradm/clusteradm.go && tar -czf bin/clusteradm_linux_amd64.tar.gz LICENSE -C bin/ clusteradm
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -ldflags="-s -w" -gcflags=-trimpath=x/y -o bin/clusteradm ./cmd/clusteradm/clusteradm.go && tar -czf bin/clusteradm_linux_amd64.tar.gz LICENSE -C bin/ clusteradm
GOOS=linux GOARCH=arm64 go build -ldflags="-s -w" -gcflags=-trimpath=x/y -o bin/clusteradm ./cmd/clusteradm/clusteradm.go && tar -czf bin/clusteradm_linux_arm64.tar.gz LICENSE -C bin/ clusteradm
GOOS=linux GOARCH=ppc64le go build -ldflags="-s -w" -gcflags=-trimpath=x/y -o bin/clusteradm ./cmd/clusteradm/clusteradm.go && tar -czf bin/clusteradm_linux_ppc64le.tar.gz LICENSE -C bin/ clusteradm
GOOS=linux GOARCH=s390x go build -ldflags="-s -w" -gcflags=-trimpath=x/y -o bin/clusteradm ./cmd/clusteradm/clusteradm.go && tar -czf bin/clusteradm_linux_s390x.tar.gz LICENSE -C bin/ clusteradm
Expand Down
2 changes: 1 addition & 1 deletion VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v0.5.0
v0.5.1
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module open-cluster-management.io/clusteradm

go 1.17
go 1.19

require (
github.com/briandowns/spinner v1.18.1
Expand Down
Loading

0 comments on commit 59f379b

Please sign in to comment.