Commit 9652abd
authored
DB User Translation Layer & SDK migration (#1543)
* PoC dbuser translation layer
* Move translation layer to a package
Signed-off-by: jose.vazquez <jose.vazquez@mongodb.com>
* Migrate translation later to new SDK
* Make translation function names consistent
* Fix e2e tests
Signed-off-by: jose.vazquez <jose.vazquez@mongodb.com>
* Convert To/FromAtlas
* Do not send password unless set
* Fix clusterwide int test
Signed-off-by: jose.vazquez <jose.vazquez@mongodb.com>
* Clean e2e tests
* Fix typo in action
Signed-off-by: jose.vazquez <jose.vazquez@mongodb.com>
* Fix empty value pointers to be nil
* Fix the dateFromAtlas translation
Signed-off-by: jose.vazquez <jose.vazquez@mongodb.com>
* Mark user tests to debug better
* Fix performUpdateInAtlas
* Add ListClusterDeploymentNames
* Fix comparison normalization
Signed-off-by: jose.vazquez <jose.vazquez@mongodb.com>
* Add TODO comment
* Interface renames & refactors
* Use translation and pointer
Signed-off-by: jose.vazquez <jose.vazquez@mongodb.com>
* Rename to ServerURL
* Use diffs instead
* Correct comparison logic with diffs
Signed-off-by: jose.vazquez <jose.vazquez@mongodb.com>
* Test clusterwide with local int tests
Signed-off-by: jose.vazquez <jose.vazquez@mongodb.com>
* Fix normalization
Signed-off-by: jose.vazquez <jose.vazquez@mongodb.com>
* Use common normalization code
* Specifically run int tests AND wide int tests
* Link TODO to follow up ticket CLOUDP-253951
* Avoid explicit enum normalizations already enforced by kube
* Fix error returns and cleanup unneeded code
* Add deletion unit tests
Signed-off-by: jose.vazquez <jose.vazquez@mongodb.com>
* Cover databaseuser changes with unit tests
* Added NewUser and DiffSpecs unit tests
* Add dbuser tests
Signed-off-by: jose.vazquez <jose.vazquez@mongodb.com>
* Fix and simplify diff into equals
Signed-off-by: jose.vazquez <jose.vazquez@mongodb.com>
* Clear refs from spec before comparison
* Clear debugging traces
---------
Signed-off-by: jose.vazquez <jose.vazquez@mongodb.com>1 parent 367ccd2 commit 9652abd
File tree
29 files changed
+2193
-185
lines changed- internal
- cmp
- mocks/translation
- translation
- dbuser
- deployment
- pkg
- api/v1
- controller
- atlasdatabaseuser
- atlasproject
- connectionsecret
- scripts
- test/int
- clusterwide
29 files changed
+2193
-185
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
203 | 203 | | |
204 | 204 | | |
205 | 205 | | |
| 206 | + | |
| 207 | + | |
206 | 208 | | |
207 | 209 | | |
208 | 210 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments