Skip to content
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

Add support for tables ContinuousBackup #77

Merged
merged 4 commits into from
Jul 20, 2023
Merged
Show file tree
Hide file tree
Changes from all 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
8 changes: 4 additions & 4 deletions apis/v1alpha1/ack-generate-metadata.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
ack_generate_info:
build_date: "2023-05-15T23:40:33Z"
build_date: "2023-07-20T09:41:41Z"
build_hash: 8f3ba427974fd6e769926778d54834eaee3b81a3
go_version: go1.19
go_version: go1.20.5
version: v0.26.1
api_directory_checksum: 62a4051ba2ded255ad270b491703d3c14440b2c7
api_directory_checksum: 7d367fcbd95521797ddaf41af226deeac4098ff3
api_version: v1alpha1
aws_sdk_go_version: v1.44.93
generator_config_info:
file_checksum: 0b7493aa8cdf19370936a973ed31804875d2dfba
file_checksum: eb06942b1bdc2a26a2c51d674d061b72385c2634
original_file_name: generator.yaml
last_modification:
reason: API generation
7 changes: 6 additions & 1 deletion apis/v1alpha1/generator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ resources:
from:
operation: UpdateTimeToLive
path: TimeToLiveSpecification
ContinuousBackups:
is_required: false
from:
operation: UpdateContinuousBackups
path: PointInTimeRecoverySpecification
AttributeDefinitions:
compare:
is_ignored: true
Expand Down Expand Up @@ -134,4 +139,4 @@ resources:
type: string
- name: STATUS
json_path: .status.backupStatus
type: string
type: string
2 changes: 2 additions & 0 deletions apis/v1alpha1/table.go

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

52 changes: 47 additions & 5 deletions apis/v1alpha1/types.go

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

95 changes: 95 additions & 0 deletions apis/v1alpha1/zz_generated.deepcopy.go

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

7 changes: 7 additions & 0 deletions config/crd/bases/dynamodb.services.k8s.aws_tables.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,13 @@ spec:
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
continuousBackups:
description: Represents the settings used to enable point in time
recovery.
properties:
pointInTimeRecoveryEnabled:
type: boolean
type: object
globalSecondaryIndexes:
description: "One or more global secondary indexes (the maximum is
20) to be created on the table. Each global secondary index in the
Expand Down
7 changes: 6 additions & 1 deletion generator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ resources:
from:
operation: UpdateTimeToLive
path: TimeToLiveSpecification
ContinuousBackups:
is_required: false
from:
operation: UpdateContinuousBackups
path: PointInTimeRecoverySpecification
AttributeDefinitions:
compare:
is_ignored: true
Expand Down Expand Up @@ -134,4 +139,4 @@ resources:
type: string
- name: STATUS
json_path: .status.backupStatus
type: string
type: string
7 changes: 7 additions & 0 deletions helm/crds/dynamodb.services.k8s.aws_tables.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,13 @@ spec:
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
continuousBackups:
description: Represents the settings used to enable point in time
recovery.
properties:
pointInTimeRecoveryEnabled:
type: boolean
type: object
globalSecondaryIndexes:
description: "One or more global secondary indexes (the maximum is
20) to be created on the table. Each global secondary index in the
Expand Down
11 changes: 11 additions & 0 deletions pkg/resource/table/delta.go

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

Loading