Skip to content

Commit 3374ab4

Browse files
authored
Update to ACK runtime v0.39.0, code-generator v0.39.1 (#24)
### Update to ACK runtime `v0.39.0`, code-generator `v0.39.1` ---------- * ACK code-generator `v0.39.1` [release notes](https://github.com/aws-controllers-k8s/code-generator/releases/tag/v0.39.1) * ACK runtime `v0.39.0` [release notes](https://github.com/aws-controllers-k8s/runtime/releases/tag/v0.39.0) ---------- NOTE: This PR increments the release version of service controller from `v1.0.0` to `v1.0.1` Once this PR is merged, release `v1.0.1` will be automatically created for `documentdb-controller` **Please close this PR, if you do not want the new patch release for `documentdb-controller`** ---------- #### stdout for `make build-controller`: ``` building ack-generate ... ok. ==== building documentdb-controller ==== Copying common custom resource definitions into documentdb Building Kubernetes API objects for documentdb Generating deepcopy code for documentdb Generating custom resource definitions for documentdb Building service controller for documentdb Generating RBAC manifests for documentdb Running gofmt against generated code for documentdb Updating additional GitHub repository maintenance files ==== building documentdb-controller release artifacts ==== Building release artifacts for documentdb-v1.0.1 Generating common custom resource definitions Generating custom resource definitions for documentdb Generating RBAC manifests for documentdb ``` ---------- By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent c8710f8 commit 3374ab4

20 files changed

+141
-445
lines changed

apis/v1alpha1/ack-generate-metadata.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
ack_generate_info:
2-
build_date: "2024-08-29T17:15:25Z"
3-
build_hash: f8f98563404066ac3340db0a049d2e530e5c51cc
4-
go_version: go1.22.5
5-
version: v0.38.1
2+
build_date: "2024-10-10T04:01:44Z"
3+
build_hash: 36c2d234498c2bc4f60773ab8df632af4067f43b
4+
go_version: go1.23.2
5+
version: v0.39.1
66
api_directory_checksum: ad41ea4266e719ebbe78d5625a0d5a114839f84e
77
api_version: v1alpha1
88
aws_sdk_go_version: v1.50.0

config/controller/kustomization.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ kind: Kustomization
66
images:
77
- name: controller
88
newName: public.ecr.aws/aws-controllers-k8s/documentdb-controller
9-
newTag: 1.0.0
9+
newTag: 1.0.1

config/crd/bases/documentdb.services.k8s.aws_dbclusters.yaml

+4-44
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
33
kind: CustomResourceDefinition
44
metadata:
55
annotations:
6-
controller-gen.kubebuilder.io/version: v0.14.0
6+
controller-gen.kubebuilder.io/version: v0.16.2
77
name: dbclusters.documentdb.services.k8s.aws
88
spec:
99
group: documentdb.services.k8s.aws
@@ -40,7 +40,6 @@ spec:
4040
description: |-
4141
DBClusterSpec defines the desired state of DBCluster.
4242
43-
4443
Detailed information about a cluster.
4544
properties:
4645
availabilityZones:
@@ -55,33 +54,25 @@ spec:
5554
The number of days for which automated backups are retained. You must specify
5655
a minimum value of 1.
5756
58-
5957
Default: 1
6058
61-
6259
Constraints:
6360
64-
6561
* Must be a value from 1 to 35.
6662
format: int64
6763
type: integer
6864
dbClusterIdentifier:
6965
description: |-
7066
The cluster identifier. This parameter is stored as a lowercase string.
7167
72-
7368
Constraints:
7469
75-
7670
* Must contain from 1 to 63 letters, numbers, or hyphens.
7771
78-
7972
* The first character must be a letter.
8073
81-
8274
* Cannot end with a hyphen or contain two consecutive hyphens.
8375
84-
8576
Example: my-cluster
8677
type: string
8778
dbClusterParameterGroupName:
@@ -92,17 +83,15 @@ spec:
9283
description: |-
9384
A subnet group to associate with this cluster.
9485
95-
9686
Constraints: Must match the name of an existing DBSubnetGroup. Must not be
9787
default.
9888
99-
10089
Example: mySubnetgroup
10190
type: string
10291
dbSubnetGroupRef:
10392
description: "AWSResourceReferenceWrapper provides a wrapper around
10493
*AWSResourceReference\ntype to provide more user friendly syntax
105-
for references using 'from' field\nEx:\nAPIIDRef:\n\n\n\tfrom:\n\t
94+
for references using 'from' field\nEx:\nAPIIDRef:\n\n\tfrom:\n\t
10695
\ name: my-api"
10796
properties:
10897
from:
@@ -140,7 +129,6 @@ spec:
140129
description: |-
141130
The name of the database engine to be used for this cluster.
142131
143-
144132
Valid values: docdb
145133
type: string
146134
engineVersion:
@@ -157,28 +145,24 @@ spec:
157145
description: |-
158146
The KMS key identifier for an encrypted cluster.
159147
160-
161148
The KMS key identifier is the Amazon Resource Name (ARN) for the KMS encryption
162149
key. If you are creating a cluster using the same Amazon Web Services account
163150
that owns the KMS encryption key that is used to encrypt the new cluster,
164151
you can use the KMS key alias instead of the ARN for the KMS encryption key.
165152
166-
167153
If an encryption key is not specified in KmsKeyId:
168154
169-
170155
* If the StorageEncrypted parameter is true, Amazon DocumentDB uses your
171156
default encryption key.
172157
173-
174158
KMS creates the default encryption key for your Amazon Web Services account.
175159
Your Amazon Web Services account has a different default encryption key for
176160
each Amazon Web Services Regions.
177161
type: string
178162
kmsKeyRef:
179163
description: "AWSResourceReferenceWrapper provides a wrapper around
180164
*AWSResourceReference\ntype to provide more user friendly syntax
181-
for references using 'from' field\nEx:\nAPIIDRef:\n\n\n\tfrom:\n\t
165+
for references using 'from' field\nEx:\nAPIIDRef:\n\n\tfrom:\n\t
182166
\ name: my-api"
183167
properties:
184168
from:
@@ -198,7 +182,6 @@ spec:
198182
printable ASCII character except forward slash (/), double quote ("), or
199183
the "at" symbol (@).
200184
201-
202185
Constraints: Must contain from 8 to 100 characters.
203186
properties:
204187
key:
@@ -220,16 +203,12 @@ spec:
220203
description: |-
221204
The name of the master user for the cluster.
222205
223-
224206
Constraints:
225207
226-
227208
* Must be from 1 to 63 letters or numbers.
228209
229-
230210
* The first character must be a letter.
231211
232-
233212
* Cannot be a reserved word for the chosen database engine.
234213
type: string
235214
port:
@@ -245,56 +224,43 @@ spec:
245224
The daily time range during which automated backups are created if automated
246225
backups are enabled using the BackupRetentionPeriod parameter.
247226
248-
249227
The default is a 30-minute window selected at random from an 8-hour block
250228
of time for each Amazon Web Services Region.
251229
252-
253230
Constraints:
254231
255-
256232
* Must be in the format hh24:mi-hh24:mi.
257233
258-
259234
* Must be in Universal Coordinated Time (UTC).
260235
261-
262236
* Must not conflict with the preferred maintenance window.
263237
264-
265238
* Must be at least 30 minutes.
266239
type: string
267240
preferredMaintenanceWindow:
268241
description: |-
269242
The weekly time range during which system maintenance can occur, in Universal
270243
Coordinated Time (UTC).
271244
272-
273245
Format: ddd:hh24:mi-ddd:hh24:mi
274246
275-
276247
The default is a 30-minute window selected at random from an 8-hour block
277248
of time for each Amazon Web Services Region, occurring on a random day of
278249
the week.
279250
280-
281251
Valid days: Mon, Tue, Wed, Thu, Fri, Sat, Sun
282252
283-
284253
Constraints: Minimum 30-minute window.
285254
type: string
286255
snapshotIdentifier:
287256
description: |-
288257
The identifier for the snapshot or cluster snapshot to restore from.
289258
290-
291259
You can use either the name or the Amazon Resource Name (ARN) to specify
292260
a cluster snapshot. However, you can use only the ARN to specify a snapshot.
293261
294-
295262
Constraints:
296263
297-
298264
* Must match the identifier of an existing snapshot.
299265
type: string
300266
sourceRegion:
@@ -310,17 +276,13 @@ spec:
310276
description: |-
311277
The storage type to associate with the DB cluster.
312278
313-
314279
For information on storage types for Amazon DocumentDB clusters, see Cluster
315280
storage configurations in the Amazon DocumentDB Developer Guide.
316281
317-
318282
Valid values for storage type - standard | iopt1
319283
320-
321284
Default value is standard
322285
323-
324286
When you create a DocumentDB DB cluster with the storage type set to iopt1,
325287
the storage type is returned in the response. The storage type isn't returned
326288
when you set it to standard.
@@ -348,7 +310,7 @@ spec:
348310
items:
349311
description: "AWSResourceReferenceWrapper provides a wrapper around
350312
*AWSResourceReference\ntype to provide more user friendly syntax
351-
for references using 'from' field\nEx:\nAPIIDRef:\n\n\n\tfrom:\n\t
313+
for references using 'from' field\nEx:\nAPIIDRef:\n\n\tfrom:\n\t
352314
\ name: my-api"
353315
properties:
354316
from:
@@ -384,7 +346,6 @@ spec:
384346
when it has verified that an "adopted" resource (a resource where the
385347
ARN annotation was set by the Kubernetes user on the CR) exists and
386348
matches the supplied CR's Spec field values.
387-
TODO(vijat@): Find a better strategy for resources that do not have ARN in CreateOutputResponse
388349
https://github.com/aws/aws-controllers-k8s/issues/270
389350
type: string
390351
ownerAccountID:
@@ -544,7 +505,6 @@ spec:
544505
replicas in the cluster. This functionality can help balance your read workload
545506
across multiple Amazon DocumentDB replicas in your cluster.
546507
547-
548508
If a failover occurs, and the Amazon DocumentDB replica that you are connected
549509
to is promoted to be the primary instance, your connection is dropped. To
550510
continue sending your read workload to other Amazon DocumentDB replicas in

config/crd/bases/documentdb.services.k8s.aws_dbinstances.yaml

+2-22
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
33
kind: CustomResourceDefinition
44
metadata:
55
annotations:
6-
controller-gen.kubebuilder.io/version: v0.14.0
6+
controller-gen.kubebuilder.io/version: v0.16.2
77
name: dbinstances.documentdb.services.k8s.aws
88
spec:
99
group: documentdb.services.k8s.aws
@@ -44,33 +44,28 @@ spec:
4444
description: |-
4545
DBInstanceSpec defines the desired state of DBInstance.
4646
47-
4847
Detailed information about an instance.
4948
properties:
5049
autoMinorVersionUpgrade:
5150
description: |-
5251
This parameter does not apply to Amazon DocumentDB. Amazon DocumentDB does
5352
not perform minor version upgrades regardless of the value set.
5453
55-
5654
Default: false
5755
type: boolean
5856
availabilityZone:
5957
description: |-
6058
The Amazon EC2 Availability Zone that the instance is created in.
6159
62-
6360
Default: A random, system-chosen Availability Zone in the endpoint's Amazon
6461
Web Services Region.
6562
66-
6763
Example: us-east-1d
6864
type: string
6965
caCertificateIdentifier:
7066
description: |-
7167
The CA certificate identifier to use for the DB instance's server certificate.
7268
73-
7469
For more information, see Updating Your Amazon DocumentDB TLS Certificates
7570
(https://docs.aws.amazon.com/documentdb/latest/developerguide/ca_cert_rotation.html)
7671
and Encrypting Data in Transit (https://docs.aws.amazon.com/documentdb/latest/developerguide/security.encryption.ssl.html)
@@ -93,26 +88,20 @@ spec:
9388
description: |-
9489
The instance identifier. This parameter is stored as a lowercase string.
9590
96-
9791
Constraints:
9892
99-
10093
* Must contain from 1 to 63 letters, numbers, or hyphens.
10194
102-
10395
* The first character must be a letter.
10496
105-
10697
* Cannot end with a hyphen or contain two consecutive hyphens.
10798
108-
10999
Example: mydbinstance
110100
type: string
111101
engine:
112102
description: |-
113103
The name of the database engine to be used for this instance.
114104
115-
116105
Valid value: docdb
117106
type: string
118107
performanceInsightsEnabled:
@@ -124,11 +113,9 @@ spec:
124113
description: |-
125114
The KMS key identifier for encryption of Performance Insights data.
126115
127-
128116
The KMS key identifier is the key ARN, key ID, alias ARN, or alias name for
129117
the KMS key.
130118
131-
132119
If you do not specify a value for PerformanceInsightsKMSKeyId, then Amazon
133120
DocumentDB uses your default KMS key. There is a default KMS key for your
134121
Amazon Web Services account. Your Amazon Web Services account has a different
@@ -137,7 +124,7 @@ spec:
137124
performanceInsightsKMSKeyRef:
138125
description: "AWSResourceReferenceWrapper provides a wrapper around
139126
*AWSResourceReference\ntype to provide more user friendly syntax
140-
for references using 'from' field\nEx:\nAPIIDRef:\n\n\n\tfrom:\n\t
127+
for references using 'from' field\nEx:\nAPIIDRef:\n\n\tfrom:\n\t
141128
\ name: my-api"
142129
properties:
143130
from:
@@ -156,18 +143,14 @@ spec:
156143
The time range each week during which system maintenance can occur, in Universal
157144
Coordinated Time (UTC).
158145
159-
160146
Format: ddd:hh24:mi-ddd:hh24:mi
161147
162-
163148
The default is a 30-minute window selected at random from an 8-hour block
164149
of time for each Amazon Web Services Region, occurring on a random day of
165150
the week.
166151
167-
168152
Valid days: Mon, Tue, Wed, Thu, Fri, Sat, Sun
169153
170-
171154
Constraints: Minimum 30-minute window.
172155
type: string
173156
promotionTier:
@@ -176,10 +159,8 @@ spec:
176159
promoted to the primary instance after a failure of the existing primary
177160
instance.
178161
179-
180162
Default: 1
181163
182-
183164
Valid values: 0-15
184165
format: int64
185166
type: integer
@@ -221,7 +202,6 @@ spec:
221202
when it has verified that an "adopted" resource (a resource where the
222203
ARN annotation was set by the Kubernetes user on the CR) exists and
223204
matches the supplied CR's Spec field values.
224-
TODO(vijat@): Find a better strategy for resources that do not have ARN in CreateOutputResponse
225205
https://github.com/aws/aws-controllers-k8s/issues/270
226206
type: string
227207
ownerAccountID:

0 commit comments

Comments
 (0)