Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.14.0
controller-gen.kubebuilder.io/version: v0.16.1
creationTimestamp: null
labels:
app.kubernetes.io/component: controller
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.14.0
controller-gen.kubebuilder.io/version: v0.16.1
creationTimestamp: null
labels:
app.kubernetes.io/component: controller
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.14.0
controller-gen.kubebuilder.io/version: v0.16.1
creationTimestamp: null
labels:
app.kubernetes.io/component: controller
Expand Down
34 changes: 32 additions & 2 deletions bundle/manifests/atlas.mongodb.com_atlasdatabaseusers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.14.0
controller-gen.kubebuilder.io/version: v0.16.1
creationTimestamp: null
labels:
app.kubernetes.io/component: controller
Expand Down Expand Up @@ -70,6 +70,18 @@ spec:
- USER
- ROLE
type: string
connectionSecret:
description: LocalObjectReference is a reference to an object in the
same namespace as the referent
properties:
name:
description: |-
Name of the resource being referred to
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
type: string
required:
- name
type: object
databaseName:
default: admin
description: DatabaseName is a Database against which Atlas authenticates
Expand All @@ -80,6 +92,16 @@ spec:
DeleteAfterDate is a timestamp in ISO 8601 date and time format in UTC after which Atlas deletes the user.
The specified date must be in the future and within one week.
type: string
externalProjectRef:
description: ExternalProjectRef holds the Atlas project ID the user
belongs to
properties:
id:
description: ID is the Atlas project ID
type: string
required:
- id
type: object
labels:
description: |-
Labels is an array containing key-value pairs that tag and categorize the database user.
Expand Down Expand Up @@ -204,10 +226,18 @@ spec:
- CUSTOMER
type: string
required:
- projectRef
- roles
- username
type: object
x-kubernetes-validations:
- message: must define only one project reference through externalProjectRef
or projectRef
rule: (has(self.externalProjectRef) && !has(self.projectRef)) || (!has(self.externalProjectRef)
&& has(self.projectRef))
- message: must define a local connection secret when referencing an external
project
rule: (has(self.externalProjectRef) && has(self.connectionSecret)) ||
!has(self.externalProjectRef)
status:
description: AtlasDatabaseUserStatus defines the observed state of AtlasProject
properties:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.14.0
controller-gen.kubebuilder.io/version: v0.16.1
creationTimestamp: null
labels:
app.kubernetes.io/component: controller
Expand Down
46 changes: 40 additions & 6 deletions bundle/manifests/atlas.mongodb.com_atlasdeployments.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.14.0
controller-gen.kubebuilder.io/version: v0.16.1
creationTimestamp: null
labels:
app.kubernetes.io/component: controller
Expand Down Expand Up @@ -71,6 +71,18 @@ spec:
required:
- name
type: object
connectionSecret:
description: LocalObjectReference is a reference to an object in the
same namespace as the referent
properties:
name:
description: |-
Name of the resource being referred to
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
type: string
required:
- name
type: object
deploymentSpec:
description: Configuration for the advanced (v1.5) deployment API
https://www.mongodb.com/docs/atlas/reference/api/clusters/
Expand Down Expand Up @@ -517,6 +529,7 @@ spec:
type: object
type: array
required:
- mappings
- searchConfigurationRef
type: object
type:
Expand All @@ -531,11 +544,14 @@ spec:
fields:
description: Array of JSON objects. See examples https://dochub.mongodb.org/core/avs-vector-type
x-kubernetes-preserve-unknown-fields: true
required:
- fields
type: object
required:
- DBName
- collectionName
- name
- type
type: object
type: array
searchNodes:
Expand Down Expand Up @@ -602,6 +618,18 @@ spec:
type: boolean
versionReleaseSystem:
type: string
required:
- name
type: object
externalProjectRef:
description: ExternalProjectRef holds the Atlas project ID the user
belongs to
properties:
id:
description: ID is the Atlas project ID
type: string
required:
- id
type: object
processArgs:
description: ProcessArgs allows to modify Advanced Configuration Options
Expand Down Expand Up @@ -820,9 +848,16 @@ spec:
- name
- providerSettings
type: object
required:
- projectRef
type: object
x-kubernetes-validations:
- message: must define only one project reference through externalProjectRef
or projectRef
rule: (has(self.externalProjectRef) && !has(self.projectRef)) || (!has(self.externalProjectRef)
&& has(self.projectRef))
- message: must define a local connection secret when referencing an external
project
rule: (has(self.externalProjectRef) && has(self.connectionSecret)) ||
!has(self.externalProjectRef)
status:
description: AtlasDeploymentStatus defines the observed state of AtlasDeployment.
properties:
Expand Down Expand Up @@ -909,17 +944,16 @@ spec:
description: Private-endpoint-aware mongodb+srv:// connection
string for this private endpoint.
type: string
srvShardOptimizedConnectionString:
type: string
type:
description: |-
Type of MongoDB process that you connect to with the connection strings


Atlas returns:


• MONGOD for replica sets, or


• MONGOS for sharded clusters
type: string
type: object
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.14.0
controller-gen.kubebuilder.io/version: v0.16.1
creationTimestamp: null
labels:
app.kubernetes.io/component: controller
Expand Down
2 changes: 1 addition & 1 deletion bundle/manifests/atlas.mongodb.com_atlasprojects.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.14.0
controller-gen.kubebuilder.io/version: v0.16.1
creationTimestamp: null
labels:
app.kubernetes.io/component: controller
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.14.0
controller-gen.kubebuilder.io/version: v0.16.1
creationTimestamp: null
labels:
app.kubernetes.io/component: controller
Expand Down Expand Up @@ -168,6 +168,8 @@ spec:
- keyword
- edgeGram
type: string
required:
- type
type: object
required:
- name
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.14.0
controller-gen.kubebuilder.io/version: v0.16.1
creationTimestamp: null
labels:
app.kubernetes.io/component: controller
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.14.0
controller-gen.kubebuilder.io/version: v0.16.1
creationTimestamp: null
labels:
app.kubernetes.io/component: controller
Expand Down
2 changes: 1 addition & 1 deletion bundle/manifests/atlas.mongodb.com_atlasteams.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.14.0
controller-gen.kubebuilder.io/version: v0.16.1
creationTimestamp: null
labels:
app.kubernetes.io/component: controller
Expand Down
Loading