Skip to content

Commit bd44c6b

Browse files
authored
Revert "DB User Translation Layer & SDK migration (#1543)" (#1687)
This reverts commit 5e59fdc.
1 parent 9652abd commit bd44c6b

29 files changed

+185
-2193
lines changed

.licenses-gomod.sha256

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
100644 c73f2c61e23f551b04db496892f2d197c1325d38 go.mod
1+
100644 00dda197f010caa332e89410c3ffee1369343795 go.mod

.mockery.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,3 @@ mockname: "{{.InterfaceName}}Mock"
77
all: true
88
packages:
99
github.com/mongodb/mongodb-atlas-kubernetes/v2/internal/translation/ipaccesslist:
10-
github.com/mongodb/mongodb-atlas-kubernetes/v2/internal/translation/dbuser:
11-
github.com/mongodb/mongodb-atlas-kubernetes/v2/internal/translation/deployment:

go.mod

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ require (
2121
github.com/google/go-cmp v0.6.0
2222
github.com/google/uuid v1.6.0
2323
github.com/mongodb-forks/digest v1.1.0
24-
github.com/nsf/jsondiff v0.0.0-20230430225905-43f6cf3098c1
2524
github.com/onsi/ginkgo/v2 v2.19.0
2625
github.com/onsi/gomega v1.33.1
2726
github.com/sethvargo/go-password v0.3.1

go.sum

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,8 +203,6 @@ github.com/montanaflynn/stats v0.7.1 h1:etflOAAHORrCC44V+aR6Ftzort912ZU+YLiSTuV8
203203
github.com/montanaflynn/stats v0.7.1/go.mod h1:etXPPgVO6n31NxCd9KQUMvCM+ve0ruNzt6R8Bnaayow=
204204
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 h1:C3w9PqII01/Oq1c1nUAm88MOHcQC9l5mIlSMApZMrHA=
205205
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822/go.mod h1:+n7T8mK8HuQTcFwEeznm/DIxMOiR9yIdICNftLE1DvQ=
206-
github.com/nsf/jsondiff v0.0.0-20230430225905-43f6cf3098c1 h1:dOYG7LS/WK00RWZc8XGgcUTlTxpp3mKhdR2Q9z9HbXM=
207-
github.com/nsf/jsondiff v0.0.0-20230430225905-43f6cf3098c1/go.mod h1:mpRZBD8SJ55OIICQ3iWH0Yz3cjzA61JdqMLoWXeB2+8=
208206
github.com/onsi/ginkgo/v2 v2.19.0 h1:9Cnnf7UHo57Hy3k6/m5k3dRfGTMXGvxhHFvkDTCTpvA=
209207
github.com/onsi/ginkgo/v2 v2.19.0/go.mod h1:rlwLi9PilAFJ8jCg9UE1QP6VBpd6/xj3SRC0d6TU0To=
210208
github.com/onsi/gomega v1.33.1 h1:dsYjIxxSR755MDmKVsaFQTE22ChNBcuuTWgkUDSubOk=

internal/cmp/normalize.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ func NormalizeSlice[S ~[]E, E any](slice S, cmp func(a, b E) int) S {
2929
if len(slice) == 0 {
3030
return nil
3131
}
32-
slices.SortStableFunc(slice, cmp)
32+
slices.SortFunc(slice, cmp)
3333
return slice
3434
}
3535

internal/cmp/sort.go

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,3 @@ func marshalJSON[T any](obj T) (string, error) {
4949
}
5050
return string(jObj), nil
5151
}
52-
53-
func JSON[T any](obj T) []byte {
54-
jObj, err := json.MarshalIndent(obj, " ", " ")
55-
if err != nil {
56-
return ([]byte)(err.Error())
57-
}
58-
return jObj
59-
}
60-
61-
func JSONize[T any](obj T) string {
62-
return string(JSON(obj))
63-
}

internal/mocks/translation/atlas_deployments_service.go

Lines changed: 0 additions & 272 deletions
This file was deleted.

0 commit comments

Comments
 (0)