|
| 1 | +apiVersion: apiextensions.k8s.io/v1 |
| 2 | +kind: CustomResourceDefinition |
| 3 | +metadata: |
| 4 | + annotations: |
| 5 | + controller-gen.kubebuilder.io/version: v0.4.1 |
| 6 | + creationTimestamp: null |
| 7 | + labels: |
| 8 | + app.kubernetes.io/component: controller |
| 9 | + app.kubernetes.io/instance: mongodb-atlas-kubernetes-operator |
| 10 | + app.kubernetes.io/name: mongodb-atlas-kubernetes-operator |
| 11 | + name: atlasdatabaseusers.atlas.mongodb.com |
| 12 | +spec: |
| 13 | + group: atlas.mongodb.com |
| 14 | + names: |
| 15 | + kind: AtlasDatabaseUser |
| 16 | + listKind: AtlasDatabaseUserList |
| 17 | + plural: atlasdatabaseusers |
| 18 | + singular: atlasdatabaseuser |
| 19 | + scope: Namespaced |
| 20 | + versions: |
| 21 | + - additionalPrinterColumns: |
| 22 | + - jsonPath: .spec.name |
| 23 | + name: Name |
| 24 | + type: string |
| 25 | + name: v1 |
| 26 | + schema: |
| 27 | + openAPIV3Schema: |
| 28 | + description: AtlasDatabaseUser is the Schema for the Atlas Database User API |
| 29 | + properties: |
| 30 | + apiVersion: |
| 31 | + description: 'APIVersion defines the versioned schema of this representation |
| 32 | + of an object. Servers should convert recognized schemas to the latest |
| 33 | + internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' |
| 34 | + type: string |
| 35 | + kind: |
| 36 | + description: 'Kind is a string value representing the REST resource this |
| 37 | + object represents. Servers may infer this from the endpoint the client |
| 38 | + submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' |
| 39 | + type: string |
| 40 | + metadata: |
| 41 | + type: object |
| 42 | + spec: |
| 43 | + description: AtlasDatabaseUserSpec defines the desired state of Database |
| 44 | + User in Atlas |
| 45 | + properties: |
| 46 | + databaseName: |
| 47 | + default: admin |
| 48 | + description: DatabaseName is a Database against which Atlas authenticates |
| 49 | + the user. Default value is 'admin'. |
| 50 | + type: string |
| 51 | + deleteAfterDate: |
| 52 | + description: DeleteAfterDate is a timestamp in ISO 8601 date and time |
| 53 | + format in UTC after which Atlas deletes the user. The specified |
| 54 | + date must be in the future and within one week. |
| 55 | + type: string |
| 56 | + labels: |
| 57 | + description: Labels is an array containing key-value pairs that tag |
| 58 | + and categorize the database user. Each key and value has a maximum |
| 59 | + length of 255 characters. |
| 60 | + items: |
| 61 | + description: LabelSpec contains key-value pairs that tag and categorize |
| 62 | + the Cluster/DBUser |
| 63 | + properties: |
| 64 | + key: |
| 65 | + maxLength: 255 |
| 66 | + type: string |
| 67 | + value: |
| 68 | + type: string |
| 69 | + required: |
| 70 | + - key |
| 71 | + - value |
| 72 | + type: object |
| 73 | + type: array |
| 74 | + passwordSecretRef: |
| 75 | + description: PasswordSecret is a reference to the Secret keeping the |
| 76 | + user password. |
| 77 | + properties: |
| 78 | + name: |
| 79 | + description: Name is the name of the Kubernetes Resource |
| 80 | + type: string |
| 81 | + required: |
| 82 | + - name |
| 83 | + type: object |
| 84 | + projectRef: |
| 85 | + description: Project is a reference to AtlasProject resource the user |
| 86 | + belongs to |
| 87 | + properties: |
| 88 | + name: |
| 89 | + description: Name is the name of the Kubernetes Resource |
| 90 | + type: string |
| 91 | + namespace: |
| 92 | + description: Namespace is the namespace of the Kubernetes Resource |
| 93 | + type: string |
| 94 | + required: |
| 95 | + - name |
| 96 | + type: object |
| 97 | + roles: |
| 98 | + description: Roles is an array of this user's roles and the databases |
| 99 | + / collections on which the roles apply. A role allows the user to |
| 100 | + perform particular actions on the specified database. |
| 101 | + items: |
| 102 | + description: RoleSpec allows the user to perform particular actions |
| 103 | + on the specified database. A role on the admin database can include |
| 104 | + privileges that apply to the other databases as well. |
| 105 | + properties: |
| 106 | + collectionName: |
| 107 | + description: CollectionName is a collection for which the role |
| 108 | + applies. |
| 109 | + type: string |
| 110 | + databaseName: |
| 111 | + description: DatabaseName is a database on which the user has |
| 112 | + the specified role. A role on the admin database can include |
| 113 | + privileges that apply to the other databases. |
| 114 | + type: string |
| 115 | + roleName: |
| 116 | + description: RoleName is a name of the role. This value can |
| 117 | + either be a built-in role or a custom role. |
| 118 | + type: string |
| 119 | + required: |
| 120 | + - databaseName |
| 121 | + - roleName |
| 122 | + type: object |
| 123 | + minItems: 1 |
| 124 | + type: array |
| 125 | + scopes: |
| 126 | + description: Scopes is an array of clusters and Atlas Data Lakes that |
| 127 | + this user has access to. |
| 128 | + items: |
| 129 | + description: ScopeSpec if present a database user only have access |
| 130 | + to the indicated resource (Cluster or Atlas Data Lake) if none |
| 131 | + is given then it has access to all. It's highly recommended to |
| 132 | + restrict the access of the database users only to a limited set |
| 133 | + of resources. |
| 134 | + properties: |
| 135 | + name: |
| 136 | + description: Name is a name of the cluster or Atlas Data Lake |
| 137 | + that the user has access to. |
| 138 | + type: string |
| 139 | + type: |
| 140 | + description: Type is a type of resource that the user has access |
| 141 | + to. |
| 142 | + enum: |
| 143 | + - CLUSTER |
| 144 | + - DATA_LAKE |
| 145 | + type: string |
| 146 | + required: |
| 147 | + - name |
| 148 | + - type |
| 149 | + type: object |
| 150 | + type: array |
| 151 | + username: |
| 152 | + description: Username is a username for authenticating to MongoDB. |
| 153 | + type: string |
| 154 | + x509Type: |
| 155 | + description: X509Type is X.509 method by which the database authenticates |
| 156 | + the provided username |
| 157 | + type: string |
| 158 | + required: |
| 159 | + - projectRef |
| 160 | + - roles |
| 161 | + - username |
| 162 | + type: object |
| 163 | + status: |
| 164 | + description: AtlasDatabaseUserStatus defines the observed state of AtlasProject |
| 165 | + properties: |
| 166 | + conditions: |
| 167 | + description: Conditions is the list of statuses showing the current |
| 168 | + state of the Atlas Custom Resource |
| 169 | + items: |
| 170 | + description: Condition describes the state of an Atlas Custom Resource |
| 171 | + at a certain point. |
| 172 | + properties: |
| 173 | + lastTransitionTime: |
| 174 | + description: Last time the condition transitioned from one status |
| 175 | + to another. |
| 176 | + format: date-time |
| 177 | + type: string |
| 178 | + message: |
| 179 | + description: A human readable message indicating details about |
| 180 | + the transition. |
| 181 | + type: string |
| 182 | + reason: |
| 183 | + description: The reason for the condition's last transition. |
| 184 | + type: string |
| 185 | + status: |
| 186 | + description: Status of the condition, one of True, False, Unknown. |
| 187 | + type: string |
| 188 | + type: |
| 189 | + description: Type of Atlas Custom Resource condition. |
| 190 | + type: string |
| 191 | + required: |
| 192 | + - status |
| 193 | + - type |
| 194 | + type: object |
| 195 | + type: array |
| 196 | + name: |
| 197 | + description: UserName is the current name of database user. |
| 198 | + type: string |
| 199 | + observedGeneration: |
| 200 | + description: ObservedGeneration indicates the generation of the resource |
| 201 | + specification that the Atlas Operator is aware of. The Atlas Operator |
| 202 | + updates this field to the 'metadata.generation' as soon as it starts |
| 203 | + reconciliation of the resource. |
| 204 | + format: int64 |
| 205 | + type: integer |
| 206 | + passwordVersion: |
| 207 | + description: PasswordVersion is the 'ResourceVersion' of the password |
| 208 | + Secret that the Atlas Operator is aware of |
| 209 | + type: string |
| 210 | + required: |
| 211 | + - conditions |
| 212 | + type: object |
| 213 | + type: object |
| 214 | + served: true |
| 215 | + storage: true |
| 216 | + subresources: |
| 217 | + status: {} |
| 218 | +status: |
| 219 | + acceptedNames: |
| 220 | + kind: "" |
| 221 | + plural: "" |
| 222 | + conditions: [] |
| 223 | + storedVersions: [] |
0 commit comments