Skip to content

Commit

Permalink
Update to ACK runtime v0.30.0, code-generator v0.30.0 (#95)
Browse files Browse the repository at this point in the history
### Update to ACK runtime `v0.30.0`, code-generator `v0.30.0`

----------

* ACK code-generator `v0.30.0` [release notes](https://github.com/aws-controllers-k8s/code-generator/releases/tag/v0.30.0)
* ACK runtime `v0.30.0` [release notes](https://github.com/aws-controllers-k8s/runtime/releases/tag/v0.30.0)

----------

NOTE:
This PR increments the release version of service controller from `v1.2.7` to `v1.2.8`

Once this PR is merged, release `v1.2.8` 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.8
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 committed Feb 14, 2024
1 parent 4f28460 commit 84e124e
Show file tree
Hide file tree
Showing 26 changed files with 1,361 additions and 1,022 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-01-29T07:08:27Z"
build_hash: 92f531cde5631865cfc3dfa778cbc9611f3a64c3
go_version: go1.21.5
version: v0.29.2
build_date: "2024-02-14T04:00:58Z"
build_hash: 947081ffebdeefcf2c61c4ca6d7e68810bdf9d08
go_version: go1.22.0
version: v0.30.0
api_directory_checksum: e2b940445088453d2b6df0487da46046b254fe50
api_version: v1alpha1
aws_sdk_go_version: v1.49.0
Expand Down
1 change: 0 additions & 1 deletion apis/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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.7
newTag: 1.2.8
97 changes: 56 additions & 41 deletions config/crd/bases/dynamodb.services.k8s.aws_backups.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: backups.dynamodb.services.k8s.aws
spec:
group: dynamodb.services.k8s.aws
Expand Down Expand Up @@ -44,14 +43,19 @@ spec:
description: Backup is the Schema for the Backups 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
Expand All @@ -72,24 +76,26 @@ spec:
description: BackupStatus defines the observed state of Backup
properties:
ackResourceMetadata:
description: All CRs managed by ACK have a common `Status.ACKResourceMetadata`
member that is used to contain resource sync state, account ownership,
description: |-
All CRs managed by ACK have a common `Status.ACKResourceMetadata` member
that is used to contain resource sync state, account ownership,
constructed ARN for the resource
properties:
arn:
description: 'ARN is the Amazon Resource Name for the resource.
This is a globally-unique identifier and is set only by the
ACK service controller once the controller has orchestrated
the creation of the resource OR 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'
description: |-
ARN is the Amazon Resource Name for the resource. This is a
globally-unique identifier and is set only by the ACK service controller
once the controller has orchestrated the creation of the resource OR
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:
description: OwnerAccountID is the AWS Account ID of the account
that owns the backend AWS service API resource.
description: |-
OwnerAccountID is the AWS Account ID of the account that owns the
backend AWS service API resource.
type: string
region:
description: Region is the AWS region in which the resource exists
Expand All @@ -105,39 +111,48 @@ spec:
format: date-time
type: string
backupExpiryDateTime:
description: Time at which the automatic on-demand backup created
by DynamoDB will expire. This SYSTEM on-demand backup expires automatically
35 days after its creation.
description: |-
Time at which the automatic on-demand backup created by DynamoDB will expire.
This SYSTEM on-demand backup expires automatically 35 days after its creation.
format: date-time
type: string
backupSizeBytes:
description: Size of the backup in bytes. DynamoDB updates this value
approximately every six hours. Recent changes might not be reflected
in this value.
description: |-
Size of the backup in bytes. DynamoDB updates this value approximately every
six hours. Recent changes might not be reflected in this value.
format: int64
type: integer
backupStatus:
description: 'Backup can be in one of the following states: CREATING,
ACTIVE, DELETED.'
type: string
backupType:
description: "BackupType: \n * USER - You create and manage these
using the on-demand backup feature. \n * 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. \n * AWS_BACKUP
- On-demand backup created by you from Backup service."
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:
description: All CRS managed by ACK have a common `Status.Conditions`
member that contains a collection of `ackv1alpha1.Condition` objects
that describe the various terminal states of the CR and its backend
AWS service API resource
description: |-
All CRS managed by ACK have a common `Status.Conditions` member that
contains a collection of `ackv1alpha1.Condition` objects that describe
the various terminal states of the CR and its backend AWS service API
resource
items:
description: Condition is the common struct used by all CRDs managed
by ACK service controllers to indicate terminal states of the
CR and its backend AWS service API resource
description: |-
Condition is the common struct used by all CRDs managed by ACK service
controllers to indicate terminal states of the CR and its backend AWS
service API resource
properties:
lastTransitionTime:
description: Last time the condition transitioned from one status
Expand Down
89 changes: 55 additions & 34 deletions config/crd/bases/dynamodb.services.k8s.aws_globaltables.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: globaltables.dynamodb.services.k8s.aws
spec:
group: dynamodb.services.k8s.aws
Expand All @@ -21,20 +20,28 @@ spec:
description: GlobalTable is the Schema for the GlobalTables 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: "GlobalTableSpec defines the desired state of GlobalTable.
\n Represents the properties of a global table."
description: |-
GlobalTableSpec defines the desired state of GlobalTable.
Represents the properties of a global table.
properties:
globalTableName:
description: The global table name.
Expand All @@ -56,24 +63,26 @@ spec:
description: GlobalTableStatus defines the observed state of GlobalTable
properties:
ackResourceMetadata:
description: All CRs managed by ACK have a common `Status.ACKResourceMetadata`
member that is used to contain resource sync state, account ownership,
description: |-
All CRs managed by ACK have a common `Status.ACKResourceMetadata` member
that is used to contain resource sync state, account ownership,
constructed ARN for the resource
properties:
arn:
description: 'ARN is the Amazon Resource Name for the resource.
This is a globally-unique identifier and is set only by the
ACK service controller once the controller has orchestrated
the creation of the resource OR 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'
description: |-
ARN is the Amazon Resource Name for the resource. This is a
globally-unique identifier and is set only by the ACK service controller
once the controller has orchestrated the creation of the resource OR
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:
description: OwnerAccountID is the AWS Account ID of the account
that owns the backend AWS service API resource.
description: |-
OwnerAccountID is the AWS Account ID of the account that owns the
backend AWS service API resource.
type: string
region:
description: Region is the AWS region in which the resource exists
Expand All @@ -84,14 +93,16 @@ spec:
- region
type: object
conditions:
description: All CRS managed by ACK have a common `Status.Conditions`
member that contains a collection of `ackv1alpha1.Condition` objects
that describe the various terminal states of the CR and its backend
AWS service API resource
description: |-
All CRS managed by ACK have a common `Status.Conditions` member that
contains a collection of `ackv1alpha1.Condition` objects that describe
the various terminal states of the CR and its backend AWS service API
resource
items:
description: Condition is the common struct used by all CRDs managed
by ACK service controllers to indicate terminal states of the
CR and its backend AWS service API resource
description: |-
Condition is the common struct used by all CRDs managed by ACK service
controllers to indicate terminal states of the CR and its backend AWS
service API resource
properties:
lastTransitionTime:
description: Last time the condition transitioned from one status
Expand Down Expand Up @@ -121,10 +132,20 @@ spec:
format: date-time
type: string
globalTableStatus:
description: "The current state of the global table: \n * CREATING
- The global table is being created. \n * UPDATING - The global
table is being updated. \n * DELETING - The global table is being
deleted. \n * ACTIVE - The global table is ready for use."
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
type: object
Expand Down

0 comments on commit 84e124e

Please sign in to comment.