Skip to content

Commit

Permalink
datafederation: switch to versioned SDK, add translation layer (#1835)
Browse files Browse the repository at this point in the history
  • Loading branch information
s-urbaniak authored Nov 3, 2024
1 parent e8233e4 commit b83dbed
Show file tree
Hide file tree
Showing 23 changed files with 1,372 additions and 322 deletions.
2 changes: 1 addition & 1 deletion .licenses-gomod.sha256
Original file line number Diff line number Diff line change
@@ -1 +1 @@
100644 b0aa86d2e7007d35deadc3f5a230e6ae6795e63e go.mod
100644 eebc1d45861288f3d533cf011a65dfd4c822945a go.mod
1 change: 1 addition & 0 deletions .mockery.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ packages:
github.com/mongodb/mongodb-atlas-kubernetes/v2/internal/translation/dbuser:
github.com/mongodb/mongodb-atlas-kubernetes/v2/internal/translation/deployment:
github.com/mongodb/mongodb-atlas-kubernetes/v2/internal/translation/customroles:
github.com/mongodb/mongodb-atlas-kubernetes/v2/internal/translation/datafederation:
github.com/mongodb/mongodb-atlas-kubernetes/v2/internal/translation/teams:
47 changes: 47 additions & 0 deletions config/crd/bases/atlas.mongodb.com_atlasdatafederations.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,16 @@ spec:
privateEndpoints:
items:
properties:
comment:
type: string
customerEndpointDNSName:
type: string
endpointId:
type: string
provider:
type: string
region:
type: string
type:
type: string
type: object
Expand All @@ -105,6 +111,8 @@ spec:
required:
- name
type: object
skipRoleValidation:
type: boolean
storage:
properties:
databases:
Expand All @@ -126,6 +134,10 @@ spec:
type: string
databaseRegex:
type: string
datasetName:
type: string
datasetPrefix:
type: string
defaultFormat:
enum:
- .avro
Expand Down Expand Up @@ -153,6 +165,8 @@ spec:
type: string
storeName:
type: string
trimLevel:
type: integer
urls:
items:
type: string
Expand Down Expand Up @@ -187,8 +201,14 @@ spec:
items:
type: string
type: array
allowInsecure:
type: boolean
bucket:
type: string
clusterName:
type: string
defaultFormat:
type: string
delimiter:
type: string
includeTags:
Expand All @@ -201,8 +221,35 @@ spec:
type: string
public:
type: boolean
readConcern:
properties:
level:
type: string
type: object
readPreference:
properties:
maxStalenessSeconds:
type: integer
mode:
type: string
tagSets:
items:
items:
properties:
name:
type: string
value:
type: string
type: object
type: array
type: array
type: object
region:
type: string
urls:
items:
type: string
type: array
type: object
type: array
type: object
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ require (
github.com/golang/protobuf v1.5.4 // indirect
github.com/golang/snappy v0.0.4 // indirect
github.com/google/go-querystring v1.1.0 // indirect
github.com/google/gofuzz v1.2.0 // indirect
github.com/google/gofuzz v1.2.0
github.com/googleapis/enterprise-certificate-proxy v0.3.4 // indirect
github.com/googleapis/gax-go/v2 v2.13.0 // indirect
github.com/imdario/mergo v0.3.12 // indirect
Expand Down
240 changes: 240 additions & 0 deletions internal/mocks/translation/data_federation_service.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit b83dbed

Please sign in to comment.