Skip to content

Commit 53eaf3a

Browse files
authored
Add serverlesscache to elasticache (#175)
fixes aws-controllers-k8s/community#2522 Description of changes: - Add support serverlesscache resource By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent ac47345 commit 53eaf3a

32 files changed

+3965
-80
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
ack_generate_info:
2-
build_date: "2025-07-22T21:46:49Z"
2+
build_date: "2025-07-23T02:15:05Z"
33
build_hash: b2dc0f44e0b08f041de14c3944a5cc005ba97c8f
44
go_version: go1.24.5
55
version: v0.50.0
6-
api_directory_checksum: e7d8480a655968a4f441db9509fd5561aa5eb1c4
6+
api_directory_checksum: cd3855ca5e9598e4a45cdc8b295054981b08dbb7
77
api_version: v1alpha1
88
aws_sdk_go_version: v1.32.6
99
generator_config_info:
10-
file_checksum: a9abf28e51c635fa7cc667698abf864c40e7f284
10+
file_checksum: d70e645a0a1ac78d523b7ff0b09ccbfd9bbbfb96
1111
original_file_name: generator.yaml
1212
last_modification:
1313
reason: API generation

apis/v1alpha1/generator.yaml

Lines changed: 54 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,61 @@ resources:
296296
- TagQuotaPerResourceExceeded
297297
update_operation:
298298
custom_method_name: customUpdateUserGroup
299+
ServerlessCache:
300+
update_operation:
301+
custom_method_name: customUpdateServerlessCache
302+
fields:
303+
SecurityGroupIDs:
304+
references:
305+
resource: SecurityGroup
306+
service_name: ec2
307+
path: Status.ID
308+
SubnetIDs:
309+
references:
310+
service_name: ec2
311+
resource: Subnet
312+
path: Status.SubnetID
313+
UserGroupIDs:
314+
references:
315+
resource: UserGroup
316+
path: Spec.UserGroupID
317+
synced:
318+
when:
319+
- path: Status.Status
320+
in:
321+
- available
322+
- create_failed
323+
exceptions:
324+
terminal_codes:
325+
- ServerlessCacheAlreadyExistsFault
326+
- ServerlessCacheQuotaForCustomerExceededFault
327+
- InvalidParameterValue
328+
- InvalidParameterCombination
329+
- InvalidVPCNetworkStateFault
330+
- TagQuotaPerResourceExceeded
331+
- InvalidKMSKeyFault
332+
hooks:
333+
sdk_read_many_post_set_output:
334+
template_path: hooks/serverless_cache/sdk_read_many_post_set_output.go.tpl
335+
print:
336+
add_age_column: true
337+
add_synced_column: true
338+
order_by: index
339+
additional_columns:
340+
- name: STATUS
341+
json_path: .status.status
342+
type: string
343+
index: 10
344+
- name: ENDPOINT
345+
json_path: .status.endpoint.address
346+
type: string
347+
index: 20
299348
operations:
349+
DescribeServerlessCaches:
350+
operation_type:
351+
- List
352+
resource_name:
353+
ServerlessCache
300354
DescribeCacheSubnetGroups:
301355
set_output_custom_method_name: CustomDescribeCacheSubnetGroupsSetOutput
302356
DescribeReplicationGroups:
@@ -334,7 +388,6 @@ operations:
334388
ApplyImmediately: aws.Bool(true)
335389
ignore:
336390
resource_names:
337-
- ServerlessCache
338391
- ServerlessCacheSnapshot
339392
- GlobalReplicationGroup
340393
- CacheSecurityGroup

apis/v1alpha1/serverless_cache.go

Lines changed: 133 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: 38 additions & 25 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)