Skip to content

Commit 15b7e88

Browse files
authored
Add ServerlessCacheSnapshot to elasticache (#182)
ACK Agent changes adding ServerlessCacheSnapshot to elasticache-controller
1 parent 2b606f4 commit 15b7e88

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+3029
-38
lines changed
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
ack_generate_info:
2-
build_date: "2025-08-22T20:47:49Z"
3-
build_hash: b6df33f8c7f55b234555c0b578b8de43c74771a8
4-
go_version: go1.24.5
5-
version: v0.51.0
6-
api_directory_checksum: 5a16cea62c98405d3786f1ee1aad22ff3fafc7d6
2+
build_date: "2025-09-05T22:54:05Z"
3+
build_hash: 1d9076d0211773ff8ab8682b28b912c7ece10676
4+
go_version: go1.25.0
5+
version: v0.51.0-2-g1d9076d
6+
api_directory_checksum: 65127f2f0a24a801fad4e043be37857f0e6bcfb9
77
api_version: v1alpha1
88
aws_sdk_go_version: v1.32.6
99
generator_config_info:
10-
file_checksum: 8e6d3a835f5f6a46937ced911945d641a2145303
10+
file_checksum: 64095ac8a26b456580bc303aceec26581b1b6f6a
1111
original_file_name: generator.yaml
1212
last_modification:
1313
reason: API generation

apis/v1alpha1/generator.yaml

Lines changed: 45 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,50 @@ resources:
348348
json_path: .status.endpoint.address
349349
type: string
350350
index: 20
351+
ServerlessCacheSnapshot:
352+
update_operation:
353+
custom_method_name: customUpdateServerlessCacheSnapshot
354+
fields:
355+
ServerlessCacheName:
356+
is_immutable: true
357+
references:
358+
resource: ServerlessCache
359+
path: Spec.ServerlessCacheName
360+
ServerlessCacheSnapshotName:
361+
is_immutable: true
362+
kmsKeyId:
363+
is_immutable: true
364+
references:
365+
service_name: kms
366+
resource: Key
367+
path: Status.ACKResourceMetadata.ARN
368+
exceptions:
369+
errors:
370+
404:
371+
code: ServerlessCacheSnapshotNotFoundFault
372+
terminal_codes:
373+
- ServerlessCacheSnapshotAlreadyExistsFault
374+
- InvalidParameterValueException
375+
hooks:
376+
sdk_create_post_set_output:
377+
template_path: hooks/serverless_cache_snapshot/sdk_create_post_set_output.go.tpl
378+
sdk_read_many_post_set_output:
379+
template_path: hooks/serverless_cache_snapshot/sdk_read_many_post_set_output.go.tpl
380+
print:
381+
add_age_column: true
382+
add_synced_column: true
383+
order_by: index
384+
additional_columns:
385+
- name: STATUS
386+
json_path: .status.status
387+
type: string
388+
index: 10
389+
synced:
390+
when:
391+
- path: Status.Status
392+
in:
393+
- available
394+
- create_failed
351395
operations:
352396
DescribeServerlessCaches:
353397
operation_type:
@@ -391,7 +435,6 @@ operations:
391435
ApplyImmediately: aws.Bool(true)
392436
ignore:
393437
resource_names:
394-
- ServerlessCacheSnapshot
395438
- GlobalReplicationGroup
396439
- CacheSecurityGroup
397440
field_paths:
@@ -430,4 +473,4 @@ ignore:
430473
- ModifyReplicationGroupOutput.ReplicationGroup.ClusterMode
431474
- ModifyReplicationGroupOutput.ReplicationGroup.PendingModifiedValues.ClusterMode
432475
- Subnet.SupportedNetworkTypes
433-
- CreateReplicationGroupInput.ServerlessCacheSnapshotName
476+
- CreateReplicationGroupInput.ServerlessCacheSnapshotName

apis/v1alpha1/serverless_cache_snapshot.go

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

apis/v1alpha1/types.go

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

0 commit comments

Comments
 (0)