From 130d11790563c0770511cd81f1f1b7456b65660e Mon Sep 17 00:00:00 2001 From: Vinayakswami Hariharmath Date: Mon, 31 Jul 2023 18:48:01 +0530 Subject: [PATCH] update go version update go version to 1.20 from 1,19 Signed-off-by: Vinayakswami Hariharmath --- .github/workflows/manual-build.yml | 2 +- .github/workflows/run_admission_test.yml | 2 +- .github/workflows/run_ci.yml | 6 +++--- .github/workflows/run_cosi_test.yaml | 2 +- .github/workflows/run_hac_test.yml | 2 +- .github/workflows/run_kms_dev_test.yml | 2 +- .github/workflows/run_kms_ibm_kp_test.yml | 2 +- .github/workflows/run_kms_kmip_test.yml | 2 +- .github/workflows/run_kms_rotate_test.yml | 2 +- .github/workflows/run_kms_tls_sa_test.yml | 2 +- .github/workflows/run_kms_tls_token_test.yml | 2 +- .github/workflows/testing.yml | 2 +- go.mod | 2 +- pkg/cli/cli.go | 4 ++-- 14 files changed, 17 insertions(+), 17 deletions(-) diff --git a/.github/workflows/manual-build.yml b/.github/workflows/manual-build.yml index e903687499..68db23a5aa 100644 --- a/.github/workflows/manual-build.yml +++ b/.github/workflows/manual-build.yml @@ -21,7 +21,7 @@ jobs: ref: ${{ github.event.inputs.branch }} - uses: actions/setup-go@v3 with: - go-version: "1.19" + go-version: "1.20" - name: Get Current Date id: date diff --git a/.github/workflows/run_admission_test.yml b/.github/workflows/run_admission_test.yml index 49c1cf668a..eca6ea2f8e 100644 --- a/.github/workflows/run_admission_test.yml +++ b/.github/workflows/run_admission_test.yml @@ -18,7 +18,7 @@ jobs: - name: Setup Go on runner uses: actions/setup-go@v3 with: - go-version: "1.19" + go-version: "1.20" - name: Set environment variables run: | diff --git a/.github/workflows/run_ci.yml b/.github/workflows/run_ci.yml index 2c64000093..84e29df41e 100644 --- a/.github/workflows/run_ci.yml +++ b/.github/workflows/run_ci.yml @@ -19,7 +19,7 @@ jobs: - uses: actions/setup-go@v2 # Could not change to version 3, see issue: # https://github.com/noobaa/noobaa-operator/issues/1031 with: - go-version: "1.19" + go-version: "1.20" - name: Deploy Dependencies id: deploy @@ -52,7 +52,7 @@ jobs: uses: actions/checkout@v3 - uses: actions/setup-go@v2 with: - go-version: "1.19" + go-version: "1.20" - name: Deploy Dependencies id: deploy @@ -81,7 +81,7 @@ jobs: uses: actions/checkout@v3 - uses: actions/setup-go@v2 with: - go-version: "1.19" + go-version: "1.20" - name: Deploy Dependencies id: deploy diff --git a/.github/workflows/run_cosi_test.yaml b/.github/workflows/run_cosi_test.yaml index cb5261553f..2fb97d5ff9 100644 --- a/.github/workflows/run_cosi_test.yaml +++ b/.github/workflows/run_cosi_test.yaml @@ -18,7 +18,7 @@ jobs: - name: Setup Go on runner uses: actions/setup-go@v3 with: - go-version: "1.19" + go-version: "1.20" - name: Set environment variables run: | diff --git a/.github/workflows/run_hac_test.yml b/.github/workflows/run_hac_test.yml index 1cb041cc46..5e11392352 100644 --- a/.github/workflows/run_hac_test.yml +++ b/.github/workflows/run_hac_test.yml @@ -13,7 +13,7 @@ jobs: uses: actions/checkout@v3 - uses: actions/setup-go@v3 with: - go-version: "1.19" + go-version: "1.20" - name: Set environment variables run: | diff --git a/.github/workflows/run_kms_dev_test.yml b/.github/workflows/run_kms_dev_test.yml index 8171468708..d729f5228d 100644 --- a/.github/workflows/run_kms_dev_test.yml +++ b/.github/workflows/run_kms_dev_test.yml @@ -13,7 +13,7 @@ jobs: uses: actions/checkout@v3 - uses: actions/setup-go@v3 with: - go-version: "1.19" + go-version: "1.20" - name: Set environment variables run: | diff --git a/.github/workflows/run_kms_ibm_kp_test.yml b/.github/workflows/run_kms_ibm_kp_test.yml index 66a4579d25..4e96bc52d5 100644 --- a/.github/workflows/run_kms_ibm_kp_test.yml +++ b/.github/workflows/run_kms_ibm_kp_test.yml @@ -16,7 +16,7 @@ jobs: uses: actions/checkout@v3 - uses: actions/setup-go@v3 with: - go-version: "1.19" + go-version: "1.20" - name: Set environment variables run: | diff --git a/.github/workflows/run_kms_kmip_test.yml b/.github/workflows/run_kms_kmip_test.yml index 0785424dc6..3ff45e459f 100644 --- a/.github/workflows/run_kms_kmip_test.yml +++ b/.github/workflows/run_kms_kmip_test.yml @@ -13,7 +13,7 @@ jobs: uses: actions/checkout@v3 - uses: actions/setup-go@v3 with: - go-version: "1.19" + go-version: "1.20" - name: Set environment variables run: | diff --git a/.github/workflows/run_kms_rotate_test.yml b/.github/workflows/run_kms_rotate_test.yml index 7d16909ab3..3abe19a82a 100644 --- a/.github/workflows/run_kms_rotate_test.yml +++ b/.github/workflows/run_kms_rotate_test.yml @@ -13,7 +13,7 @@ jobs: uses: actions/checkout@v3 - uses: actions/setup-go@v3 with: - go-version: "1.19" + go-version: "1.20" - name: Set environment variables run: | diff --git a/.github/workflows/run_kms_tls_sa_test.yml b/.github/workflows/run_kms_tls_sa_test.yml index 2fa9c034e8..2feda39ac8 100644 --- a/.github/workflows/run_kms_tls_sa_test.yml +++ b/.github/workflows/run_kms_tls_sa_test.yml @@ -13,7 +13,7 @@ jobs: uses: actions/checkout@v3 - uses: actions/setup-go@v3 with: - go-version: "1.19" + go-version: "1.20" - name: Set environment variables run: | diff --git a/.github/workflows/run_kms_tls_token_test.yml b/.github/workflows/run_kms_tls_token_test.yml index b3a6b33b2d..41d2918849 100644 --- a/.github/workflows/run_kms_tls_token_test.yml +++ b/.github/workflows/run_kms_tls_token_test.yml @@ -13,7 +13,7 @@ jobs: uses: actions/checkout@v3 - uses: actions/setup-go@v3 with: - go-version: "1.19" + go-version: "1.20" - name: Set environment variables run: | diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index a226dada14..2b73972dbd 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -13,7 +13,7 @@ jobs: uses: actions/checkout@v3 - uses: actions/setup-go@v3 with: - go-version: "1.19" + go-version: "1.20" - name: Get Current Date id: date diff --git a/go.mod b/go.mod index 5d1d130290..3482e1090f 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/noobaa/noobaa-operator/v5 -go 1.19 +go 1.20 require ( cloud.google.com/go/storage v1.30.1 diff --git a/pkg/cli/cli.go b/pkg/cli/cli.go index 2a48e66557..390a8e3a1e 100644 --- a/pkg/cli/cli.go +++ b/pkg/cli/cli.go @@ -66,10 +66,10 @@ func Cmd() *cobra.Command { util.InitLogger(logrus.DebugLevel) - rand.Seed(time.Now().UTC().UnixNano()) + r := rand.New(rand.NewSource(time.Now().UTC().UnixNano())) logo := ASCIILogo1 - if rand.Intn(2) == 0 { // 50% chance + if r.Intn(2) == 0 { // 50% chance logo = ASCIILogo2 }