Skip to content

Commit 1e45637

Browse files
Update to ACK runtime 0.7.1 (#10)
Brings in ACK runtime 0.7.1 and updates the generator to support adopting Backups. By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent a40f3be commit 1e45637

24 files changed

+176
-61
lines changed
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
ack_generate_info:
2-
build_date: "2021-06-24T15:42:29Z"
3-
build_hash: 9c35918f8a98b41ada10cb3aa460dbf463428463
4-
go_version: go1.16.4 linux/amd64
5-
version: v0.2.3
6-
api_directory_checksum: 165a8edaf7a95b18c593e1d194033807a48af063
2+
build_date: "2021-07-21T20:07:28Z"
3+
build_hash: b1805be8f7a901c16ae6b451054dbdaf100285b2
4+
go_version: go1.15.6 linux/amd64
5+
version: v0.7.0
6+
api_directory_checksum: c1d144a18336326f141e97e6800b47f64ed992cc
77
api_version: v1alpha1
8-
aws_sdk_go_version: v1.38.60
8+
aws_sdk_go_version: 1.38.60
99
generator_config_info:
10-
file_checksum: d5c4e7713b1f255a7eca67a8c829344452bb49d4
10+
file_checksum: 3d4ab94742ecf92212b94a5e47bdda8258589718
1111
original_file_name: generator.yaml
1212
last_modification:
1313
reason: API generation
14-
timestamp: 2021-06-24 15:42:31.137979168 +0000 UTC
14+
timestamp: 2021-07-21 20:07:33.392511606 +0000 UTC

apis/v1alpha1/backup.go

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apis/v1alpha1/generator.yaml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
operations:
2+
UpdateGlobalTable:
3+
operation_type: Delete
4+
resource_name: GlobalTable
5+
DescribeBackup:
6+
output_wrapper_field_path: BackupDescription.BackupDetails
7+
primary_identifier_field_name: BackupArn
8+
resources:
9+
Table:
10+
exceptions:
11+
errors:
12+
404:
13+
code: ResourceNotFoundException
14+
terminal_codes:
15+
- InternalServerError
16+
- LimitExceededException
17+
- ResourceInUseException
18+
hooks:
19+
sdk_read_one_post_set_output:
20+
template_path: hooks/table/sdk_read_one_post_set_output.go.tpl
21+
sdk_update_pre_build_request:
22+
template_path: hooks/table/sdk_update_pre_build_request.go.tpl
23+
sdk_delete_pre_build_request:
24+
template_path: hooks/table/sdk_delete_pre_build_request.go.tpl
25+
GlobalTable:
26+
exceptions:
27+
errors:
28+
404:
29+
code: GlobalTableNotFoundException
30+
hooks:
31+
sdk_delete_post_build_request:
32+
code: customSetDeleteInput(r, input)
33+
Backup:
34+
exceptions:
35+
errors:
36+
404:
37+
code: BackupNotFoundException
38+
hooks:
39+
sdk_read_one_post_set_output:
40+
template_path: hooks/backup/sdk_read_one_post_set_output.go.tpl

apis/v1alpha1/global_table.go

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apis/v1alpha1/table.go

Lines changed: 15 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cmd/controller/main.go

Lines changed: 28 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,6 @@ spec:
133133
- type
134134
type: object
135135
type: array
136-
required:
137-
- ackResourceMetadata
138-
- conditions
139136
type: object
140137
type: object
141138
served: true

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,6 @@ spec:
122122
table is being updated. \n * DELETING - The global table is being
123123
deleted. \n * ACTIVE - The global table is ready for use."
124124
type: string
125-
required:
126-
- ackResourceMetadata
127-
- conditions
128125
type: object
129126
type: object
130127
served: true

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -522,9 +522,6 @@ spec:
522522
\ until archival is complete. \n * ARCHIVED - The table has
523523
been archived. See the ArchivalReason for more information."
524524
type: string
525-
required:
526-
- ackResourceMetadata
527-
- conditions
528525
type: object
529526
type: object
530527
served: true

config/crd/common/bases/services.k8s.aws_adoptedresources.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@ spec:
4040
description: AWSIdentifiers provide all unique ways to reference an
4141
AWS resource.
4242
properties:
43+
additionalKeys:
44+
additionalProperties:
45+
type: string
46+
description: AdditionalKeys represents any additional arbitrary
47+
identifiers used when describing the target resource.
48+
type: object
4349
arn:
4450
description: ARN is the AWS Resource Name for the resource. It
4551
is a globally unique identifier.

0 commit comments

Comments
 (0)