@@ -32,6 +32,7 @@ import (
32
32
"github.com/arangodb/go-driver/v2/connection"
33
33
34
34
pbAuthenticationV1 "github.com/arangodb/kube-arangodb/integrations/authentication/v1/definition"
35
+ "github.com/arangodb/kube-arangodb/pkg/util"
35
36
"github.com/arangodb/kube-arangodb/pkg/util/cache"
36
37
"github.com/arangodb/kube-arangodb/pkg/util/errors"
37
38
operatorHTTP "github.com/arangodb/kube-arangodb/pkg/util/http"
@@ -167,11 +168,11 @@ func (d *Database) KVCollectionFromClient(clientO cache.Object[arangodb.Client],
167
168
return nil , 0 , err
168
169
}
169
170
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 {
175
176
if ! shared .IsConflict (err ) {
176
177
return nil , 0 , err
177
178
}
0 commit comments