Skip to content

Commit 7816a9c

Browse files
[Maintenance] Update go-driver version to v1.6.0 - GT-505 (#1443)
1 parent 58a3789 commit 7816a9c

File tree

13 files changed

+17
-19
lines changed

13 files changed

+17
-19
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
- (Maintenance) Make scale_down_candidate annotation obsolete
1717
- (Bugfix) Fix ResignJob ID propagation
1818
- (Bugfix) Allow shards with RF1 in EnforcedResignLeadership action
19+
- (Maintenance) Update go-driver to v1.6.0, update IsNotFound() checks
1920

2021
## [1.2.33](https://github.com/arangodb/kube-arangodb/tree/1.2.33) (2023-09-27)
2122
- (Maintenance) Bump golang.org/x/net to v0.13.0

go.mod

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ module github.com/arangodb/kube-arangodb
33
go 1.20
44

55
replace (
6-
github.com/arangodb/go-driver => github.com/arangodb/go-driver v1.2.1
76
github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring => github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring v0.46.0
87
github.com/prometheus-operator/prometheus-operator/pkg/client => github.com/prometheus-operator/prometheus-operator/pkg/client v0.46.0
98
github.com/stretchr/testify => github.com/stretchr/testify v1.5.1

go.sum

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ github.com/arangodb-helper/go-helper v0.4.2 h1:Ekf8EtPYQdhlwtqJAEn17i7zbtuavksWa
7676
github.com/arangodb-helper/go-helper v0.4.2/go.mod h1:RHgEwQTFWdJ9wFDGUCgUZzaz9NLaFUskSsHgOPM5XR4=
7777
github.com/arangodb/arangosync-client v0.9.0 h1:XhY+5gGGpl9Gk8Prqmdv0SpK3HydFUXvN2CmTIKUxKI=
7878
github.com/arangodb/arangosync-client v0.9.0/go.mod h1:kU2UaOkv2AeHLAFMEo4Ug3qLbUQVKOuRtkfr6pZqmuk=
79-
github.com/arangodb/go-driver v1.2.1 h1:HREDHhDmzdIWxHmfkfTESbYUnRjESjPh4WUuXq7FZa8=
80-
github.com/arangodb/go-driver v1.2.1/go.mod h1:zdDkJJnCj8DAkfbtIjIXnsTrWIiy6VhP3Vy14p+uQeY=
79+
github.com/arangodb/go-driver v1.6.0 h1:NFWj/idqXZxhFVueihMSI2R9NotNIsgvNfM/xmpekb4=
80+
github.com/arangodb/go-driver v1.6.0/go.mod h1:HQmdGkvNMVBTE3SIPSQ8T/ZddC6iwNsfMR+dDJQxIsI=
8181
github.com/arangodb/go-driver/v2 v2.0.0-20230616090327-3b9171814ae4 h1:LpIIPBcrbZ/mVDG2ioZN92Pbgb5HQ2Vnqj/UaQAyN4E=
8282
github.com/arangodb/go-driver/v2 v2.0.0-20230616090327-3b9171814ae4/go.mod h1:bnCd24JXOgd5rpG8uwSpHPsF6NCcH4m6rKtKh1EJ7Lo=
8383
github.com/arangodb/go-upgrade-rules v0.0.0-20180809110947-031b4774ff21 h1:+W7D5ttxi/Ygh/39vialtypE23p9KI7P0J2qtoqUV4w=
@@ -134,7 +134,6 @@ github.com/cockroachdb/errors v1.2.4/go.mod h1:rQD95gz6FARkaKkQXUksEje/d9a6wBJoC
134134
github.com/cockroachdb/logtags v0.0.0-20190617123548-eb05cc24525f/go.mod h1:i/u985jwjWRlyHXQbwatDASoW0RMlZ/3i9yJHE2xLkI=
135135
github.com/coreos/bbolt v1.3.2/go.mod h1:iRUV2dpdMOn7Bo10OQBFzIJO9kkE559Wcmn+qkEiiKk=
136136
github.com/coreos/etcd v3.3.13+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE=
137-
github.com/coreos/go-iptables v0.4.3/go.mod h1:/mVI274lEDI2ns62jHCDnCyBF9Iwsmekav8Dbxlm1MU=
138137
github.com/coreos/go-oidc v2.1.0+incompatible/go.mod h1:CgnwVTmzoESiwO9qyAFEMiHoZ1nMCKZlZ9V6mm3/LKc=
139138
github.com/coreos/go-semver v0.3.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk=
140139
github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4=
@@ -309,7 +308,6 @@ github.com/google/pprof v0.0.0-20210601050228-01bbb1931b22/go.mod h1:kpwsk12EmLe
309308
github.com/google/pprof v0.0.0-20210609004039-a478d1d731e9/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE=
310309
github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE=
311310
github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI=
312-
github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
313311
github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
314312
github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I=
315313
github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=

pkg/deployment/reconcile/action_bootstrap_set_password.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ func (a actionBootstrapSetPassword) setUserPassword(ctx context.Context, user, s
107107
ctxChild, cancel := globals.GetGlobalTimeouts().ArangoD().WithTimeout(ctx)
108108
defer cancel()
109109
if u, err := client.User(ctxChild, user); err != nil {
110-
if !driver.IsNotFound(err) {
110+
if !driver.IsNotFoundGeneral(err) {
111111
return "", err
112112
}
113113

pkg/deployment/reconcile/action_cleanout_member.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ func (a *actionCleanOutMember) Start(ctx context.Context) (bool, error) {
8181
var jobID string
8282
ctxJobID := driver.WithJobIDResponse(ctxChild, &jobID)
8383
if err := cluster.CleanOutServer(ctxJobID, a.action.MemberID); err != nil {
84-
if driver.IsNotFound(err) {
84+
if driver.IsNotFoundGeneral(err) {
8585
// Member not found, it could be that it never connected to the cluster
8686
return true, nil
8787
}

pkg/deployment/reconcile/action_remove_member.go

Lines changed: 2 additions & 2 deletions
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.
@@ -78,7 +78,7 @@ func (a *actionRemoveMember) Start(ctx context.Context) (bool, error) {
7878
ctxChild, cancel := globals.GetGlobalTimeouts().ArangoD().WithTimeout(ctx)
7979
defer cancel()
8080
if err := arangod.RemoveServerFromCluster(ctxChild, client.Connection(), driver.ServerID(m.ID)); err != nil {
81-
if !driver.IsNotFound(err) && !driver.IsPreconditionFailed(err) {
81+
if !driver.IsNotFoundGeneral(err) && !driver.IsPreconditionFailed(err) {
8282
a.log.Err(err).Str("member-id", m.ID).Error("Failed to remove server from cluster")
8383
// ignore this error, maybe all coordinators are failed and no connection to cluster is possible
8484
} else if driver.IsPreconditionFailed(err) {

pkg/handlers/backup/arango_client_impl.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ func (ac *arangoClientBackupImpl) Progress(jobID driver.BackupTransferJobID) (Ar
232232
func (ac *arangoClientBackupImpl) Exists(backupID driver.BackupID) (bool, error) {
233233
_, err := ac.Get(backupID)
234234
if err != nil {
235-
if driver.IsNotFound(err) {
235+
if driver.IsNotFoundGeneral(err) {
236236
return false, nil
237237
}
238238

pkg/handlers/backup/state_create.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ func stateCreateHandler(h *handler, backup *backupApi.ArangoBackup) (*backupApi.
4949

5050
backupMeta, err := client.Get(response.ID)
5151
if err != nil {
52-
if driver.IsNotFound(err) {
52+
if driver.IsNotFoundGeneral(err) {
5353
return wrapUpdateStatus(backup,
5454
updateStatusState(backupApi.ArangoBackupStateFailed,
5555
"backup is not present after creation"),

pkg/handlers/backup/state_downloading.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ func stateDownloadingHandler(h *handler, backup *backupApi.ArangoBackup) (*backu
5454

5555
details, err := client.Progress(driver.BackupTransferJobID(backup.Status.Progress.JobID))
5656
if err != nil {
57-
if driver.IsNotFound(err) {
57+
if driver.IsNotFoundGeneral(err) {
5858
return wrapUpdateStatus(backup,
5959
updateStatusState(backupApi.ArangoBackupStateDownloadError,
6060
"job with id %s does not exist anymore", backup.Status.Progress.JobID),
@@ -76,7 +76,7 @@ func stateDownloadingHandler(h *handler, backup *backupApi.ArangoBackup) (*backu
7676
if details.Completed {
7777
backupMeta, err := client.Get(driver.BackupID(backup.Spec.Download.ID))
7878
if err != nil {
79-
if driver.IsNotFound(err) {
79+
if driver.IsNotFoundGeneral(err) {
8080
return wrapUpdateStatus(backup,
8181
updateStatusState(backupApi.ArangoBackupStateDownloadError,
8282
"backup is not present after download"),

pkg/handlers/backup/state_ready.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ func stateReadyHandler(h *handler, backup *backupApi.ArangoBackup) (*backupApi.A
4646

4747
backupMeta, err := client.Get(driver.BackupID(backup.Status.Backup.ID))
4848
if err != nil {
49-
if driver.IsNotFound(err) {
49+
if driver.IsNotFoundGeneral(err) {
5050
return wrapUpdateStatus(backup,
5151
updateStatusState(backupApi.ArangoBackupStateDeleted, ""),
5252
updateStatusAvailable(false),

0 commit comments

Comments
 (0)