diff --git a/.github/workflows/manual-build.yml b/.github/workflows/manual-build.yml index e90368749..68db23a5a 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 49c1cf668..eca6ea2f8 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 2c6400009..84e29df41 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 cb5261553..2fb97d5ff 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 1cb041cc4..5e1139235 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 817146870..d729f5228 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 66a4579d2..4e96bc52d 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 0785424dc..3ff45e459 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 7d16909ab..3abe19a82 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 2fa9c034e..2feda39ac 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 b3a6b33b2..41d291884 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 a226dada1..2b73972db 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 5d1d13029..3482e1090 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 2a48e6655..390a8e3a1 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 }