diff --git a/.github/actions/build-push-image/action.yaml b/.github/actions/build-push-image/action.yaml index 8aaa6b84aa..ccc9f5b802 100644 --- a/.github/actions/build-push-image/action.yaml +++ b/.github/actions/build-push-image/action.yaml @@ -81,7 +81,7 @@ runs: path: | ~/.cache/go-build ~/go/pkg/mod - key: ${{ runner.os }}-build-${{ hashFiles('**/go.sum') }} + key: ${{ runner.os }}-build-${{ hashFiles('**/go.sum', '**/go.mod') }} - name: Download go build dependencies shell: bash run: | diff --git a/.github/actions/gen-install-scripts/Dockerfile b/.github/actions/gen-install-scripts/Dockerfile index d3a91db09d..f1b56c39e3 100644 --- a/.github/actions/gen-install-scripts/Dockerfile +++ b/.github/actions/gen-install-scripts/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.21 +FROM golang:1.22 ENV KUBECTL_VERSION 1.18.12 ENV GO111MODULE on @@ -15,7 +15,7 @@ RUN cd /usr/local/bin &&\ RUN CONTROLLER_GEN_TMP_DIR=$(mktemp -d) && \ cd $CONTROLLER_GEN_TMP_DIR && \ go mod init tmp && \ - go install sigs.k8s.io/controller-tools/cmd/controller-gen@v0.9.2 && \ + go install sigs.k8s.io/controller-tools/cmd/controller-gen@v0.14.0 && \ rm -rf $CONTROLLER_GEN_TMP_DIR && \ CONTROLLER_GEN=${GOBIN}/controller-gen diff --git a/.github/workflows/check-licenses.yml b/.github/workflows/check-licenses.yml index f1bee70069..b8627943fa 100644 --- a/.github/workflows/check-licenses.yml +++ b/.github/workflows/check-licenses.yml @@ -18,7 +18,7 @@ jobs: path: | ~/.cache/go-build ~/go/pkg/mod - key: ${{ runner.os }}-build-${{ hashFiles('**/go.sum') }} + key: ${{ runner.os }}-build-${{ hashFiles('**/go.sum', '**/go.mod') }} - name: Setup Go uses: actions/setup-go@v5 diff --git a/.github/workflows/rebuild-released-images.yaml b/.github/workflows/rebuild-released-images.yaml index f89a3cd858..5b2909bba6 100644 --- a/.github/workflows/rebuild-released-images.yaml +++ b/.github/workflows/rebuild-released-images.yaml @@ -89,7 +89,7 @@ jobs: path: | ~/.cache/go-build ~/go/pkg/mod - key: ${{ runner.os }}-build-${{ hashFiles('**/go.sum') }} + key: ${{ runner.os }}-build-${{ hashFiles('**/go.sum', '**/go.mod') }} - name: Download go build dependencies shell: bash run: | diff --git a/.github/workflows/test-e2e.yml b/.github/workflows/test-e2e.yml index cbe72aaabb..936bc8866d 100644 --- a/.github/workflows/test-e2e.yml +++ b/.github/workflows/test-e2e.yml @@ -92,7 +92,7 @@ jobs: path: | ~/.cache/go-build ~/go/pkg/mod - key: ${{ runner.os }}-go-full-${{ hashFiles('**/go.sum') }} + key: ${{ runner.os }}-go-full-${{ hashFiles('**/go.sum', '**/go.mod') }} - name: Get go dependencies if cache is missed if: steps.cache-go.outputs.cache-hit != 'true' run: | @@ -180,7 +180,7 @@ jobs: path: | ~/.cache/go-build ~/go/pkg/mod - key: ${{ runner.os }}-go-full-${{ hashFiles('**/go.sum') }} + key: ${{ runner.os }}-go-full-${{ hashFiles('**/go.sum', '**/go.mod') }} - name: Get go dependencies if cache is missed if: steps.get-go-deps.outputs.cache-hit != 'true' run: | diff --git a/.github/workflows/test-int.yml b/.github/workflows/test-int.yml index 26dcd84cd8..339223227b 100644 --- a/.github/workflows/test-int.yml +++ b/.github/workflows/test-int.yml @@ -44,7 +44,7 @@ jobs: path: | ~/.cache/go-build ~/go/pkg/mod - key: ${{ runner.os }}-build-${{ hashFiles('**/go.sum') }} + key: ${{ runner.os }}-build-${{ hashFiles('**/go.sum', '**/go.mod') }} - name: Setup Go uses: actions/setup-go@v5 with: diff --git a/.github/workflows/test-unit.yml b/.github/workflows/test-unit.yml index 0c46f2a1fc..d8edf6b716 100644 --- a/.github/workflows/test-unit.yml +++ b/.github/workflows/test-unit.yml @@ -18,7 +18,7 @@ jobs: path: | ~/.cache/go-build ~/go/pkg/mod - key: ${{ runner.os }}-build-${{ hashFiles('**/go.sum') }} + key: ${{ runner.os }}-build-${{ hashFiles('**/go.sum', '**/go.mod') }} - name: Setup Go uses: actions/setup-go@v5 diff --git a/.github/workflows/validate-manifests.yml b/.github/workflows/validate-manifests.yml index 8ad8cf5acd..84cdbf3c70 100644 --- a/.github/workflows/validate-manifests.yml +++ b/.github/workflows/validate-manifests.yml @@ -18,7 +18,7 @@ jobs: path: | ~/.cache/go-build ~/go/pkg/mod - key: ${{ runner.os }}-build-${{ hashFiles('**/go.sum') }} + key: ${{ runner.os }}-build-${{ hashFiles('**/go.sum', '**/go.mod') }} - name: Setup Go uses: actions/setup-go@v5 diff --git a/.licenses-gomod.sha256 b/.licenses-gomod.sha256 index 38899543ca..b060cb7936 100644 --- a/.licenses-gomod.sha256 +++ b/.licenses-gomod.sha256 @@ -1 +1 @@ -100644 4b8a340e51c1d5690d82b9cd1e9c768de7db84e9 go.mod +100644 7a60e838b5b0f5aa778a2eb04ee5a06e8838c43c go.mod diff --git a/Dockerfile b/Dockerfile index ffffa7bfa8..ae4a610e82 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # Build the manager binary -FROM golang:1.21 as builder +FROM golang:1.22 as builder WORKDIR /workspace # Copy the Go Modules manifests diff --git a/Dockerfile.post-install b/Dockerfile.post-install index 519afc9724..d5ff391a27 100644 --- a/Dockerfile.post-install +++ b/Dockerfile.post-install @@ -1,5 +1,5 @@ # Build the manager binary -FROM golang:1.21 as builder +FROM golang:1.22 as builder ENV CGO_ENABLED=0 ENV GOOS=linux diff --git a/Makefile b/Makefile index 2aa7cb573e..475a4d605d 100644 --- a/Makefile +++ b/Makefile @@ -113,7 +113,7 @@ help: ## Show this help screen all: manager ## Build all binaries go-licenses: - @which go-licenses || go install github.com/google/go-licenses@latest + go install github.com/google/go-licenses@latest licenses.csv: go-licenses go.mod ## Track licenses in a CSV file @echo "Tracking licenses into file $@" @@ -239,7 +239,7 @@ vet: $(TIMESTAMPS_DIR)/vet ## Run go vet against code .PHONY: controller-gen controller-gen: ## Download controller-gen locally if necessary - @which controller-gen || go install sigs.k8s.io/controller-tools/cmd/controller-gen@v0.9.2 + go install sigs.k8s.io/controller-tools/cmd/controller-gen@v0.14.0 .PHONY: generate generate: controller-gen ${GO_SOURCES} ## Generate code diff --git a/config/crd/bases/atlas.mongodb.com_atlasbackuppolicies.yaml b/config/crd/bases/atlas.mongodb.com_atlasbackuppolicies.yaml index 8e568e4062..bfbb576e1c 100644 --- a/config/crd/bases/atlas.mongodb.com_atlasbackuppolicies.yaml +++ b/config/crd/bases/atlas.mongodb.com_atlasbackuppolicies.yaml @@ -3,8 +3,7 @@ apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: - controller-gen.kubebuilder.io/version: v0.9.2 - creationTimestamp: null + controller-gen.kubebuilder.io/version: v0.14.0 name: atlasbackuppolicies.atlas.mongodb.com spec: group: atlas.mongodb.com @@ -21,14 +20,19 @@ spec: description: AtlasBackupPolicy is the Schema for the atlasbackuppolicies API properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: |- + APIVersion defines the versioned schema of this representation of an object. + Servers should convert recognized schemas to the latest internal value, and + may reject unrecognized values. + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources type: string kind: - description: 'Kind is a string value representing the REST resource this - object represents. Servers may infer this from the endpoint the client - submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' + description: |- + Kind is a string value representing the REST resource this object represents. + Servers may infer this from the endpoint the client submits requests to. + Cannot be updated. + In CamelCase. + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds type: string metadata: type: object @@ -40,11 +44,9 @@ spec: items: properties: frequencyInterval: - description: Desired frequency of the new backup policy item - specified by FrequencyType. A value of 1 specifies the first - instance of the corresponding FrequencyType. The only accepted - value you can set for frequency interval with NVMe clusters - is 12. + description: |- + Desired frequency of the new backup policy item specified by FrequencyType. A value of 1 specifies the first instance of the corresponding FrequencyType. + The only accepted value you can set for frequency interval with NVMe clusters is 12. enum: - 1 - 2 @@ -148,10 +150,9 @@ spec: type: object type: array observedGeneration: - description: ObservedGeneration indicates the generation of the resource - specification that the Atlas Operator is aware of. The Atlas Operator - updates this field to the 'metadata.generation' as soon as it starts - reconciliation of the resource. + description: |- + ObservedGeneration indicates the generation of the resource specification that the Atlas Operator is aware of. + The Atlas Operator updates this field to the 'metadata.generation' as soon as it starts reconciliation of the resource. format: int64 type: integer required: diff --git a/config/crd/bases/atlas.mongodb.com_atlasbackupschedules.yaml b/config/crd/bases/atlas.mongodb.com_atlasbackupschedules.yaml index 7f282f935e..99c8a28668 100644 --- a/config/crd/bases/atlas.mongodb.com_atlasbackupschedules.yaml +++ b/config/crd/bases/atlas.mongodb.com_atlasbackupschedules.yaml @@ -3,8 +3,7 @@ apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: - controller-gen.kubebuilder.io/version: v0.9.2 - creationTimestamp: null + controller-gen.kubebuilder.io/version: v0.14.0 name: atlasbackupschedules.atlas.mongodb.com spec: group: atlas.mongodb.com @@ -22,14 +21,19 @@ spec: API properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: |- + APIVersion defines the versioned schema of this representation of an object. + Servers should convert recognized schemas to the latest internal value, and + may reject unrecognized values. + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources type: string kind: - description: 'Kind is a string value representing the REST resource this - object represents. Servers may infer this from the endpoint the client - submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' + description: |- + Kind is a string value representing the REST resource this object represents. + Servers may infer this from the endpoint the client submits requests to. + Cannot be updated. + In CamelCase. + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds type: string metadata: type: object @@ -175,10 +179,9 @@ spec: type: string type: array observedGeneration: - description: ObservedGeneration indicates the generation of the resource - specification that the Atlas Operator is aware of. The Atlas Operator - updates this field to the 'metadata.generation' as soon as it starts - reconciliation of the resource. + description: |- + ObservedGeneration indicates the generation of the resource specification that the Atlas Operator is aware of. + The Atlas Operator updates this field to the 'metadata.generation' as soon as it starts reconciliation of the resource. format: int64 type: integer required: diff --git a/config/crd/bases/atlas.mongodb.com_atlasdatabaseusers.yaml b/config/crd/bases/atlas.mongodb.com_atlasdatabaseusers.yaml index f56c5a0553..f1df6a2ab3 100644 --- a/config/crd/bases/atlas.mongodb.com_atlasdatabaseusers.yaml +++ b/config/crd/bases/atlas.mongodb.com_atlasdatabaseusers.yaml @@ -3,8 +3,7 @@ apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: - controller-gen.kubebuilder.io/version: v0.9.2 - creationTimestamp: null + controller-gen.kubebuilder.io/version: v0.14.0 name: atlasdatabaseusers.atlas.mongodb.com spec: group: atlas.mongodb.com @@ -25,14 +24,19 @@ spec: description: AtlasDatabaseUser is the Schema for the Atlas Database User API properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: |- + APIVersion defines the versioned schema of this representation of an object. + Servers should convert recognized schemas to the latest internal value, and + may reject unrecognized values. + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources type: string kind: - description: 'Kind is a string value representing the REST resource this - object represents. Servers may infer this from the endpoint the client - submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' + description: |- + Kind is a string value representing the REST resource this object represents. + Servers may infer this from the endpoint the client submits requests to. + Cannot be updated. + In CamelCase. + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds type: string metadata: type: object @@ -42,10 +46,11 @@ spec: properties: awsIamType: default: NONE - description: Human-readable label that indicates whether the new database - user authenticates with the Amazon Web Services (AWS) Identity and - Access Management (IAM) credentials associated with the user or - the user's role + description: |- + Human-readable label that indicates whether the new database + user authenticates with the Amazon Web Services (AWS) + Identity and Access Management (IAM) credentials associated with + the user or the user's role enum: - NONE - USER @@ -57,14 +62,14 @@ spec: the user. Default value is 'admin'. type: string deleteAfterDate: - description: 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. + description: |- + 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 labels: - description: Labels is an array containing key-value pairs that tag - and categorize the database user. Each key and value has a maximum - length of 255 characters. + description: |- + Labels is an array containing key-value pairs that tag and categorize the database user. + Each key and value has a maximum length of 255 characters. items: description: LabelSpec contains key-value pairs that tag and categorize the Cluster/DBUser @@ -81,9 +86,11 @@ spec: type: array oidcAuthType: default: NONE - description: Human-readable label that indicates whether the new database - Username with OIDC federated authentication. To create a federated - authentication user, specify the value of IDP_GROUP for this field + description: |- + Human-readable label that indicates whether the new database Username + with OIDC federated authentication. + To create a federated authentication user, specify the value + of IDP_GROUP for this field enum: - NONE - IDP_GROUP @@ -112,21 +119,21 @@ spec: - name type: object roles: - description: Roles is an array of this user's roles and the databases - / collections on which the roles apply. A role allows the user to - perform particular actions on the specified database. + description: |- + Roles is an array of this user's roles and the databases / collections on which the roles apply. A role allows + the user to perform particular actions on the specified database. items: - description: RoleSpec allows the user to perform particular actions - on the specified database. A role on the admin database can include - privileges that apply to the other databases as well. + description: |- + RoleSpec allows the user to perform particular actions on the specified database. + A role on the admin database can include privileges that apply to the other databases as well. properties: collectionName: description: CollectionName is a collection for which the role applies. type: string databaseName: - description: DatabaseName is a database on which the user has - the specified role. A role on the admin database can include + description: |- + DatabaseName is a database on which the user has the specified role. A role on the admin database can include privileges that apply to the other databases. type: string roleName: @@ -143,11 +150,10 @@ spec: description: Scopes is an array of clusters and Atlas Data Lakes that this user has access to. items: - description: ScopeSpec if present a database user only have access - to the indicated resource (Cluster or Atlas Data Lake) if none - is given then it has access to all. It's highly recommended to - restrict the access of the database users only to a limited set - of resources. + description: |- + ScopeSpec if present a database user only have access to the indicated resource (Cluster or Atlas Data Lake) + if none is given then it has access to all. + It's highly recommended to restrict the access of the database users only to a limited set of resources. properties: name: description: Name is a name of the cluster or Atlas Data Lake @@ -166,12 +172,12 @@ spec: type: object type: array username: - description: 'Username is a username for authenticating to MongoDB - Human-readable label that represents the user that authenticates - to MongoDB. The format of this label depends on the method of authentication: + description: |- + Username is a username for authenticating to MongoDB + Human-readable label that represents the user that authenticates to MongoDB. The format of this label depends on the method of authentication: In case of AWS IAM: the value should be AWS ARN for the IAM User/Role; - In case of OIDC: the value should be the Identity Provider ID; In - case of Plain text auth: the value can be anything' + In case of OIDC: the value should be the Identity Provider ID; + In case of Plain text auth: the value can be anything maxLength: 1024 type: string x509Type: @@ -220,10 +226,9 @@ spec: description: UserName is the current name of database user. type: string observedGeneration: - description: ObservedGeneration indicates the generation of the resource - specification that the Atlas Operator is aware of. The Atlas Operator - updates this field to the 'metadata.generation' as soon as it starts - reconciliation of the resource. + description: |- + ObservedGeneration indicates the generation of the resource specification that the Atlas Operator is aware of. + The Atlas Operator updates this field to the 'metadata.generation' as soon as it starts reconciliation of the resource. format: int64 type: integer passwordVersion: diff --git a/config/crd/bases/atlas.mongodb.com_atlasdatafederations.yaml b/config/crd/bases/atlas.mongodb.com_atlasdatafederations.yaml index a9921bee07..28dad0ddc2 100644 --- a/config/crd/bases/atlas.mongodb.com_atlasdatafederations.yaml +++ b/config/crd/bases/atlas.mongodb.com_atlasdatafederations.yaml @@ -3,8 +3,7 @@ apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: - controller-gen.kubebuilder.io/version: v0.9.2 - creationTimestamp: null + controller-gen.kubebuilder.io/version: v0.14.0 name: atlasdatafederations.atlas.mongodb.com spec: group: atlas.mongodb.com @@ -26,14 +25,19 @@ spec: API properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: |- + APIVersion defines the versioned schema of this representation of an object. + Servers should convert recognized schemas to the latest internal value, and + may reject unrecognized values. + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources type: string kind: - description: 'Kind is a string value representing the REST resource this - object represents. Servers may infer this from the endpoint the client - submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' + description: |- + Kind is a string value representing the REST resource this object represents. + Servers may infer this from the endpoint the client submits requests to. + Cannot be updated. + In CamelCase. + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds type: string metadata: type: object @@ -236,10 +240,9 @@ spec: runs, in . format. type: string observedGeneration: - description: ObservedGeneration indicates the generation of the resource - specification that the Atlas Operator is aware of. The Atlas Operator - updates this field to the 'metadata.generation' as soon as it starts - reconciliation of the resource. + description: |- + ObservedGeneration indicates the generation of the resource specification that the Atlas Operator is aware of. + The Atlas Operator updates this field to the 'metadata.generation' as soon as it starts reconciliation of the resource. format: int64 type: integer required: diff --git a/config/crd/bases/atlas.mongodb.com_atlasdeployments.yaml b/config/crd/bases/atlas.mongodb.com_atlasdeployments.yaml index a887df9c19..cf39f68ccb 100644 --- a/config/crd/bases/atlas.mongodb.com_atlasdeployments.yaml +++ b/config/crd/bases/atlas.mongodb.com_atlasdeployments.yaml @@ -3,8 +3,7 @@ apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: - controller-gen.kubebuilder.io/version: v0.9.2 - creationTimestamp: null + controller-gen.kubebuilder.io/version: v0.14.0 name: atlasdeployments.atlas.mongodb.com spec: group: atlas.mongodb.com @@ -21,21 +20,26 @@ spec: description: AtlasDeployment is the Schema for the atlasdeployments API properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: |- + APIVersion defines the versioned schema of this representation of an object. + Servers should convert recognized schemas to the latest internal value, and + may reject unrecognized values. + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources type: string kind: - description: 'Kind is a string value representing the REST resource this - object represents. Servers may infer this from the endpoint the client - submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' + description: |- + Kind is a string value representing the REST resource this object represents. + Servers may infer this from the endpoint the client submits requests to. + Cannot be updated. + In CamelCase. + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds type: string metadata: type: object spec: - description: AtlasDeploymentSpec defines the desired state of AtlasDeployment - Only one of DeploymentSpec, AdvancedDeploymentSpec and ServerlessSpec - should be defined + description: |- + AtlasDeploymentSpec defines the desired state of AtlasDeployment + Only one of DeploymentSpec, AdvancedDeploymentSpec and ServerlessSpec should be defined properties: backupRef: description: Backup schedule for the AtlasDeployment @@ -54,13 +58,14 @@ spec: https://www.mongodb.com/docs/atlas/reference/api/clusters/ properties: backupEnabled: - description: Applicable only for M10+ deployments. Flag that indicates - if the deployment uses Cloud Backups for backups. + description: |- + Applicable only for M10+ deployments. + Flag that indicates if the deployment uses Cloud Backups for backups. type: boolean biConnector: - description: Configuration of BI Connector for Atlas on this deployment. - The MongoDB Connector for Business Intelligence for Atlas (BI - Connector) is only available for M10 and larger deployments. + description: |- + Configuration of BI Connector for Atlas on this deployment. + The MongoDB Connector for Business Intelligence for Atlas (BI Connector) is only available for M10 and larger deployments. properties: enabled: description: Flag that indicates whether or not BI Connector @@ -74,9 +79,9 @@ spec: type: string type: object clusterType: - description: Type of the deployment that you want to create. The - parameter is required if replicationSpecs are set or if Global - Deployments are deployed. + description: |- + Type of the deployment that you want to create. + The parameter is required if replicationSpecs are set or if Global Deployments are deployed. enum: - REPLICASET - SHARDED @@ -95,9 +100,10 @@ spec: type: object type: array diskSizeGB: - description: Capacity, in gigabytes, of the host's root volume. - Increase this number to add capacity, up to a maximum possible - value of 4096 (i.e., 4 TB). This value must be a positive integer. + description: |- + Capacity, in gigabytes, of the host's root volume. + Increase this number to add capacity, up to a maximum possible value of 4096 (i.e., 4 TB). + This value must be a positive integer. The parameter is required if replicationSpecs are configured. maximum: 4096 minimum: 0 @@ -112,9 +118,9 @@ spec: - NONE type: string labels: - description: Collection of key-value pairs that tag and categorize - the deployment. Each key and value has a maximum length of 255 - characters. + description: |- + Collection of key-value pairs that tag and categorize the deployment. + Each key and value has a maximum length of 255 characters. items: description: LabelSpec contains key-value pairs that tag and categorize the Cluster/DBUser @@ -159,9 +165,10 @@ spec: mongoDBVersion: type: string name: - description: Name of the advanced deployment as it appears in - Atlas. After Atlas creates the deployment, you can't change - its name. Can only contain ASCII letters, numbers, and hyphens. + description: |- + Name of the advanced deployment as it appears in Atlas. + After Atlas creates the deployment, you can't change its name. + Can only contain ASCII letters, numbers, and hyphens. pattern: ^[a-zA-Z0-9][a-zA-Z0-9-]*$ type: string paused: @@ -177,50 +184,42 @@ spec: items: properties: numShards: - description: Positive integer that specifies the number - of shards to deploy in each specified zone. If you set - this value to 1 and clusterType is SHARDED, MongoDB Cloud - deploys a single-shard sharded cluster. Don't create a - sharded cluster with a single shard for production environments. - Single-shard sharded clusters don't provide the same benefits - as multi-shard configurations + description: |- + Positive integer that specifies the number of shards to deploy in each specified zone. + If you set this value to 1 and clusterType is SHARDED, MongoDB Cloud deploys a single-shard sharded cluster. + Don't create a sharded cluster with a single shard for production environments. + Single-shard sharded clusters don't provide the same benefits as multi-shard configurations type: integer regionConfigs: - description: Hardware specifications for nodes set for a - given region. Each regionConfigs object describes the - region's priority in elections and the number and type - of MongoDB nodes that MongoDB Cloud deploys to the region. - Each regionConfigs object must have either an analyticsSpecs - object, electableSpecs object, or readOnlySpecs object. - Tenant clusters only require electableSpecs. Dedicated - clusters can specify any of these specifications, but - must have at least one electableSpecs object within a - replicationSpec. Every hardware specification must use - the same instanceSize. + description: |- + Hardware specifications for nodes set for a given region. + Each regionConfigs object describes the region's priority in elections and the number and type of MongoDB nodes that MongoDB Cloud deploys to the region. + Each regionConfigs object must have either an analyticsSpecs object, electableSpecs object, or readOnlySpecs object. + Tenant clusters only require electableSpecs. Dedicated clusters can specify any of these specifications, but must have at least one electableSpecs object within a replicationSpec. + Every hardware specification must use the same instanceSize. items: properties: analyticsSpecs: properties: diskIOPS: - description: Disk IOPS setting for AWS storage. - Set only if you selected AWS as your cloud service - provider. + description: |- + Disk IOPS setting for AWS storage. + Set only if you selected AWS as your cloud service provider. format: int64 type: integer ebsVolumeType: - description: Disk IOPS setting for AWS storage. - Set only if you selected AWS as your cloud service - provider. + description: |- + Disk IOPS setting for AWS storage. + Set only if you selected AWS as your cloud service provider. enum: - STANDARD - PROVISIONED type: string instanceSize: - description: Hardware specification for the instance - sizes in this region. Each instance size has - a default storage and memory capacity. The instance - size you select applies to all the data-bearing - hosts in your instance size + description: |- + Hardware specification for the instance sizes in this region. + Each instance size has a default storage and memory capacity. + The instance size you select applies to all the data-bearing hosts in your instance size type: string nodeCount: description: Number of nodes of the given type @@ -270,11 +269,10 @@ spec: type: object type: object backingProviderName: - description: 'Cloud service provider on which the - host for a multi-tenant deployment is provisioned. - This setting only works when "providerName" : "TENANT" - and "providerSetting.instanceSizeName" : M2 or M5. - Otherwise it should be equal to "providerName" value' + description: |- + Cloud service provider on which the host for a multi-tenant deployment is provisioned. + This setting only works when "providerName" : "TENANT" and "providerSetting.instanceSizeName" : M2 or M5. + Otherwise it should be equal to "providerName" value enum: - AWS - GCP @@ -283,25 +281,24 @@ spec: electableSpecs: properties: diskIOPS: - description: Disk IOPS setting for AWS storage. - Set only if you selected AWS as your cloud service - provider. + description: |- + Disk IOPS setting for AWS storage. + Set only if you selected AWS as your cloud service provider. format: int64 type: integer ebsVolumeType: - description: Disk IOPS setting for AWS storage. - Set only if you selected AWS as your cloud service - provider. + description: |- + Disk IOPS setting for AWS storage. + Set only if you selected AWS as your cloud service provider. enum: - STANDARD - PROVISIONED type: string instanceSize: - description: Hardware specification for the instance - sizes in this region. Each instance size has - a default storage and memory capacity. The instance - size you select applies to all the data-bearing - hosts in your instance size + description: |- + Hardware specification for the instance sizes in this region. + Each instance size has a default storage and memory capacity. + The instance size you select applies to all the data-bearing hosts in your instance size type: string nodeCount: description: Number of nodes of the given type @@ -309,13 +306,11 @@ spec: type: integer type: object priority: - description: Precedence is given to this region when - a primary election occurs. If your regionConfigs - has only readOnlySpecs, analyticsSpecs, or both, - set this value to 0. If you have multiple regionConfigs - objects (your cluster is multi-region or multi-cloud), - they must have priorities in descending order. The - highest priority is 7 + description: |- + Precedence is given to this region when a primary election occurs. + If your regionConfigs has only readOnlySpecs, analyticsSpecs, or both, set this value to 0. + If you have multiple regionConfigs objects (your cluster is multi-region or multi-cloud), they must have priorities in descending order. + The highest priority is 7 type: integer providerName: enum: @@ -328,25 +323,24 @@ spec: readOnlySpecs: properties: diskIOPS: - description: Disk IOPS setting for AWS storage. - Set only if you selected AWS as your cloud service - provider. + description: |- + Disk IOPS setting for AWS storage. + Set only if you selected AWS as your cloud service provider. format: int64 type: integer ebsVolumeType: - description: Disk IOPS setting for AWS storage. - Set only if you selected AWS as your cloud service - provider. + description: |- + Disk IOPS setting for AWS storage. + Set only if you selected AWS as your cloud service provider. enum: - STANDARD - PROVISIONED type: string instanceSize: - description: Hardware specification for the instance - sizes in this region. Each instance size has - a default storage and memory capacity. The instance - size you select applies to all the data-bearing - hosts in your instance size + description: |- + Hardware specification for the instance sizes in this region. + Each instance size has a default storage and memory capacity. + The instance size you select applies to all the data-bearing hosts in your instance size type: string nodeCount: description: Number of nodes of the given type @@ -354,9 +348,9 @@ spec: type: integer type: object regionName: - description: Physical location of your MongoDB deployment. - The region you choose can affect network latency - for clients accessing your databases. + description: |- + Physical location of your MongoDB deployment. + The region you choose can affect network latency for clients accessing your databases. type: string type: object type: array @@ -452,9 +446,10 @@ spec: type: boolean type: object name: - description: Name of the serverless deployment as it appears in - Atlas. After Atlas creates the deployment, you can't change - its name. Can only contain ASCII letters, numbers, and hyphens. + description: |- + Name of the serverless deployment as it appears in Atlas. + After Atlas creates the deployment, you can't change its name. + Can only contain ASCII letters, numbers, and hyphens. pattern: ^[a-zA-Z0-9][a-zA-Z0-9-]*$ type: string privateEndpoints: @@ -485,9 +480,10 @@ spec: can scale. properties: autoIndexingEnabled: - description: 'Deprecated: This flag is not supported anymore. - Flag that indicates whether autopilot mode for Performance - Advisor is enabled. The default is false.' + description: |- + Deprecated: This flag is not supported anymore. + Flag that indicates whether autopilot mode for Performance Advisor is enabled. + The default is false. type: boolean compute: description: Collection of settings that configure how @@ -522,18 +518,18 @@ spec: type: boolean type: object backingProviderName: - description: 'Cloud service provider on which the host for - a multi-tenant deployment is provisioned. This setting only - works when "providerSetting.providerName" : "TENANT" and - "providerSetting.instanceSizeName" : M2 or M5.' + description: |- + Cloud service provider on which the host for a multi-tenant deployment is provisioned. + This setting only works when "providerSetting.providerName" : "TENANT" and "providerSetting.instanceSizeName" : M2 or M5. enum: - AWS - GCP - AZURE type: string diskIOPS: - description: Disk IOPS setting for AWS storage. Set only if - you selected AWS as your cloud service provider. + description: |- + Disk IOPS setting for AWS storage. + Set only if you selected AWS as your cloud service provider. format: int64 type: integer diskTypeName: @@ -563,13 +559,14 @@ spec: - SERVERLESS type: string regionName: - description: Physical location of your MongoDB deployment. - The region you choose can affect network latency for clients - accessing your databases. + description: |- + Physical location of your MongoDB deployment. + The region you choose can affect network latency for clients accessing your databases. type: string volumeType: - description: Disk IOPS setting for AWS storage. Set only if - you selected AWS as your cloud service provider. + description: |- + Disk IOPS setting for AWS storage. + Set only if you selected AWS as your cloud service provider. enum: - STANDARD - PROVISIONED @@ -651,22 +648,20 @@ spec: your applications use to connect to this cluster. properties: private: - description: Network-peering-endpoint-aware mongodb:// connection - strings for each interface VPC endpoint you configured to connect - to this cluster. Atlas returns this parameter only if you created - a network peering connection to this cluster. + description: |- + Network-peering-endpoint-aware mongodb:// connection strings for each interface VPC endpoint you configured to connect to this cluster. + Atlas returns this parameter only if you created a network peering connection to this cluster. type: string privateEndpoint: - description: Private endpoint connection strings. Each object - describes the connection strings you can use to connect to this - cluster through a private endpoint. Atlas returns this parameter - only if you deployed a private endpoint to all regions to which - you deployed this cluster's nodes. + description: |- + Private endpoint connection strings. + Each object describes the connection strings you can use to connect to this cluster through a private endpoint. + Atlas returns this parameter only if you deployed a private endpoint to all regions to which you deployed this cluster's nodes. items: - description: PrivateEndpoint connection strings. Each object - describes the connection strings you can use to connect to - this cluster through a private endpoint. Atlas returns this - parameter only if you deployed a private endpoint to all regions + description: |- + PrivateEndpoint connection strings. Each object describes the connection strings + you can use to connect to this cluster through a private endpoint. + Atlas returns this parameter only if you deployed a private endpoint to all regions to which you deployed this cluster's nodes. properties: connectionString: @@ -702,18 +697,25 @@ spec: string for this private endpoint. type: string type: - description: "Type of MongoDB process that you connect to - with the connection strings \n Atlas returns: \n • MONGOD - for replica sets, or \n • MONGOS for sharded clusters" + 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 type: array privateSrv: - description: Network-peering-endpoint-aware mongodb+srv:// connection - strings for each interface VPC endpoint you configured to connect - to this cluster. Atlas returns this parameter only if you created - a network peering connection to this cluster. Use this URI format - if your driver supports it. If it doesn't, use connectionStrings.private. + description: |- + Network-peering-endpoint-aware mongodb+srv:// connection strings for each interface VPC endpoint you configured to connect to this cluster. + Atlas returns this parameter only if you created a network peering connection to this cluster. + Use this URI format if your driver supports it. If it doesn't, use connectionStrings.private. type: string standard: description: Public mongodb:// connection string for this cluster. @@ -765,15 +767,14 @@ spec: runs, in . format. type: string mongoURIUpdated: - description: MongoURIUpdated is a timestamp in ISO 8601 date and time - format in UTC when the connection string was last updated. The connection - string changes if you update any of the other values. + description: |- + MongoURIUpdated is a timestamp in ISO 8601 date and time format in UTC when the connection string was last updated. + The connection string changes if you update any of the other values. type: string observedGeneration: - description: ObservedGeneration indicates the generation of the resource - specification that the Atlas Operator is aware of. The Atlas Operator - updates this field to the 'metadata.generation' as soon as it starts - reconciliation of the resource. + description: |- + ObservedGeneration indicates the generation of the resource specification that the Atlas Operator is aware of. + The Atlas Operator updates this field to the 'metadata.generation' as soon as it starts reconciliation of the resource. format: int64 type: integer replicaSets: @@ -832,8 +833,9 @@ spec: type: object type: array stateName: - description: 'StateName is the current state of the cluster. The possible - states are: IDLE, CREATING, UPDATING, DELETING, DELETED, REPAIRING' + description: |- + StateName is the current state of the cluster. + The possible states are: IDLE, CREATING, UPDATING, DELETING, DELETED, REPAIRING type: string required: - conditions diff --git a/config/crd/bases/atlas.mongodb.com_atlasfederatedauths.yaml b/config/crd/bases/atlas.mongodb.com_atlasfederatedauths.yaml index 0c0679f166..b7a094aa2e 100644 --- a/config/crd/bases/atlas.mongodb.com_atlasfederatedauths.yaml +++ b/config/crd/bases/atlas.mongodb.com_atlasfederatedauths.yaml @@ -3,8 +3,7 @@ apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: - controller-gen.kubebuilder.io/version: v0.9.2 - creationTimestamp: null + controller-gen.kubebuilder.io/version: v0.14.0 name: atlasfederatedauths.atlas.mongodb.com spec: group: atlas.mongodb.com @@ -21,22 +20,28 @@ spec: description: AtlasFederatedAuth is the Schema for the Atlasfederatedauth API properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: |- + APIVersion defines the versioned schema of this representation of an object. + Servers should convert recognized schemas to the latest internal value, and + may reject unrecognized values. + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources type: string kind: - description: 'Kind is a string value representing the REST resource this - object represents. Servers may infer this from the endpoint the client - submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' + description: |- + Kind is a string value representing the REST resource this object represents. + Servers may infer this from the endpoint the client submits requests to. + Cannot be updated. + In CamelCase. + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds type: string metadata: type: object spec: properties: connectionSecretRef: - description: Connection secret with API credentials for configuring - the federation. These credentials must have OrganizationOwner permissions. + description: |- + Connection secret with API credentials for configuring the federation. + These credentials must have OrganizationOwner permissions. properties: name: description: Name is the name of the Kubernetes Resource @@ -55,10 +60,10 @@ spec: type: array domainRestrictionEnabled: default: false - description: Prevent users in the federation from accessing organizations - outside of the federation, and creating new organizations. This - option applies to the entire federation. See more information at - https://www.mongodb.com/docs/atlas/security/federation-advanced-options/#restrict-user-membership-to-the-federation + description: |- + Prevent users in the federation from accessing organizations outside of the federation, and creating new organizations. + This option applies to the entire federation. + See more information at https://www.mongodb.com/docs/atlas/security/federation-advanced-options/#restrict-user-membership-to-the-federation type: boolean enabled: default: false @@ -156,10 +161,9 @@ spec: type: object type: array observedGeneration: - description: ObservedGeneration indicates the generation of the resource - specification that the Atlas Operator is aware of. The Atlas Operator - updates this field to the 'metadata.generation' as soon as it starts - reconciliation of the resource. + description: |- + ObservedGeneration indicates the generation of the resource specification that the Atlas Operator is aware of. + The Atlas Operator updates this field to the 'metadata.generation' as soon as it starts reconciliation of the resource. format: int64 type: integer required: diff --git a/config/crd/bases/atlas.mongodb.com_atlasprojects.yaml b/config/crd/bases/atlas.mongodb.com_atlasprojects.yaml index e30fb227ce..c4b70eaa54 100644 --- a/config/crd/bases/atlas.mongodb.com_atlasprojects.yaml +++ b/config/crd/bases/atlas.mongodb.com_atlasprojects.yaml @@ -3,8 +3,7 @@ apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: - controller-gen.kubebuilder.io/version: v0.9.2 - creationTimestamp: null + controller-gen.kubebuilder.io/version: v0.14.0 name: atlasprojects.atlas.mongodb.com spec: group: atlas.mongodb.com @@ -25,14 +24,19 @@ spec: description: AtlasProject is the Schema for the atlasprojects API properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: |- + APIVersion defines the versioned schema of this representation of an object. + Servers should convert recognized schemas to the latest internal value, and + may reject unrecognized values. + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources type: string kind: - description: 'Kind is a string value representing the REST resource this - object represents. Servers may infer this from the endpoint the client - submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' + description: |- + Kind is a string value representing the REST resource this object represents. + Servers may infer this from the endpoint the client submits requests to. + Cannot be updated. + In CamelCase. + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds type: string metadata: type: object @@ -41,11 +45,10 @@ spec: Atlas properties: alertConfigurationSyncEnabled: - description: AlertConfigurationSyncEnabled is a flag that enables/disables - Alert Configurations sync for the current Project. If true - project - alert configurations will be synced according to AlertConfigurations. - If not - alert configurations will not be modified by the operator. - They can be managed through API, cli, UI. + description: |- + AlertConfigurationSyncEnabled is a flag that enables/disables Alert Configurations sync for the current Project. + If true - project alert configurations will be synced according to AlertConfigurations. + If not - alert configurations will not be modified by the operator. They can be managed through API, cli, UI. type: boolean alertConfigurations: description: AlertConfiguration is a list of Alert Configurations @@ -305,13 +308,13 @@ spec: type: boolean type: object cloudProviderAccessRoles: - description: 'CloudProviderAccessRoles is a list of Cloud Provider - Access Roles configured for the current Project. Deprecated: This - configuration was deprecated in favor of CloudProviderIntegrations' + description: |- + CloudProviderAccessRoles is a list of Cloud Provider Access Roles configured for the current Project. + Deprecated: This configuration was deprecated in favor of CloudProviderIntegrations items: - description: 'CloudProviderAccessRole define an integration to a - cloud provider Deprecated: This type is deprecated in favor of - CloudProviderIntegration' + description: |- + CloudProviderAccessRole define an integration to a cloud provider + Deprecated: This type is deprecated in favor of CloudProviderIntegration properties: iamAssumedRoleArn: description: IamAssumedRoleArn is the ARN of the IAM role that @@ -345,10 +348,9 @@ spec: type: object type: array connectionSecretRef: - description: ConnectionSecret is the name of the Kubernetes Secret - which contains the information about the way to connect to Atlas - (organization ID, API keys). The default Operator connection configuration - will be used if not provided. + description: |- + ConnectionSecret is the name of the Kubernetes Secret which contains the information about the way to connect to + Atlas (organization ID, API keys). The default Operator connection configuration will be used if not provided. properties: name: description: Name is the name of the Kubernetes Resource @@ -684,37 +686,37 @@ spec: type: object type: array maintenanceWindow: - description: MaintenanceWindow allows to specify a preferred time - in the week to run maintenance operations. See more information - at https://www.mongodb.com/docs/atlas/reference/api/maintenance-windows/ + description: |- + MaintenanceWindow allows to specify a preferred time in the week to run maintenance operations. See more + information at https://www.mongodb.com/docs/atlas/reference/api/maintenance-windows/ properties: autoDefer: description: Flag indicating whether any scheduled project maintenance should be deferred automatically for one week. type: boolean dayOfWeek: - description: Day of the week when you would like the maintenance - window to start as a 1-based integer. Sunday 1, Monday 2, Tuesday - 3, Wednesday 4, Thursday 5, Friday 6, Saturday 7 + description: |- + Day of the week when you would like the maintenance window to start as a 1-based integer. + Sunday 1, Monday 2, Tuesday 3, Wednesday 4, Thursday 5, Friday 6, Saturday 7 maximum: 7 minimum: 1 type: integer defer: - description: Flag indicating whether the next scheduled project - maintenance should be deferred for one week. Cannot be specified - if startASAP is true + description: |- + Flag indicating whether the next scheduled project maintenance should be deferred for one week. + Cannot be specified if startASAP is true type: boolean hourOfDay: - description: Hour of the day when you would like the maintenance - window to start. This parameter uses the 24-hour clock, where - midnight is 0, noon is 12. + description: |- + Hour of the day when you would like the maintenance window to start. + This parameter uses the 24-hour clock, where midnight is 0, noon is 12. maximum: 23 minimum: 0 type: integer startASAP: - description: Flag indicating whether project maintenance has been - directed to start immediately. Cannot be specified if defer - is true + description: |- + Flag indicating whether project maintenance has been directed to start immediately. + Cannot be specified if defer is true type: boolean type: object name: @@ -838,8 +840,9 @@ spec: type: object type: array projectIpAccessList: - description: ProjectIPAccessList allows to enable the IP Access List - for the Project. See more information at https://docs.atlas.mongodb.com/reference/api/ip-access-list/add-entries-to-access-list/ + description: |- + ProjectIPAccessList allows to enable the IP Access List for the Project. See more information at + https://docs.atlas.mongodb.com/reference/api/ip-access-list/add-entries-to-access-list/ items: properties: awsSecurityGroup: @@ -864,10 +867,10 @@ spec: type: array regionUsageRestrictions: default: NONE - description: RegionUsageRestrictions designate the project's AWS region - when using Atlas for Government. This parameter should not be used - with commercial Atlas. In Atlas for Government, not setting this - field (defaulting to NONE) means the project is restricted to COMMERCIAL_FEDRAMP_REGIONS_ONLY + description: |- + RegionUsageRestrictions designate the project's AWS region when using Atlas for Government. + This parameter should not be used with commercial Atlas. + In Atlas for Government, not setting this field (defaulting to NONE) means the project is restricted to COMMERCIAL_FEDRAMP_REGIONS_ONLY enum: - NONE - GOV_REGIONS_ONLY @@ -1226,10 +1229,10 @@ spec: type: object type: array authModes: - description: AuthModes contains a list of configured authentication - modes "SCRAM" is default authentication method and requires a password - for each user "X509" signifies that self-managed X.509 authentication - is configured + description: |- + AuthModes contains a list of configured authentication modes + "SCRAM" is default authentication method and requires a password for each user + "X509" signifies that self-managed X.509 authentication is configured items: type: string type: array @@ -1320,10 +1323,9 @@ spec: type: object type: array expiredIpAccessList: - description: The list of IP Access List entries that are expired due - to 'deleteAfterDate' being less than the current date. Note, that - this field is updated by the Atlas Operator only after specification - changes + description: |- + The list of IP Access List entries that are expired due to 'deleteAfterDate' being less than the current date. + Note, that this field is updated by the Atlas Operator only after specification changes items: properties: awsSecurityGroup: @@ -1405,9 +1407,9 @@ spec: AWS. type: string vpc: - description: VPC is general purpose field for storing the name - of the VPC. VPC is vpcID for AWS, user networkName for GCP, - and vnetName for Azure. + description: |- + VPC is general purpose field for storing the name of the VPC. + VPC is vpcID for AWS, user networkName for GCP, and vnetName for Azure. type: string required: - id @@ -1416,10 +1418,9 @@ spec: type: object type: array observedGeneration: - description: ObservedGeneration indicates the generation of the resource - specification that the Atlas Operator is aware of. The Atlas Operator - updates this field to the 'metadata.generation' as soon as it starts - reconciliation of the resource. + description: |- + ObservedGeneration indicates the generation of the resource specification that the Atlas Operator is aware of. + The Atlas Operator updates this field to the 'metadata.generation' as soon as it starts reconciliation of the resource. format: int64 type: integer privateEndpoints: @@ -1481,7 +1482,8 @@ spec: type: object type: array prometheus: - description: Prometheus contains the status for Prometheus integration + description: |- + Prometheus contains the status for Prometheus integration including the prometheusDiscoveryURL properties: prometheusDiscoveryURL: diff --git a/config/crd/bases/atlas.mongodb.com_atlasteams.yaml b/config/crd/bases/atlas.mongodb.com_atlasteams.yaml index 96ef0cc199..dbc83dd757 100644 --- a/config/crd/bases/atlas.mongodb.com_atlasteams.yaml +++ b/config/crd/bases/atlas.mongodb.com_atlasteams.yaml @@ -3,8 +3,7 @@ apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: - controller-gen.kubebuilder.io/version: v0.9.2 - creationTimestamp: null + controller-gen.kubebuilder.io/version: v0.14.0 name: atlasteams.atlas.mongodb.com spec: group: atlas.mongodb.com @@ -25,14 +24,19 @@ spec: description: AtlasTeam is the Schema for the Atlas Teams API properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: |- + APIVersion defines the versioned schema of this representation of an object. + Servers should convert recognized schemas to the latest internal value, and + may reject unrecognized values. + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources type: string kind: - description: 'Kind is a string value representing the REST resource this - object represents. Servers may infer this from the endpoint the client - submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' + description: |- + Kind is a string value representing the REST resource this object represents. + Servers may infer this from the endpoint the client submits requests to. + Cannot be updated. + In CamelCase. + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds type: string metadata: type: object @@ -88,10 +92,9 @@ spec: description: ID of the team type: string observedGeneration: - description: ObservedGeneration indicates the generation of the resource - specification that the Atlas Operator is aware of. The Atlas Operator - updates this field to the 'metadata.generation' as soon as it starts - reconciliation of the resource. + description: |- + ObservedGeneration indicates the generation of the resource specification that the Atlas Operator is aware of. + The Atlas Operator updates this field to the 'metadata.generation' as soon as it starts reconciliation of the resource. format: int64 type: integer projects: diff --git a/fast.Dockerfile b/fast.Dockerfile index adb595f248..9fb6623f10 100644 --- a/fast.Dockerfile +++ b/fast.Dockerfile @@ -1,5 +1,5 @@ # TODO: Eventually replace main Dockerfile -FROM golang:1.21 as certs-source +FROM golang:1.22 as certs-source FROM registry.access.redhat.com/ubi9/ubi-micro:9.2 diff --git a/go.mod b/go.mod index 4b8a340e51..7a60e838b5 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/mongodb/mongodb-atlas-kubernetes/v2 -go 1.21 +go 1.22.1 require ( cloud.google.com/go/kms v1.15.8 diff --git a/pkg/api/v1/status/zz_generated.deepcopy.go b/pkg/api/v1/status/zz_generated.deepcopy.go index 3c7c6cba3d..988a3bdcfa 100644 --- a/pkg/api/v1/status/zz_generated.deepcopy.go +++ b/pkg/api/v1/status/zz_generated.deepcopy.go @@ -1,5 +1,4 @@ //go:build !ignore_autogenerated -// +build !ignore_autogenerated /* Copyright (C) MongoDB, Inc. 2020-present. diff --git a/pkg/api/v1/zz_generated.deepcopy.go b/pkg/api/v1/zz_generated.deepcopy.go index fcaacafc09..7e4e986231 100644 --- a/pkg/api/v1/zz_generated.deepcopy.go +++ b/pkg/api/v1/zz_generated.deepcopy.go @@ -1,5 +1,4 @@ //go:build !ignore_autogenerated -// +build !ignore_autogenerated /* Copyright (C) MongoDB, Inc. 2020-present. diff --git a/test/app/Dockerfile b/test/app/Dockerfile index 5205865839..8feaffb31b 100644 --- a/test/app/Dockerfile +++ b/test/app/Dockerfile @@ -1,7 +1,7 @@ # Please push to quay.io/mongodb/mongodb-atlas-kubernetes-operator-test-app:v1 # Build the manager binary -FROM golang:1.21 as builder +FROM golang:1.22 as builder WORKDIR /workspace # Copy the Go Modules manifests diff --git a/test/app/go.mod b/test/app/go.mod index 8ffae6df42..5b32b56010 100644 --- a/test/app/go.mod +++ b/test/app/go.mod @@ -1,6 +1,6 @@ module github.com/mongodb/mongodb-atlas-kubernetes/test/app -go 1.21 +go 1.22.1 require ( github.com/gorilla/mux v1.8.0 diff --git a/tools/clean/go.mod b/tools/clean/go.mod index 4560b5b434..8f79cdeac7 100644 --- a/tools/clean/go.mod +++ b/tools/clean/go.mod @@ -1,8 +1,6 @@ module tools/clean -go 1.21 - -toolchain go1.21.1 +go 1.22.1 require ( cloud.google.com/go/compute v1.23.0 diff --git a/tools/makejwt/go.mod b/tools/makejwt/go.mod index b26feeb103..b2afdf4380 100644 --- a/tools/makejwt/go.mod +++ b/tools/makejwt/go.mod @@ -1,5 +1,5 @@ module tools/makejwt -go 1.21.4 +go 1.22.1 require github.com/golang-jwt/jwt v3.2.2+incompatible diff --git a/tools/metrics/go.mod b/tools/metrics/go.mod index c680baf379..f5a308981d 100644 --- a/tools/metrics/go.mod +++ b/tools/metrics/go.mod @@ -1,6 +1,6 @@ module tools/metrics -go 1.21.5 +go 1.22.1 require ( github.com/google/go-github/v57 v57.0.0