Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 9e906eb

Browse files
[Feature] Update GoDriver (#1947)
1 parent 4c43f85 commit 9e906eb

File tree

5 files changed

+13
-9
lines changed

5 files changed

+13
-9
lines changed

‎.circleci/continue_config.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ parameters:
1616
executors:
1717
golang-executor:
1818
docker:
19-
- image: 889010145541.dkr.ecr.us-east-1.amazonaws.com/cicd/golang:1.23.6
19+
- image: 889010145541.dkr.ecr.us-east-1.amazonaws.com/cicd/golang:1.24.5
2020
aws_auth:
2121
oidc_role_arn: arn:aws:iam::889010145541:role/circleci-project-dev-kube-arangodb
2222
machine-executor:

‎CHANGELOG.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
- (Bugfix) (Platform) Fix NoAuth Mode
1717
- (Feature) Define OptionalReplace Upgrade Mode option
1818
- (Feature) OptionalReplace Upgrade Mode
19+
- (Feature) Update GoDriver
1920

2021
## [1.2.50](https://github.com/arangodb/kube-arangodb/tree/1.2.50) (2025年07月04日)
2122
- (Feature) (Platform) MetaV1 Integration Service

‎go.mod‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
module github.com/arangodb/kube-arangodb
22

3-
go 1.23.0
3+
go 1.23.8
44

5-
toolchain go1.23.8
5+
toolchain go1.24.5
66

77
replace (
88
github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring => github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring v0.71.2
@@ -30,7 +30,7 @@ require (
3030
github.com/arangodb-helper/go-helper v0.4.2
3131
github.com/arangodb/arangosync-client v0.9.1
3232
github.com/arangodb/go-driver v1.6.6
33-
github.com/arangodb/go-driver/v2 v2.1.3
33+
github.com/arangodb/go-driver/v2 v2.1.4
3434
github.com/arangodb/go-upgrade-rules v0.0.0-20180809110947-031b4774ff21
3535
//github.com/arangodb/rebalancer v0.1.1
3636
//github.com/arangodb/go-agency-helper v0.3.0

‎go.sum‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -873,6 +873,8 @@ github.com/arangodb/go-driver/v2 v2.0.3 h1:B/tKSgf4KSiLN0biqcH8Tm/Dj8nZdP5Lia2/x
873873
github.com/arangodb/go-driver/v2 v2.0.3/go.mod h1:iibpBwIQbE4uejDFCvLqwCVfgE72F51ZEehPme+BAug=
874874
github.com/arangodb/go-driver/v2 v2.1.3 h1:PpLSe8E2RalFuqTGi2yfHDe3ltOomfFCIToB66p1lr8=
875875
github.com/arangodb/go-driver/v2 v2.1.3/go.mod h1:aoDzrsO7PQEFat3Q9pp4zfv6W+WotA7GcCeJQJfX+tc=
876+
github.com/arangodb/go-driver/v2 v2.1.4 h1:JWHqPvptt1kvaI4fcSUrBsiSxSXDsxz3CxfWXmeRQnA=
877+
github.com/arangodb/go-driver/v2 v2.1.4/go.mod h1:6jUaq/zF5jSrw9ZazUFc+zohq+xBYYLZW29+eqzqSlU=
876878
github.com/arangodb/go-upgrade-rules v0.0.0-20180809110947-031b4774ff21 h1:+W7D5ttxi/Ygh/39vialtypE23p9KI7P0J2qtoqUV4w=
877879
github.com/arangodb/go-upgrade-rules v0.0.0-20180809110947-031b4774ff21/go.mod h1:RkPIG6JJ2pcJUoymc18NxAJGraZd+iAEVnOTDjZey/w=
878880
github.com/arangodb/go-velocypack v0.0.0-20200318135517-5af53c29c67e h1:Xg+hGrY2LcQBbxd0ZFdbGSyRKTYMZCfBbw/pMJFOk1g=

‎pkg/integrations/shared/database.go‎

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ import (
3232
"github.com/arangodb/go-driver/v2/connection"
3333

3434
pbAuthenticationV1 "github.com/arangodb/kube-arangodb/integrations/authentication/v1/definition"
35+
"github.com/arangodb/kube-arangodb/pkg/util"
3536
"github.com/arangodb/kube-arangodb/pkg/util/cache"
3637
"github.com/arangodb/kube-arangodb/pkg/util/errors"
3738
operatorHTTP "github.com/arangodb/kube-arangodb/pkg/util/http"
@@ -167,11 +168,11 @@ func (d *Database) KVCollectionFromClient(clientO cache.Object[arangodb.Client],
167168
return nil, 0, err
168169
}
169170

170-
if _, err := db.CreateCollectionWithOptions(ctx, collection, &arangodb.CreateCollectionProperties{
171-
IsSystem: true,
172-
WriteConcern: d.WriteConcern,
173-
ReplicationFactor: arangodb.ReplicationFactor(d.ReplicationFactor),
174-
}, nil); err != nil {
171+
if _, err := db.CreateCollectionV2(ctx, collection, &arangodb.CreateCollectionPropertiesV2{
172+
IsSystem: util.NewType(true),
173+
WriteConcern: util.NewType(d.WriteConcern),
174+
ReplicationFactor: util.NewType(arangodb.ReplicationFactor(d.ReplicationFactor)),
175+
}); err != nil {
175176
if !shared.IsConflict(err) {
176177
return nil, 0, err
177178
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /