Skip to content

Commit b866a5b

Browse files
authored
[Maintenance] Bump Go to 1.20.7 (#1374)
1 parent 63a65d8 commit b866a5b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+163
-76
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ language: go
22

33
go:
44
- "1.19"
5+
- "1.20"
56

67
go_import_path: github.com/arangodb/kube-arangodb
78

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
- (Maintenance) Bump K8S Version to 1.23.17
1212
- (Maintenance) Bump K8S Version to 1.24.16
1313
- (Maintenance) Bump K8S Version to 1.25.12
14+
- (Maintenance) Bump Go to 1.20.7
1415

1516
## [1.2.31](https://github.com/arangodb/kube-arangodb/tree/1.2.31) (2023-07-14)
1617
- (Improvement) Block traffic on the services if there is more than 1 active leader in ActiveFailover mode

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/arangodb/kube-arangodb
22

3-
go 1.19
3+
go 1.20
44

55
replace (
66
github.com/arangodb/go-driver => github.com/arangodb/go-driver v1.2.1

pkg/api/jwt.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/apis/deployment/v1/member_status_list.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@
2121
package v1
2222

2323
import (
24-
"math/rand"
2524
"sort"
2625
"time"
2726

2827
core "k8s.io/api/core/v1"
2928

29+
"github.com/arangodb/kube-arangodb/pkg/util"
3030
"github.com/arangodb/kube-arangodb/pkg/util/errors"
3131
)
3232

@@ -188,7 +188,7 @@ func (l MemberStatusList) SelectMemberToRemove(selectors ...MemberToRemoveSelect
188188
}
189189

190190
// Pick a random member that is in created state
191-
perm := rand.Perm(len(l))
191+
perm := util.Rand().Perm(len(l))
192192
for _, idx := range perm {
193193
m := l[idx]
194194
if m.Phase == MemberPhaseCreated {

pkg/apis/deployment/v1/plan_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//
22
// DISCLAIMER
33
//
4-
// Copyright 2016-2022 ArangoDB GmbH, Cologne, Germany
4+
// Copyright 2016-2023 ArangoDB GmbH, Cologne, Germany
55
//
66
// Licensed under the Apache License, Version 2.0 (the "License");
77
// you may not use this file except in compliance with the License.

pkg/apis/deployment/v2alpha1/member_status_list.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@
2121
package v2alpha1
2222

2323
import (
24-
"math/rand"
2524
"sort"
2625
"time"
2726

2827
core "k8s.io/api/core/v1"
2928

29+
"github.com/arangodb/kube-arangodb/pkg/util"
3030
"github.com/arangodb/kube-arangodb/pkg/util/errors"
3131
)
3232

@@ -188,7 +188,7 @@ func (l MemberStatusList) SelectMemberToRemove(selectors ...MemberToRemoveSelect
188188
}
189189

190190
// Pick a random member that is in created state
191-
perm := rand.Perm(len(l))
191+
perm := util.Rand().Perm(len(l))
192192
for _, idx := range perm {
193193
m := l[idx]
194194
if m.Phase == MemberPhaseCreated {

pkg/deployment/acs/acs.community.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
//
1818
// Copyright holder is ArangoDB GmbH, Cologne, Germany
1919
//go:build !enterprise
20-
// +build !enterprise
2120

2221
package acs
2322

pkg/deployment/agency/loader.community.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
//
2020

2121
//go:build !enterprise
22-
// +build !enterprise
2322

2423
package agency
2524

pkg/deployment/agency/state/generator_jobs_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,9 @@ package state
2222

2323
import (
2424
"fmt"
25-
"math/rand"
2625
"testing"
26+
27+
"github.com/arangodb/kube-arangodb/pkg/util"
2728
)
2829

2930
func NewJobsGenerator() JobsGeneratorInterface {
@@ -52,7 +53,7 @@ func (j *jobsGenerator) Jobs(phase JobPhase, jobs int, jobTypes ...string) JobsG
5253
j.id++
5354
id := fmt.Sprintf("s%07d", q)
5455
z[JobID(id)] = Job{
55-
Type: jobTypes[rand.Intn(len(jobTypes))],
56+
Type: jobTypes[util.Rand().Intn(len(jobTypes))],
5657
}
5758
}
5859

0 commit comments

Comments
 (0)