diff --git a/charts/atlas-operator-crds/Chart.yaml b/charts/atlas-operator-crds/Chart.yaml index fee19224..eec15fae 100644 --- a/charts/atlas-operator-crds/Chart.yaml +++ b/charts/atlas-operator-crds/Chart.yaml @@ -2,8 +2,8 @@ apiVersion: v2 name: mongodb-atlas-operator-crds description: MongoDB Atlas Operator CRDs - Helm chart for installing and upgrading Custom Resource Definitions (CRDs) for the Atlas Operator. type: application -version: 2.4.1 -appVersion: 2.4.1 +version: 2.5.0 +appVersion: 2.5.0 kubeVersion: ">=1.15.0-0" keywords: - mongodb diff --git a/charts/atlas-operator-crds/templates/atlas.mongodb.com_atlasbackupcompliancepolicies.yaml b/charts/atlas-operator-crds/templates/atlas.mongodb.com_atlasbackupcompliancepolicies.yaml index 868fbbc9..39173fef 100644 --- a/charts/atlas-operator-crds/templates/atlas.mongodb.com_atlasbackupcompliancepolicies.yaml +++ b/charts/atlas-operator-crds/templates/atlas.mongodb.com_atlasbackupcompliancepolicies.yaml @@ -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 diff --git a/charts/atlas-operator-crds/templates/atlas.mongodb.com_atlasbackuppolicies.yaml b/charts/atlas-operator-crds/templates/atlas.mongodb.com_atlasbackuppolicies.yaml index 98590774..1d2a2206 100644 --- a/charts/atlas-operator-crds/templates/atlas.mongodb.com_atlasbackuppolicies.yaml +++ b/charts/atlas-operator-crds/templates/atlas.mongodb.com_atlasbackuppolicies.yaml @@ -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 diff --git a/charts/atlas-operator-crds/templates/atlas.mongodb.com_atlasbackupschedules.yaml b/charts/atlas-operator-crds/templates/atlas.mongodb.com_atlasbackupschedules.yaml index 22ed85e5..f6fd4fe9 100644 --- a/charts/atlas-operator-crds/templates/atlas.mongodb.com_atlasbackupschedules.yaml +++ b/charts/atlas-operator-crds/templates/atlas.mongodb.com_atlasbackupschedules.yaml @@ -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 diff --git a/charts/atlas-operator-crds/templates/atlas.mongodb.com_atlasdatabaseusers.yaml b/charts/atlas-operator-crds/templates/atlas.mongodb.com_atlasdatabaseusers.yaml index 9a09a879..7a73c9c8 100644 --- a/charts/atlas-operator-crds/templates/atlas.mongodb.com_atlasdatabaseusers.yaml +++ b/charts/atlas-operator-crds/templates/atlas.mongodb.com_atlasdatabaseusers.yaml @@ -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 @@ -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 @@ -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. @@ -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: diff --git a/charts/atlas-operator-crds/templates/atlas.mongodb.com_atlasdatafederations.yaml b/charts/atlas-operator-crds/templates/atlas.mongodb.com_atlasdatafederations.yaml index 84141161..8aca6ad4 100644 --- a/charts/atlas-operator-crds/templates/atlas.mongodb.com_atlasdatafederations.yaml +++ b/charts/atlas-operator-crds/templates/atlas.mongodb.com_atlasdatafederations.yaml @@ -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 diff --git a/charts/atlas-operator-crds/templates/atlas.mongodb.com_atlasdeployments.yaml b/charts/atlas-operator-crds/templates/atlas.mongodb.com_atlasdeployments.yaml index 2f5ff940..6d66f01d 100644 --- a/charts/atlas-operator-crds/templates/atlas.mongodb.com_atlasdeployments.yaml +++ b/charts/atlas-operator-crds/templates/atlas.mongodb.com_atlasdeployments.yaml @@ -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 @@ -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/ @@ -517,6 +529,7 @@ spec: type: object type: array required: + - mappings - searchConfigurationRef type: object type: @@ -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: @@ -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 @@ -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: @@ -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 diff --git a/charts/atlas-operator-crds/templates/atlas.mongodb.com_atlasfederatedauths.yaml b/charts/atlas-operator-crds/templates/atlas.mongodb.com_atlasfederatedauths.yaml index a0f38e90..f4ee62ae 100644 --- a/charts/atlas-operator-crds/templates/atlas.mongodb.com_atlasfederatedauths.yaml +++ b/charts/atlas-operator-crds/templates/atlas.mongodb.com_atlasfederatedauths.yaml @@ -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 diff --git a/charts/atlas-operator-crds/templates/atlas.mongodb.com_atlasprojects.yaml b/charts/atlas-operator-crds/templates/atlas.mongodb.com_atlasprojects.yaml index 77c8ac8a..953835a9 100644 --- a/charts/atlas-operator-crds/templates/atlas.mongodb.com_atlasprojects.yaml +++ b/charts/atlas-operator-crds/templates/atlas.mongodb.com_atlasprojects.yaml @@ -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 diff --git a/charts/atlas-operator-crds/templates/atlas.mongodb.com_atlassearchindexconfigs.yaml b/charts/atlas-operator-crds/templates/atlas.mongodb.com_atlassearchindexconfigs.yaml index 470bdbff..2e659045 100644 --- a/charts/atlas-operator-crds/templates/atlas.mongodb.com_atlassearchindexconfigs.yaml +++ b/charts/atlas-operator-crds/templates/atlas.mongodb.com_atlassearchindexconfigs.yaml @@ -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 @@ -168,6 +168,8 @@ spec: - keyword - edgeGram type: string + required: + - type type: object required: - name diff --git a/charts/atlas-operator-crds/templates/atlas.mongodb.com_atlasstreamconnections.yaml b/charts/atlas-operator-crds/templates/atlas.mongodb.com_atlasstreamconnections.yaml index 458d1c81..b28c8f31 100644 --- a/charts/atlas-operator-crds/templates/atlas.mongodb.com_atlasstreamconnections.yaml +++ b/charts/atlas-operator-crds/templates/atlas.mongodb.com_atlasstreamconnections.yaml @@ -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 diff --git a/charts/atlas-operator-crds/templates/atlas.mongodb.com_atlasstreaminstances.yaml b/charts/atlas-operator-crds/templates/atlas.mongodb.com_atlasstreaminstances.yaml index df07c57a..c505075f 100644 --- a/charts/atlas-operator-crds/templates/atlas.mongodb.com_atlasstreaminstances.yaml +++ b/charts/atlas-operator-crds/templates/atlas.mongodb.com_atlasstreaminstances.yaml @@ -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 diff --git a/charts/atlas-operator-crds/templates/atlas.mongodb.com_atlasteams.yaml b/charts/atlas-operator-crds/templates/atlas.mongodb.com_atlasteams.yaml index c1683d2c..70d3b8c6 100644 --- a/charts/atlas-operator-crds/templates/atlas.mongodb.com_atlasteams.yaml +++ b/charts/atlas-operator-crds/templates/atlas.mongodb.com_atlasteams.yaml @@ -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 diff --git a/charts/atlas-operator/Chart.yaml b/charts/atlas-operator/Chart.yaml index dbb79a63..10c18d40 100644 --- a/charts/atlas-operator/Chart.yaml +++ b/charts/atlas-operator/Chart.yaml @@ -3,8 +3,8 @@ name: mongodb-atlas-operator description: |- MongoDB Atlas Operator - a Helm chart for installing and upgrading Atlas Operator: the official Kubernetes operator allowing to manage MongoDB Atlas resources from Kubernetes type: application -version: 2.4.1 -appVersion: 2.4.1 +version: 2.5.0 +appVersion: 2.5.0 kubeVersion: ">=1.15.0-0" keywords: - mongodb @@ -19,6 +19,6 @@ maintainers: email: support@mongodb.com dependencies: - name: mongodb-atlas-operator-crds - version: "2.4.1" + version: "2.5.0" repository: "https://mongodb.github.io/helm-charts" condition: mongodb-atlas-operator-crds.enabled