Skip to content

Commit 84e124e

Browse files
authored
Update to ACK runtime v0.30.0, code-generator v0.30.0 (#95)
### 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.
1 parent 4f28460 commit 84e124e

26 files changed

+1361
-1022
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-01-29T07:08:27Z"
3-
build_hash: 92f531cde5631865cfc3dfa778cbc9611f3a64c3
4-
go_version: go1.21.5
5-
version: v0.29.2
2+
build_date: "2024-02-14T04:00:58Z"
3+
build_hash: 947081ffebdeefcf2c61c4ca6d7e68810bdf9d08
4+
go_version: go1.22.0
5+
version: v0.30.0
66
api_directory_checksum: e2b940445088453d2b6df0487da46046b254fe50
77
api_version: v1alpha1
88
aws_sdk_go_version: v1.49.0

apis/v1alpha1/zz_generated.deepcopy.go

-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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.7
9+
newTag: 1.2.8

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

+56-41
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
33
kind: CustomResourceDefinition
44
metadata:
55
annotations:
6-
controller-gen.kubebuilder.io/version: v0.9.2
7-
creationTimestamp: null
6+
controller-gen.kubebuilder.io/version: v0.14.0
87
name: backups.dynamodb.services.k8s.aws
98
spec:
109
group: dynamodb.services.k8s.aws
@@ -44,14 +43,19 @@ spec:
4443
description: Backup is the Schema for the Backups API
4544
properties:
4645
apiVersion:
47-
description: 'APIVersion defines the versioned schema of this representation
48-
of an object. Servers should convert recognized schemas to the latest
49-
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
46+
description: |-
47+
APIVersion defines the versioned schema of this representation of an object.
48+
Servers should convert recognized schemas to the latest internal value, and
49+
may reject unrecognized values.
50+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
5051
type: string
5152
kind:
52-
description: 'Kind is a string value representing the REST resource this
53-
object represents. Servers may infer this from the endpoint the client
54-
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
53+
description: |-
54+
Kind is a string value representing the REST resource this object represents.
55+
Servers may infer this from the endpoint the client submits requests to.
56+
Cannot be updated.
57+
In CamelCase.
58+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
5559
type: string
5660
metadata:
5761
type: object
@@ -72,24 +76,26 @@ spec:
7276
description: BackupStatus defines the observed state of Backup
7377
properties:
7478
ackResourceMetadata:
75-
description: All CRs managed by ACK have a common `Status.ACKResourceMetadata`
76-
member that is used to contain resource sync state, account ownership,
79+
description: |-
80+
All CRs managed by ACK have a common `Status.ACKResourceMetadata` member
81+
that is used to contain resource sync state, account ownership,
7782
constructed ARN for the resource
7883
properties:
7984
arn:
80-
description: 'ARN is the Amazon Resource Name for the resource.
81-
This is a globally-unique identifier and is set only by the
82-
ACK service controller once the controller has orchestrated
83-
the creation of the resource OR when it has verified that an
84-
"adopted" resource (a resource where the ARN annotation was
85-
set by the Kubernetes user on the CR) exists and matches the
86-
supplied CR''s Spec field values. TODO(vijat@): Find a better
87-
strategy for resources that do not have ARN in CreateOutputResponse
88-
https://github.com/aws/aws-controllers-k8s/issues/270'
85+
description: |-
86+
ARN is the Amazon Resource Name for the resource. This is a
87+
globally-unique identifier and is set only by the ACK service controller
88+
once the controller has orchestrated the creation of the resource OR
89+
when it has verified that an "adopted" resource (a resource where the
90+
ARN annotation was set by the Kubernetes user on the CR) exists and
91+
matches the supplied CR's Spec field values.
92+
TODO(vijat@): Find a better strategy for resources that do not have ARN in CreateOutputResponse
93+
https://github.com/aws/aws-controllers-k8s/issues/270
8994
type: string
9095
ownerAccountID:
91-
description: OwnerAccountID is the AWS Account ID of the account
92-
that owns the backend AWS service API resource.
96+
description: |-
97+
OwnerAccountID is the AWS Account ID of the account that owns the
98+
backend AWS service API resource.
9399
type: string
94100
region:
95101
description: Region is the AWS region in which the resource exists
@@ -105,39 +111,48 @@ spec:
105111
format: date-time
106112
type: string
107113
backupExpiryDateTime:
108-
description: Time at which the automatic on-demand backup created
109-
by DynamoDB will expire. This SYSTEM on-demand backup expires automatically
110-
35 days after its creation.
114+
description: |-
115+
Time at which the automatic on-demand backup created by DynamoDB will expire.
116+
This SYSTEM on-demand backup expires automatically 35 days after its creation.
111117
format: date-time
112118
type: string
113119
backupSizeBytes:
114-
description: Size of the backup in bytes. DynamoDB updates this value
115-
approximately every six hours. Recent changes might not be reflected
116-
in this value.
120+
description: |-
121+
Size of the backup in bytes. DynamoDB updates this value approximately every
122+
six hours. Recent changes might not be reflected in this value.
117123
format: int64
118124
type: integer
119125
backupStatus:
120126
description: 'Backup can be in one of the following states: CREATING,
121127
ACTIVE, DELETED.'
122128
type: string
123129
backupType:
124-
description: "BackupType: \n * USER - You create and manage these
125-
using the on-demand backup feature. \n * SYSTEM - If you delete
126-
a table with point-in-time recovery enabled, a SYSTEM backup is
127-
automatically created and is retained for 35 days (at no additional
128-
cost). System backups allow you to restore the deleted table to
129-
the state it was in just before the point of deletion. \n * AWS_BACKUP
130-
- On-demand backup created by you from Backup service."
130+
description: |-
131+
BackupType:
132+
133+
134+
* USER - You create and manage these using the on-demand backup feature.
135+
136+
137+
* SYSTEM - If you delete a table with point-in-time recovery enabled,
138+
a SYSTEM backup is automatically created and is retained for 35 days (at
139+
no additional cost). System backups allow you to restore the deleted table
140+
to the state it was in just before the point of deletion.
141+
142+
143+
* AWS_BACKUP - On-demand backup created by you from Backup service.
131144
type: string
132145
conditions:
133-
description: All CRS managed by ACK have a common `Status.Conditions`
134-
member that contains a collection of `ackv1alpha1.Condition` objects
135-
that describe the various terminal states of the CR and its backend
136-
AWS service API resource
146+
description: |-
147+
All CRS managed by ACK have a common `Status.Conditions` member that
148+
contains a collection of `ackv1alpha1.Condition` objects that describe
149+
the various terminal states of the CR and its backend AWS service API
150+
resource
137151
items:
138-
description: Condition is the common struct used by all CRDs managed
139-
by ACK service controllers to indicate terminal states of the
140-
CR and its backend AWS service API resource
152+
description: |-
153+
Condition is the common struct used by all CRDs managed by ACK service
154+
controllers to indicate terminal states of the CR and its backend AWS
155+
service API resource
141156
properties:
142157
lastTransitionTime:
143158
description: Last time the condition transitioned from one status

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

+55-34
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
33
kind: CustomResourceDefinition
44
metadata:
55
annotations:
6-
controller-gen.kubebuilder.io/version: v0.9.2
7-
creationTimestamp: null
6+
controller-gen.kubebuilder.io/version: v0.14.0
87
name: globaltables.dynamodb.services.k8s.aws
98
spec:
109
group: dynamodb.services.k8s.aws
@@ -21,20 +20,28 @@ spec:
2120
description: GlobalTable is the Schema for the GlobalTables API
2221
properties:
2322
apiVersion:
24-
description: 'APIVersion defines the versioned schema of this representation
25-
of an object. Servers should convert recognized schemas to the latest
26-
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
23+
description: |-
24+
APIVersion defines the versioned schema of this representation of an object.
25+
Servers should convert recognized schemas to the latest internal value, and
26+
may reject unrecognized values.
27+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
2728
type: string
2829
kind:
29-
description: 'Kind is a string value representing the REST resource this
30-
object represents. Servers may infer this from the endpoint the client
31-
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
30+
description: |-
31+
Kind is a string value representing the REST resource this object represents.
32+
Servers may infer this from the endpoint the client submits requests to.
33+
Cannot be updated.
34+
In CamelCase.
35+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
3236
type: string
3337
metadata:
3438
type: object
3539
spec:
36-
description: "GlobalTableSpec defines the desired state of GlobalTable.
37-
\n Represents the properties of a global table."
40+
description: |-
41+
GlobalTableSpec defines the desired state of GlobalTable.
42+
43+
44+
Represents the properties of a global table.
3845
properties:
3946
globalTableName:
4047
description: The global table name.
@@ -56,24 +63,26 @@ spec:
5663
description: GlobalTableStatus defines the observed state of GlobalTable
5764
properties:
5865
ackResourceMetadata:
59-
description: All CRs managed by ACK have a common `Status.ACKResourceMetadata`
60-
member that is used to contain resource sync state, account ownership,
66+
description: |-
67+
All CRs managed by ACK have a common `Status.ACKResourceMetadata` member
68+
that is used to contain resource sync state, account ownership,
6169
constructed ARN for the resource
6270
properties:
6371
arn:
64-
description: 'ARN is the Amazon Resource Name for the resource.
65-
This is a globally-unique identifier and is set only by the
66-
ACK service controller once the controller has orchestrated
67-
the creation of the resource OR when it has verified that an
68-
"adopted" resource (a resource where the ARN annotation was
69-
set by the Kubernetes user on the CR) exists and matches the
70-
supplied CR''s Spec field values. TODO(vijat@): Find a better
71-
strategy for resources that do not have ARN in CreateOutputResponse
72-
https://github.com/aws/aws-controllers-k8s/issues/270'
72+
description: |-
73+
ARN is the Amazon Resource Name for the resource. This is a
74+
globally-unique identifier and is set only by the ACK service controller
75+
once the controller has orchestrated the creation of the resource OR
76+
when it has verified that an "adopted" resource (a resource where the
77+
ARN annotation was set by the Kubernetes user on the CR) exists and
78+
matches the supplied CR's Spec field values.
79+
TODO(vijat@): Find a better strategy for resources that do not have ARN in CreateOutputResponse
80+
https://github.com/aws/aws-controllers-k8s/issues/270
7381
type: string
7482
ownerAccountID:
75-
description: OwnerAccountID is the AWS Account ID of the account
76-
that owns the backend AWS service API resource.
83+
description: |-
84+
OwnerAccountID is the AWS Account ID of the account that owns the
85+
backend AWS service API resource.
7786
type: string
7887
region:
7988
description: Region is the AWS region in which the resource exists
@@ -84,14 +93,16 @@ spec:
8493
- region
8594
type: object
8695
conditions:
87-
description: All CRS managed by ACK have a common `Status.Conditions`
88-
member that contains a collection of `ackv1alpha1.Condition` objects
89-
that describe the various terminal states of the CR and its backend
90-
AWS service API resource
96+
description: |-
97+
All CRS managed by ACK have a common `Status.Conditions` member that
98+
contains a collection of `ackv1alpha1.Condition` objects that describe
99+
the various terminal states of the CR and its backend AWS service API
100+
resource
91101
items:
92-
description: Condition is the common struct used by all CRDs managed
93-
by ACK service controllers to indicate terminal states of the
94-
CR and its backend AWS service API resource
102+
description: |-
103+
Condition is the common struct used by all CRDs managed by ACK service
104+
controllers to indicate terminal states of the CR and its backend AWS
105+
service API resource
95106
properties:
96107
lastTransitionTime:
97108
description: Last time the condition transitioned from one status
@@ -121,10 +132,20 @@ spec:
121132
format: date-time
122133
type: string
123134
globalTableStatus:
124-
description: "The current state of the global table: \n * CREATING
125-
- The global table is being created. \n * UPDATING - The global
126-
table is being updated. \n * DELETING - The global table is being
127-
deleted. \n * ACTIVE - The global table is ready for use."
135+
description: |-
136+
The current state of the global table:
137+
138+
139+
* CREATING - The global table is being created.
140+
141+
142+
* UPDATING - The global table is being updated.
143+
144+
145+
* DELETING - The global table is being deleted.
146+
147+
148+
* ACTIVE - The global table is ready for use.
128149
type: string
129150
type: object
130151
type: object

0 commit comments

Comments
 (0)