Skip to content

Update to ACK runtime 0.7.1 #10

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jul 22, 2021
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions apis/v1alpha1/ack-generate-metadata.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
ack_generate_info:
build_date: "2021-06-24T15:42:29Z"
build_hash: 9c35918f8a98b41ada10cb3aa460dbf463428463
go_version: go1.16.4 linux/amd64
version: v0.2.3
api_directory_checksum: 165a8edaf7a95b18c593e1d194033807a48af063
build_date: "2021-07-21T20:07:28Z"
build_hash: b1805be8f7a901c16ae6b451054dbdaf100285b2
go_version: go1.15.6 linux/amd64
version: v0.7.0
api_directory_checksum: c1d144a18336326f141e97e6800b47f64ed992cc
api_version: v1alpha1
aws_sdk_go_version: v1.38.60
aws_sdk_go_version: 1.38.60
generator_config_info:
file_checksum: d5c4e7713b1f255a7eca67a8c829344452bb49d4
file_checksum: 3d4ab94742ecf92212b94a5e47bdda8258589718
original_file_name: generator.yaml
last_modification:
reason: API generation
timestamp: 2021-06-24 15:42:31.137979168 +0000 UTC
timestamp: 2021-07-21 20:07:33.392511606 +0000 UTC
7 changes: 7 additions & 0 deletions apis/v1alpha1/backup.go

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

40 changes: 40 additions & 0 deletions apis/v1alpha1/generator.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
operations:
UpdateGlobalTable:
operation_type: Delete
resource_name: GlobalTable
DescribeBackup:
output_wrapper_field_path: BackupDescription.BackupDetails
primary_identifier_field_name: BackupArn
resources:
Table:
exceptions:
errors:
404:
code: ResourceNotFoundException
terminal_codes:
- InternalServerError
- LimitExceededException
- ResourceInUseException
hooks:
sdk_read_one_post_set_output:
template_path: hooks/table/sdk_read_one_post_set_output.go.tpl
sdk_update_pre_build_request:
template_path: hooks/table/sdk_update_pre_build_request.go.tpl
sdk_delete_pre_build_request:
template_path: hooks/table/sdk_delete_pre_build_request.go.tpl
GlobalTable:
exceptions:
errors:
404:
code: GlobalTableNotFoundException
hooks:
sdk_delete_post_build_request:
code: customSetDeleteInput(r, input)
Backup:
exceptions:
errors:
404:
code: BackupNotFoundException
hooks:
sdk_read_one_post_set_output:
template_path: hooks/backup/sdk_read_one_post_set_output.go.tpl
4 changes: 4 additions & 0 deletions apis/v1alpha1/global_table.go

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

15 changes: 15 additions & 0 deletions apis/v1alpha1/table.go

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

29 changes: 28 additions & 1 deletion cmd/controller/main.go

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

3 changes: 0 additions & 3 deletions config/crd/bases/dynamodb.services.k8s.aws_backups.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,6 @@ spec:
- type
type: object
type: array
required:
- ackResourceMetadata
- conditions
type: object
type: object
served: true
Expand Down
3 changes: 0 additions & 3 deletions config/crd/bases/dynamodb.services.k8s.aws_globaltables.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,6 @@ spec:
table is being updated. \n * DELETING - The global table is being
deleted. \n * ACTIVE - The global table is ready for use."
type: string
required:
- ackResourceMetadata
- conditions
type: object
type: object
served: true
Expand Down
3 changes: 0 additions & 3 deletions config/crd/bases/dynamodb.services.k8s.aws_tables.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -522,9 +522,6 @@ spec:
\ until archival is complete. \n * ARCHIVED - The table has
been archived. See the ArchivalReason for more information."
type: string
required:
- ackResourceMetadata
- conditions
type: object
type: object
served: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ spec:
description: AWSIdentifiers provide all unique ways to reference an
AWS resource.
properties:
additionalKeys:
additionalProperties:
type: string
description: AdditionalKeys represents any additional arbitrary
identifiers used when describing the target resource.
type: object
arn:
description: ARN is the AWS Resource Name for the resource. It
is a globally unique identifier.
Expand Down
1 change: 1 addition & 0 deletions generator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ operations:
resource_name: GlobalTable
DescribeBackup:
output_wrapper_field_path: BackupDescription.BackupDetails
primary_identifier_field_name: BackupArn
resources:
Table:
exceptions:
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/aws-controllers-k8s/dynamodb-controller
go 1.14

require (
github.com/aws-controllers-k8s/runtime v0.2.3
github.com/aws-controllers-k8s/runtime v0.7.0
github.com/aws/aws-sdk-go v1.38.47
github.com/go-logr/logr v0.1.0
github.com/spf13/pflag v1.0.5
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ github.com/andreyvit/diff v0.0.0-20170406064948-c7f18ee00883/go.mod h1:rCTlJbsFo
github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6/go.mod h1:grANhF5doyWs3UAsr3K4I6qtAmlQcZDesFNEHPZAzj8=
github.com/asaskevich/govalidator v0.0.0-20180720115003-f9ffefc3facf/go.mod h1:lB+ZfQJz7igIIfQNfa7Ml4HSf2uFQQRzpGGRXenZAgY=
github.com/asaskevich/govalidator v0.0.0-20190424111038-f61b66f89f4a/go.mod h1:lB+ZfQJz7igIIfQNfa7Ml4HSf2uFQQRzpGGRXenZAgY=
github.com/aws-controllers-k8s/runtime v0.2.3 h1:pDDSXOJj5QLlC9OcgnGujeocQEg5U1oqQw3kUSDefLU=
github.com/aws-controllers-k8s/runtime v0.2.3/go.mod h1:xA2F18PJerBHaqrS4de1lpP7skeSMeStkmh+3x5sWvw=
github.com/aws-controllers-k8s/runtime v0.7.0 h1:A+55gZVCXiO9EUlCz8MCcquMrcyPYzMLUXdpfOiOUDc=
github.com/aws-controllers-k8s/runtime v0.7.0/go.mod h1:xA2F18PJerBHaqrS4de1lpP7skeSMeStkmh+3x5sWvw=
github.com/aws/aws-sdk-go v1.37.4/go.mod h1:hcU610XS61/+aQV88ixoOzUoG7v3b31pl2zKMmprdro=
github.com/aws/aws-sdk-go v1.38.47 h1:yWOz6zlDCiY3zvebYOZrI1LqCq6zWPWC5Cfe+mBcPos=
github.com/aws/aws-sdk-go v1.38.47/go.mod h1:hcU610XS61/+aQV88ixoOzUoG7v3b31pl2zKMmprdro=
Expand Down
5 changes: 3 additions & 2 deletions pkg/resource/backup/manager.go

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

6 changes: 2 additions & 4 deletions pkg/resource/backup/resource.go

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

21 changes: 14 additions & 7 deletions pkg/resource/backup/sdk.go

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

Loading