Skip to content

Commit

Permalink
Update to ACK runtime v0.39.0, code-generator v0.39.1 (#110)
Browse files Browse the repository at this point in the history
### 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.
  • Loading branch information
ack-bot authored Oct 12, 2024
1 parent 542255f commit 525ceed
Show file tree
Hide file tree
Showing 20 changed files with 133 additions and 375 deletions.
8 changes: 4 additions & 4 deletions apis/v1alpha1/ack-generate-metadata.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
ack_generate_info:
build_date: "2024-08-29T17:03:28Z"
build_hash: f8f98563404066ac3340db0a049d2e530e5c51cc
go_version: go1.22.5
version: v0.38.1
build_date: "2024-10-10T03:57:57Z"
build_hash: 36c2d234498c2bc4f60773ab8df632af4067f43b
go_version: go1.23.2
version: v0.39.1
api_directory_checksum: 0bcf58c929c084655d281b5a9e8be5becc904fb8
api_version: v1alpha1
aws_sdk_go_version: v1.49.0
Expand Down
2 changes: 1 addition & 1 deletion config/controller/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ kind: Kustomization
images:
- name: controller
newName: public.ecr.aws/aws-controllers-k8s/dynamodb-controller
newTag: 1.2.14
newTag: 1.2.15
6 changes: 1 addition & 5 deletions config/crd/bases/dynamodb.services.k8s.aws_backups.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.14.0
controller-gen.kubebuilder.io/version: v0.16.2
name: backups.dynamodb.services.k8s.aws
spec:
group: dynamodb.services.k8s.aws
Expand Down Expand Up @@ -89,7 +89,6 @@ spec:
when it has verified that an "adopted" resource (a resource where the
ARN annotation was set by the Kubernetes user on the CR) exists and
matches the supplied CR's Spec field values.
TODO(vijat@): Find a better strategy for resources that do not have ARN in CreateOutputResponse
https://github.com/aws/aws-controllers-k8s/issues/270
type: string
ownerAccountID:
Expand Down Expand Up @@ -130,16 +129,13 @@ spec:
description: |-
BackupType:
* USER - You create and manage these using the on-demand backup feature.
* SYSTEM - If you delete a table with point-in-time recovery enabled,
a SYSTEM backup is automatically created and is retained for 35 days (at
no additional cost). System backups allow you to restore the deleted table
to the state it was in just before the point of deletion.
* AWS_BACKUP - On-demand backup created by you from Backup service.
type: string
conditions:
Expand Down
8 changes: 1 addition & 7 deletions config/crd/bases/dynamodb.services.k8s.aws_globaltables.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.14.0
controller-gen.kubebuilder.io/version: v0.16.2
name: globaltables.dynamodb.services.k8s.aws
spec:
group: dynamodb.services.k8s.aws
Expand Down Expand Up @@ -40,7 +40,6 @@ spec:
description: |-
GlobalTableSpec defines the desired state of GlobalTable.
Represents the properties of a global table.
properties:
globalTableName:
Expand Down Expand Up @@ -76,7 +75,6 @@ spec:
when it has verified that an "adopted" resource (a resource where the
ARN annotation was set by the Kubernetes user on the CR) exists and
matches the supplied CR's Spec field values.
TODO(vijat@): Find a better strategy for resources that do not have ARN in CreateOutputResponse
https://github.com/aws/aws-controllers-k8s/issues/270
type: string
ownerAccountID:
Expand Down Expand Up @@ -135,16 +133,12 @@ spec:
description: |-
The current state of the global table:
* CREATING - The global table is being created.
* UPDATING - The global table is being updated.
* DELETING - The global table is being deleted.
* ACTIVE - The global table is ready for use.
type: string
type: object
Expand Down
47 changes: 1 addition & 46 deletions config/crd/bases/dynamodb.services.k8s.aws_tables.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.14.0
controller-gen.kubebuilder.io/version: v0.16.2
name: tables.dynamodb.services.k8s.aws
spec:
group: dynamodb.services.k8s.aws
Expand Down Expand Up @@ -74,11 +74,9 @@ spec:
Controls how you are charged for read and write throughput and how you manage
capacity. This setting can be changed later.
* PROVISIONED - We recommend using PROVISIONED for predictable workloads.
PROVISIONED sets the billing mode to Provisioned Mode (https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.ReadWriteCapacityMode.html#HowItWorks.ProvisionedThroughput.Manual).
* PAY_PER_REQUEST - We recommend using PAY_PER_REQUEST for unpredictable
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).
type: string
Expand All @@ -99,14 +97,11 @@ spec:
One or more global secondary indexes (the maximum is 20) to be created on
the table. Each global secondary index in the array includes the following:
* IndexName - The name of the global secondary index. Must be unique only
for this table.
* KeySchema - Specifies the key schema for the global secondary index.
* Projection - Specifies attributes that are copied (projected) from the
table into the index. These are in addition to the primary key attributes
and index key attributes, which are automatically projected. Each attribute
Expand All @@ -121,7 +116,6 @@ spec:
the same attribute into two different indexes, this counts as two distinct
attributes when determining the total.
* ProvisionedThroughput - The provisioned throughput settings for the
global secondary index, consisting of read and write capacity units.
items:
Expand All @@ -135,13 +129,11 @@ spec:
Represents a single element of a key schema. A key schema specifies the attributes
that make up the primary key of a table, or the key attributes of an index.
A KeySchemaElement represents exactly one attribute of the primary key. For
example, a simple primary key would be represented by one KeySchemaElement
(for the partition key). A composite primary key would require one KeySchemaElement
for the partition key, and another KeySchemaElement for the sort key.
A KeySchemaElement must be a scalar, top-level attribute (not a nested attribute).
The data type must be one of String, Number, or Binary. The attribute cannot
be nested within a List or a Map.
Expand Down Expand Up @@ -170,7 +162,6 @@ spec:
Represents the provisioned throughput settings for a specified table or index.
The settings can be modified using the UpdateTable operation.
For current minimum and maximum provisioned throughput values, see Service,
Account, and Table Quotas (https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Limits.html)
in the Amazon DynamoDB Developer Guide.
Expand All @@ -191,51 +182,41 @@ spec:
array. For more information, see Data Model (https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DataModel.html)
in the Amazon DynamoDB Developer Guide.
Each KeySchemaElement in the array is composed of:
* AttributeName - The name of this key attribute.
* KeyType - The role that the key attribute will assume: HASH - partition
key RANGE - sort key
The partition key of an item is also known as its hash attribute. The term
"hash attribute" derives from the DynamoDB usage of an internal hash function
to evenly distribute data items across partitions, based on their partition
key values.
The sort key of an item is also known as its range attribute. The term "range
attribute" derives from the way DynamoDB stores items with the same partition
key physically close together, in sorted order by the sort key value.
For a simple primary key (partition key), you must provide exactly one element
with a KeyType of HASH.
For a composite primary key (partition key and sort key), you must provide
exactly two elements, in this order: The first element must have a KeyType
of HASH, and the second element must have a KeyType of RANGE.
For more information, see Working with Tables (https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.html#WorkingWithTables.primary.key)
in the Amazon DynamoDB Developer Guide.
items:
description: |-
Represents a single element of a key schema. A key schema specifies the attributes
that make up the primary key of a table, or the key attributes of an index.
A KeySchemaElement represents exactly one attribute of the primary key. For
example, a simple primary key would be represented by one KeySchemaElement
(for the partition key). A composite primary key would require one KeySchemaElement
for the partition key, and another KeySchemaElement for the sort key.
A KeySchemaElement must be a scalar, top-level attribute (not a nested attribute).
The data type must be one of String, Number, or Binary. The attribute cannot
be nested within a List or a Map.
Expand All @@ -253,18 +234,14 @@ spec:
GB size limit per partition key value; otherwise, the size of a local secondary
index is unconstrained.
Each local secondary index in the array includes the following:
* IndexName - The name of the local secondary index. Must be unique only
for this table.
* KeySchema - Specifies the key schema for the local secondary index.
The key schema must begin with the same partition key as the table.
* Projection - Specifies attributes that are copied (projected) from the
table into the index. These are in addition to the primary key attributes
and index key attributes, which are automatically projected. Each attribute
Expand All @@ -289,13 +266,11 @@ spec:
Represents a single element of a key schema. A key schema specifies the attributes
that make up the primary key of a table, or the key attributes of an index.
A KeySchemaElement represents exactly one attribute of the primary key. For
example, a simple primary key would be represented by one KeySchemaElement
(for the partition key). A composite primary key would require one KeySchemaElement
for the partition key, and another KeySchemaElement for the sort key.
A KeySchemaElement must be a scalar, top-level attribute (not a nested attribute).
The data type must be one of String, Number, or Binary. The attribute cannot
be nested within a List or a Map.
Expand Down Expand Up @@ -326,11 +301,9 @@ spec:
Represents the provisioned throughput settings for a specified table or index.
The settings can be modified using the UpdateTable operation.
If you set BillingMode as PROVISIONED, you must specify this property. If
you set BillingMode as PAY_PER_REQUEST, you cannot specify this property.
For current minimum and maximum provisioned throughput values, see Service,
Account, and Table Quotas (https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Limits.html)
in the Amazon DynamoDB Developer Guide.
Expand All @@ -356,11 +329,9 @@ spec:
description: |-
The settings for DynamoDB Streams on the table. These settings consist of:
* StreamEnabled - Indicates whether DynamoDB Streams is to be enabled
(true) or disabled (false).
* StreamViewType - When an item in the table is modified, StreamViewType
determines what information is written to the table's stream. Valid values
for StreamViewType are: KEYS_ONLY - Only the key attributes of the modified
Expand Down Expand Up @@ -391,14 +362,12 @@ spec:
Describes a tag. A tag is a key-value pair. You can add up to 50 tags to
a single DynamoDB table.
Amazon Web Services-assigned tag names and values are automatically assigned
the aws: prefix, which the user cannot assign. Amazon Web Services-assigned
tag names do not count towards the tag limit of 50. User-assigned tag names
have the prefix user: in the Cost Allocation Report. You cannot backdate
the application of a tag.
For an overview on tagging DynamoDB resources, see Tagging for DynamoDB (https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Tagging.html)
in the Amazon DynamoDB Developer Guide.
properties:
Expand Down Expand Up @@ -440,7 +409,6 @@ spec:
when it has verified that an "adopted" resource (a resource where the
ARN annotation was set by the Kubernetes user on the CR) exists and
matches the supplied CR's Spec field values.
TODO(vijat@): Find a better strategy for resources that do not have ARN in CreateOutputResponse
https://github.com/aws/aws-controllers-k8s/issues/270
type: string
ownerAccountID:
Expand Down Expand Up @@ -532,13 +500,11 @@ spec:
Represents a single element of a key schema. A key schema specifies the attributes
that make up the primary key of a table, or the key attributes of an index.
A KeySchemaElement represents exactly one attribute of the primary key. For
example, a simple primary key would be represented by one KeySchemaElement
(for the partition key). A composite primary key would require one KeySchemaElement
for the partition key, and another KeySchemaElement for the sort key.
A KeySchemaElement must be a scalar, top-level attribute (not a nested attribute).
The data type must be one of String, Number, or Binary. The attribute cannot
be nested within a List or a Map.
Expand Down Expand Up @@ -605,19 +571,15 @@ spec:
description: |-
A timestamp, in ISO 8601 format, for this stream.
Note that LatestStreamLabel is not a unique identifier for the stream, because
it is possible that a stream from another table might have the same timestamp.
However, the combination of the following three elements is guaranteed to
be unique:
* Amazon Web Services customer ID
* Table name
* StreamLabel
type: string
replicas:
Expand Down Expand Up @@ -704,30 +666,23 @@ spec:
description: |-
The current state of the table:
* CREATING - The table is being created.
* UPDATING - The table/index configuration is being updated. The table/index
remains available for data operations when UPDATING.
* DELETING - The table is being deleted.
* ACTIVE - The table is ready for use.
* INACCESSIBLE_ENCRYPTION_CREDENTIALS - The KMS key used to encrypt the
table in inaccessible. Table operations may fail due to failure to use
the KMS key. DynamoDB will initiate the table archival process when a
table's KMS key remains inaccessible for more than seven days.
* ARCHIVING - The table is being archived. Operations are not allowed
until archival is complete.
* ARCHIVED - The table has been archived. See the ArchivalReason for more
information.
type: string
Expand Down
Loading

0 comments on commit 525ceed

Please sign in to comment.