The AtlasOrgSettings custom resource allows you to modify settings for a specific organization.
Important
Custom Resources No Longer Delete Objects by Default
Atlas Kubernetes Operator uses custom resource configuration files to manage your Atlas configuration, but as of Atlas Kubernetes Operator 2.0, custom resources you delete in Kubernetes are no longer (by default) deleted in Atlas. Instead, Atlas Kubernetes Operator simply stops managing those resources in Atlas. For example, if you delete an
AtlasProjectCustom Resource in Kubernetes, by default the Atlas Kubernetes Operator no longer automatically deletes the corresponding project from Atlas. This change in behavior is intended to help prevent accidental or unexpected deletions. To learn more, including how to revert this behavior to the default used prior to Atlas Kubernetes Operator 2.0, see New Default: Deletion Protection in Atlas Kubernetes Operator 2.0.Similarly, Atlas Kubernetes Operator does not delete teams from Atlas if you remove them from an Atlas project in Kubernetes with the Atlas Kubernetes Operator.
Explicitly define your desired configuration details in order to avoid implicitly using default Atlas configuration values. In some cases, inheriting Atlas defaults may result in a reconciliation loop which can prevent your custom resource from achieving a
READYstate. For example, explicitly defining your desired autoscaling behavior in yourAtlasDeploymentcustom resource, as shown in the included example, ensures that a static instance size in your custom resource is not being repeatedly applied to an Atlas deployment which has autoscaling enabled.autoScaling: diskGB: enabled: true compute: enabled: true scaleDownEnabled: true minInstanceSize: M30 maxInstanceSize: M40
Example
The following example shows an AtlasOrgSettings custom resource:
apiVersion: atlas.mongodb.com/v1 kind: AtlasOrgSettings metadata: name: my-org-settings namespace: mongodb-atlas-system spec: orgID: "455aff84aca055313451234c" connectionSecretRef: name: my-org-connection-secret apiAccessListRequired: true genAIFeaturesEnabled: true maxServiceAccountSecretValidityInHours: 42 multiFactorAuthRequired: true restrictEmployeeAccess": true securityContact": "test@example.com" streamsCrossGroupEnabled": true
Parameters
AtlasOrgSettings
Name | Type | Description | Required |
|---|---|---|---|
| string | atlas.mongodb.com/v1 | true |
| string |
| true |
| object | Refer to the Kubernetes | true |
| object |
| false |
| object |
| false |
AtlasOrgSettings.spec
AtlasOrgSettingsSpec defines the desired state of AtlasOrgSettings.
Name | Type | Description | Required |
|---|---|---|---|
| string |
| true |
| boolean |
| false |
| object |
| false |
| boolean |
| false |
| integer |
| false |
| boolean |
| false |
| boolean |
| false |
| string |
| false |
| boolean |
| false |
AtlasOrgSettings.spec.connectionSecretRef
ConnectionSecretRef is the name of the Kubernetes Secret which contains the information about the way to connect to Atlas (Public & Private API keys).
Name | Type | Description | Required |
|---|---|---|---|
| string | Name of the resource being referred to More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names | true |
AtlasOrgSettings.status
AtlasOrgSettingsStatus defines the observed state of AtlasOrgSettings.
Name | Type | Description | Required |
|---|---|---|---|
| []object | Conditions holding the status details | false |
AtlasOrgSettings.status.conditions
Condition contains details for one aspect of the current state of this API Resource.
Name | Type | Description | Required |
|---|---|---|---|
| string |
| true |
| string | message is a human readable | true |
| string | reason contains a programmatic identifier indicating the | true |
| enum | status of the condition, one of True, False, Unknown. Enum: True, False, Unknown | true |
| string | type of condition in | true |
| integer |
| false |