Skip to content

Commit 525ceed

Browse files
authored
Update to ACK runtime v0.39.0, code-generator v0.39.1 (#110)
### 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.2.14` to `v1.2.15` Once this PR is merged, release `v1.2.15` will be automatically created for `dynamodb-controller` **Please close this PR, if you do not want the new patch release for `dynamodb-controller`** ---------- #### stdout for `make build-controller`: ``` building ack-generate ... ok. ==== building dynamodb-controller ==== Copying common custom resource definitions into dynamodb Building Kubernetes API objects for dynamodb Generating deepcopy code for dynamodb Generating custom resource definitions for dynamodb Building service controller for dynamodb Generating RBAC manifests for dynamodb Running gofmt against generated code for dynamodb Updating additional GitHub repository maintenance files ==== building dynamodb-controller release artifacts ==== Building release artifacts for dynamodb-v1.2.15 Generating common custom resource definitions Generating custom resource definitions for dynamodb Generating RBAC manifests for dynamodb ``` ---------- By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent 542255f commit 525ceed

20 files changed

+133
-375
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:03:28Z"
3-
build_hash: f8f98563404066ac3340db0a049d2e530e5c51cc
4-
go_version: go1.22.5
5-
version: v0.38.1
2+
build_date: "2024-10-10T03:57:57Z"
3+
build_hash: 36c2d234498c2bc4f60773ab8df632af4067f43b
4+
go_version: go1.23.2
5+
version: v0.39.1
66
api_directory_checksum: 0bcf58c929c084655d281b5a9e8be5becc904fb8
77
api_version: v1alpha1
88
aws_sdk_go_version: v1.49.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/dynamodb-controller
9-
newTag: 1.2.14
9+
newTag: 1.2.15

config/crd/bases/dynamodb.services.k8s.aws_backups.yaml

+1-5
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: backups.dynamodb.services.k8s.aws
88
spec:
99
group: dynamodb.services.k8s.aws
@@ -89,7 +89,6 @@ spec:
8989
when it has verified that an "adopted" resource (a resource where the
9090
ARN annotation was set by the Kubernetes user on the CR) exists and
9191
matches the supplied CR's Spec field values.
92-
TODO(vijat@): Find a better strategy for resources that do not have ARN in CreateOutputResponse
9392
https://github.com/aws/aws-controllers-k8s/issues/270
9493
type: string
9594
ownerAccountID:
@@ -130,16 +129,13 @@ spec:
130129
description: |-
131130
BackupType:
132131
133-
134132
* USER - You create and manage these using the on-demand backup feature.
135133
136-
137134
* SYSTEM - If you delete a table with point-in-time recovery enabled,
138135
a SYSTEM backup is automatically created and is retained for 35 days (at
139136
no additional cost). System backups allow you to restore the deleted table
140137
to the state it was in just before the point of deletion.
141138
142-
143139
* AWS_BACKUP - On-demand backup created by you from Backup service.
144140
type: string
145141
conditions:

config/crd/bases/dynamodb.services.k8s.aws_globaltables.yaml

+1-7
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: globaltables.dynamodb.services.k8s.aws
88
spec:
99
group: dynamodb.services.k8s.aws
@@ -40,7 +40,6 @@ spec:
4040
description: |-
4141
GlobalTableSpec defines the desired state of GlobalTable.
4242
43-
4443
Represents the properties of a global table.
4544
properties:
4645
globalTableName:
@@ -76,7 +75,6 @@ spec:
7675
when it has verified that an "adopted" resource (a resource where the
7776
ARN annotation was set by the Kubernetes user on the CR) exists and
7877
matches the supplied CR's Spec field values.
79-
TODO(vijat@): Find a better strategy for resources that do not have ARN in CreateOutputResponse
8078
https://github.com/aws/aws-controllers-k8s/issues/270
8179
type: string
8280
ownerAccountID:
@@ -135,16 +133,12 @@ spec:
135133
description: |-
136134
The current state of the global table:
137135
138-
139136
* CREATING - The global table is being created.
140137
141-
142138
* UPDATING - The global table is being updated.
143139
144-
145140
* DELETING - The global table is being deleted.
146141
147-
148142
* ACTIVE - The global table is ready for use.
149143
type: string
150144
type: object

config/crd/bases/dynamodb.services.k8s.aws_tables.yaml

+1-46
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: tables.dynamodb.services.k8s.aws
88
spec:
99
group: dynamodb.services.k8s.aws
@@ -74,11 +74,9 @@ spec:
7474
Controls how you are charged for read and write throughput and how you manage
7575
capacity. This setting can be changed later.
7676
77-
7877
* PROVISIONED - We recommend using PROVISIONED for predictable workloads.
7978
PROVISIONED sets the billing mode to Provisioned Mode (https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.ReadWriteCapacityMode.html#HowItWorks.ProvisionedThroughput.Manual).
8079
81-
8280
* PAY_PER_REQUEST - We recommend using PAY_PER_REQUEST for unpredictable
8381
workloads. PAY_PER_REQUEST sets the billing mode to On-Demand Mode (https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.ReadWriteCapacityMode.html#HowItWorks.OnDemand).
8482
type: string
@@ -99,14 +97,11 @@ spec:
9997
One or more global secondary indexes (the maximum is 20) to be created on
10098
the table. Each global secondary index in the array includes the following:
10199
102-
103100
* IndexName - The name of the global secondary index. Must be unique only
104101
for this table.
105102
106-
107103
* KeySchema - Specifies the key schema for the global secondary index.
108104
109-
110105
* Projection - Specifies attributes that are copied (projected) from the
111106
table into the index. These are in addition to the primary key attributes
112107
and index key attributes, which are automatically projected. Each attribute
@@ -121,7 +116,6 @@ spec:
121116
the same attribute into two different indexes, this counts as two distinct
122117
attributes when determining the total.
123118
124-
125119
* ProvisionedThroughput - The provisioned throughput settings for the
126120
global secondary index, consisting of read and write capacity units.
127121
items:
@@ -135,13 +129,11 @@ spec:
135129
Represents a single element of a key schema. A key schema specifies the attributes
136130
that make up the primary key of a table, or the key attributes of an index.
137131
138-
139132
A KeySchemaElement represents exactly one attribute of the primary key. For
140133
example, a simple primary key would be represented by one KeySchemaElement
141134
(for the partition key). A composite primary key would require one KeySchemaElement
142135
for the partition key, and another KeySchemaElement for the sort key.
143136
144-
145137
A KeySchemaElement must be a scalar, top-level attribute (not a nested attribute).
146138
The data type must be one of String, Number, or Binary. The attribute cannot
147139
be nested within a List or a Map.
@@ -170,7 +162,6 @@ spec:
170162
Represents the provisioned throughput settings for a specified table or index.
171163
The settings can be modified using the UpdateTable operation.
172164
173-
174165
For current minimum and maximum provisioned throughput values, see Service,
175166
Account, and Table Quotas (https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Limits.html)
176167
in the Amazon DynamoDB Developer Guide.
@@ -191,51 +182,41 @@ spec:
191182
array. For more information, see Data Model (https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DataModel.html)
192183
in the Amazon DynamoDB Developer Guide.
193184
194-
195185
Each KeySchemaElement in the array is composed of:
196186
197-
198187
* AttributeName - The name of this key attribute.
199188
200-
201189
* KeyType - The role that the key attribute will assume: HASH - partition
202190
key RANGE - sort key
203191
204-
205192
The partition key of an item is also known as its hash attribute. The term
206193
"hash attribute" derives from the DynamoDB usage of an internal hash function
207194
to evenly distribute data items across partitions, based on their partition
208195
key values.
209196
210-
211197
The sort key of an item is also known as its range attribute. The term "range
212198
attribute" derives from the way DynamoDB stores items with the same partition
213199
key physically close together, in sorted order by the sort key value.
214200
215-
216201
For a simple primary key (partition key), you must provide exactly one element
217202
with a KeyType of HASH.
218203
219-
220204
For a composite primary key (partition key and sort key), you must provide
221205
exactly two elements, in this order: The first element must have a KeyType
222206
of HASH, and the second element must have a KeyType of RANGE.
223207
224-
225208
For more information, see Working with Tables (https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.html#WorkingWithTables.primary.key)
226209
in the Amazon DynamoDB Developer Guide.
227210
items:
228211
description: |-
229212
Represents a single element of a key schema. A key schema specifies the attributes
230213
that make up the primary key of a table, or the key attributes of an index.
231214
232-
233215
A KeySchemaElement represents exactly one attribute of the primary key. For
234216
example, a simple primary key would be represented by one KeySchemaElement
235217
(for the partition key). A composite primary key would require one KeySchemaElement
236218
for the partition key, and another KeySchemaElement for the sort key.
237219
238-
239220
A KeySchemaElement must be a scalar, top-level attribute (not a nested attribute).
240221
The data type must be one of String, Number, or Binary. The attribute cannot
241222
be nested within a List or a Map.
@@ -253,18 +234,14 @@ spec:
253234
GB size limit per partition key value; otherwise, the size of a local secondary
254235
index is unconstrained.
255236
256-
257237
Each local secondary index in the array includes the following:
258238
259-
260239
* IndexName - The name of the local secondary index. Must be unique only
261240
for this table.
262241
263-
264242
* KeySchema - Specifies the key schema for the local secondary index.
265243
The key schema must begin with the same partition key as the table.
266244
267-
268245
* Projection - Specifies attributes that are copied (projected) from the
269246
table into the index. These are in addition to the primary key attributes
270247
and index key attributes, which are automatically projected. Each attribute
@@ -289,13 +266,11 @@ spec:
289266
Represents a single element of a key schema. A key schema specifies the attributes
290267
that make up the primary key of a table, or the key attributes of an index.
291268
292-
293269
A KeySchemaElement represents exactly one attribute of the primary key. For
294270
example, a simple primary key would be represented by one KeySchemaElement
295271
(for the partition key). A composite primary key would require one KeySchemaElement
296272
for the partition key, and another KeySchemaElement for the sort key.
297273
298-
299274
A KeySchemaElement must be a scalar, top-level attribute (not a nested attribute).
300275
The data type must be one of String, Number, or Binary. The attribute cannot
301276
be nested within a List or a Map.
@@ -326,11 +301,9 @@ spec:
326301
Represents the provisioned throughput settings for a specified table or index.
327302
The settings can be modified using the UpdateTable operation.
328303
329-
330304
If you set BillingMode as PROVISIONED, you must specify this property. If
331305
you set BillingMode as PAY_PER_REQUEST, you cannot specify this property.
332306
333-
334307
For current minimum and maximum provisioned throughput values, see Service,
335308
Account, and Table Quotas (https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Limits.html)
336309
in the Amazon DynamoDB Developer Guide.
@@ -356,11 +329,9 @@ spec:
356329
description: |-
357330
The settings for DynamoDB Streams on the table. These settings consist of:
358331
359-
360332
* StreamEnabled - Indicates whether DynamoDB Streams is to be enabled
361333
(true) or disabled (false).
362334
363-
364335
* StreamViewType - When an item in the table is modified, StreamViewType
365336
determines what information is written to the table's stream. Valid values
366337
for StreamViewType are: KEYS_ONLY - Only the key attributes of the modified
@@ -391,14 +362,12 @@ spec:
391362
Describes a tag. A tag is a key-value pair. You can add up to 50 tags to
392363
a single DynamoDB table.
393364
394-
395365
Amazon Web Services-assigned tag names and values are automatically assigned
396366
the aws: prefix, which the user cannot assign. Amazon Web Services-assigned
397367
tag names do not count towards the tag limit of 50. User-assigned tag names
398368
have the prefix user: in the Cost Allocation Report. You cannot backdate
399369
the application of a tag.
400370
401-
402371
For an overview on tagging DynamoDB resources, see Tagging for DynamoDB (https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Tagging.html)
403372
in the Amazon DynamoDB Developer Guide.
404373
properties:
@@ -440,7 +409,6 @@ spec:
440409
when it has verified that an "adopted" resource (a resource where the
441410
ARN annotation was set by the Kubernetes user on the CR) exists and
442411
matches the supplied CR's Spec field values.
443-
TODO(vijat@): Find a better strategy for resources that do not have ARN in CreateOutputResponse
444412
https://github.com/aws/aws-controllers-k8s/issues/270
445413
type: string
446414
ownerAccountID:
@@ -532,13 +500,11 @@ spec:
532500
Represents a single element of a key schema. A key schema specifies the attributes
533501
that make up the primary key of a table, or the key attributes of an index.
534502
535-
536503
A KeySchemaElement represents exactly one attribute of the primary key. For
537504
example, a simple primary key would be represented by one KeySchemaElement
538505
(for the partition key). A composite primary key would require one KeySchemaElement
539506
for the partition key, and another KeySchemaElement for the sort key.
540507
541-
542508
A KeySchemaElement must be a scalar, top-level attribute (not a nested attribute).
543509
The data type must be one of String, Number, or Binary. The attribute cannot
544510
be nested within a List or a Map.
@@ -605,19 +571,15 @@ spec:
605571
description: |-
606572
A timestamp, in ISO 8601 format, for this stream.
607573
608-
609574
Note that LatestStreamLabel is not a unique identifier for the stream, because
610575
it is possible that a stream from another table might have the same timestamp.
611576
However, the combination of the following three elements is guaranteed to
612577
be unique:
613578
614-
615579
* Amazon Web Services customer ID
616580
617-
618581
* Table name
619582
620-
621583
* StreamLabel
622584
type: string
623585
replicas:
@@ -704,30 +666,23 @@ spec:
704666
description: |-
705667
The current state of the table:
706668
707-
708669
* CREATING - The table is being created.
709670
710-
711671
* UPDATING - The table/index configuration is being updated. The table/index
712672
remains available for data operations when UPDATING.
713673
714-
715674
* DELETING - The table is being deleted.
716675
717-
718676
* ACTIVE - The table is ready for use.
719677
720-
721678
* INACCESSIBLE_ENCRYPTION_CREDENTIALS - The KMS key used to encrypt the
722679
table in inaccessible. Table operations may fail due to failure to use
723680
the KMS key. DynamoDB will initiate the table archival process when a
724681
table's KMS key remains inaccessible for more than seven days.
725682
726-
727683
* ARCHIVING - The table is being archived. Operations are not allowed
728684
until archival is complete.
729685
730-
731686
* ARCHIVED - The table has been archived. See the ArchivalReason for more
732687
information.
733688
type: string

0 commit comments

Comments
 (0)