Skip to content

Commit 22fbe51

Browse files
committed
add serverless cache support
1 parent d16f722 commit 22fbe51

21 files changed

+850
-399
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-07-14T23:19:12Z"
3-
build_hash: f13a4ee15f16c646925c7125e32123e0d5aa41a9
4-
go_version: go1.24.3
5-
version: v0.48.0-3-gf13a4ee
6-
api_directory_checksum: d11caeff2b8b1b50d6e9a03ffc423ce7a13ec817
2+
build_date: "2025-07-17T21:53:35Z"
3+
build_hash: c6808295bbb03aac999713ecf1f3aa5cd698a17e
4+
go_version: go1.24.5
5+
version: v0.49.0
6+
api_directory_checksum: cd3855ca5e9598e4a45cdc8b295054981b08dbb7
77
api_version: v1alpha1
88
aws_sdk_go_version: v1.32.6
99
generator_config_info:
10-
file_checksum: 6d53faf35ef151736ec16db756c36cc94ad6de49
10+
file_checksum: 9117fa2304f39ed8d41be54313f82c80cc8a8ab3
1111
original_file_name: generator.yaml
1212
last_modification:
1313
reason: API generation

apis/v1alpha1/generator.yaml

Lines changed: 14 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -297,15 +297,11 @@ resources:
297297
update_operation:
298298
custom_method_name: customUpdateUserGroup
299299
ServerlessCache:
300+
update_operation:
301+
custom_method_name: customUpdateServerlessCache
300302
fields:
301303
ServerlessCacheName:
302304
is_primary_key: true
303-
CacheUsageLimits:
304-
is_immutable: true
305-
Engine:
306-
is_immutable: true
307-
EngineVersion:
308-
is_immutable: true
309305
SecurityGroupIDs:
310306
references:
311307
resource: SecurityGroup
@@ -320,18 +316,12 @@ resources:
320316
references:
321317
resource: UserGroup
322318
path: Spec.UserGroupID
323-
Status:
324-
is_read_only: true
325-
ARN:
326-
is_read_only: true
327-
Endpoint:
328-
is_read_only: true
329-
CreateTime:
330-
is_read_only: true
319+
synced:
320+
when:
321+
- path: Status.Status
322+
in:
323+
- available
331324
exceptions:
332-
errors:
333-
404:
334-
code: ServerlessCacheNotFoundFault
335325
terminal_codes:
336326
- ServerlessCacheAlreadyExistsFault
337327
- ServerlessCacheQuotaForCustomerExceededFault
@@ -341,12 +331,8 @@ resources:
341331
- TagQuotaPerResourceExceeded
342332
- InvalidKMSKeyFault
343333
hooks:
344-
sdk_create_post_set_output:
345-
template_path: hooks/serverless_cache/sdk_create_post_set_output.go.tpl
346-
sdk_update_pre_build_request:
347-
template_path: hooks/serverless_cache/sdk_update_pre_build_request.go.tpl
348-
sdk_read_one_post_set_output:
349-
template_path: hooks/serverless_cache/sdk_read_one_post_set_output.go.tpl
334+
sdk_read_many_post_set_output:
335+
template_path: hooks/serverless_cache/sdk_read_many_post_set_output.go.tpl
350336
print:
351337
add_age_column: true
352338
add_synced_column: true
@@ -361,6 +347,11 @@ resources:
361347
type: string
362348
index: 20
363349
operations:
350+
DescribeServerlessCaches:
351+
operation_type:
352+
- List
353+
resource_name:
354+
ServerlessCache
364355
DescribeCacheSubnetGroups:
365356
set_output_custom_method_name: CustomDescribeCacheSubnetGroupsSetOutput
366357
DescribeReplicationGroups:

apis/v1alpha1/serverless_cache.go

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

config/controller/kustomization.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ kind: Kustomization
66
images:
77
- name: controller
88
newName: public.ecr.aws/aws-controllers-k8s/elasticache-controller
9-
newTag: 0.0.0-non-release-version
9+
newTag: 1.2.6

config/crd/bases/elasticache.services.k8s.aws_serverlesscaches.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,6 @@ spec:
8585
type: integer
8686
type: object
8787
type: object
88-
x-kubernetes-validations:
89-
- message: Value is immutable once set
90-
rule: self == oldSelf
9188
dailySnapshotTime:
9289
description: |-
9390
The daily time that snapshots will be created from the new serverless cache.
@@ -105,9 +102,6 @@ spec:
105102
description: The name of the cache engine to be used for creating
106103
the serverless cache.
107104
type: string
108-
x-kubernetes-validations:
109-
- message: Value is immutable once set
110-
rule: self == oldSelf
111105
kmsKeyID:
112106
description: |-
113107
ARN of the customer managed key for encrypting the data at rest. If no KMS

generator.yaml

Lines changed: 14 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -297,15 +297,11 @@ resources:
297297
update_operation:
298298
custom_method_name: customUpdateUserGroup
299299
ServerlessCache:
300+
update_operation:
301+
custom_method_name: customUpdateServerlessCache
300302
fields:
301303
ServerlessCacheName:
302304
is_primary_key: true
303-
CacheUsageLimits:
304-
is_immutable: true
305-
Engine:
306-
is_immutable: true
307-
EngineVersion:
308-
is_immutable: true
309305
SecurityGroupIDs:
310306
references:
311307
resource: SecurityGroup
@@ -320,18 +316,12 @@ resources:
320316
references:
321317
resource: UserGroup
322318
path: Spec.UserGroupID
323-
Status:
324-
is_read_only: true
325-
ARN:
326-
is_read_only: true
327-
Endpoint:
328-
is_read_only: true
329-
CreateTime:
330-
is_read_only: true
319+
synced:
320+
when:
321+
- path: Status.Status
322+
in:
323+
- available
331324
exceptions:
332-
errors:
333-
404:
334-
code: ServerlessCacheNotFoundFault
335325
terminal_codes:
336326
- ServerlessCacheAlreadyExistsFault
337327
- ServerlessCacheQuotaForCustomerExceededFault
@@ -341,12 +331,8 @@ resources:
341331
- TagQuotaPerResourceExceeded
342332
- InvalidKMSKeyFault
343333
hooks:
344-
sdk_create_post_set_output:
345-
template_path: hooks/serverless_cache/sdk_create_post_set_output.go.tpl
346-
sdk_update_pre_build_request:
347-
template_path: hooks/serverless_cache/sdk_update_pre_build_request.go.tpl
348-
sdk_read_one_post_set_output:
349-
template_path: hooks/serverless_cache/sdk_read_one_post_set_output.go.tpl
334+
sdk_read_many_post_set_output:
335+
template_path: hooks/serverless_cache/sdk_read_many_post_set_output.go.tpl
350336
print:
351337
add_age_column: true
352338
add_synced_column: true
@@ -361,6 +347,11 @@ resources:
361347
type: string
362348
index: 20
363349
operations:
350+
DescribeServerlessCaches:
351+
operation_type:
352+
- List
353+
resource_name:
354+
ServerlessCache
364355
DescribeCacheSubnetGroups:
365356
set_output_custom_method_name: CustomDescribeCacheSubnetGroupsSetOutput
366357
DescribeReplicationGroups:

helm/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
apiVersion: v1
22
name: elasticache-chart
33
description: A Helm chart for the ACK service controller for Amazon ElastiCache (ElastiCache)
4-
version: 0.0.0-non-release-version
5-
appVersion: 0.0.0-non-release-version
4+
version: 1.2.6
5+
appVersion: 1.2.6
66
home: https://github.com/aws-controllers-k8s/elasticache-controller
77
icon: https://raw.githubusercontent.com/aws/eks-charts/master/docs/logo/aws.png
88
sources:

helm/crds/elasticache.services.k8s.aws_serverlesscaches.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,6 @@ spec:
8585
type: integer
8686
type: object
8787
type: object
88-
x-kubernetes-validations:
89-
- message: Value is immutable once set
90-
rule: self == oldSelf
9188
dailySnapshotTime:
9289
description: |-
9390
The daily time that snapshots will be created from the new serverless cache.
@@ -105,9 +102,6 @@ spec:
105102
description: The name of the cache engine to be used for creating
106103
the serverless cache.
107104
type: string
108-
x-kubernetes-validations:
109-
- message: Value is immutable once set
110-
rule: self == oldSelf
111105
kmsKeyID:
112106
description: |-
113107
ARN of the customer managed key for encrypting the data at rest. If no KMS

helm/templates/NOTES.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{{ .Chart.Name }} has been installed.
2-
This chart deploys "public.ecr.aws/aws-controllers-k8s/elasticache-controller:0.0.0-non-release-version".
2+
This chart deploys "public.ecr.aws/aws-controllers-k8s/elasticache-controller:1.2.6".
33

44
Check its status by running:
55
kubectl --namespace {{ .Release.Namespace }} get pods -l "app.kubernetes.io/instance={{ .Release.Name }}"

helm/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
image:
66
repository: public.ecr.aws/aws-controllers-k8s/elasticache-controller
7-
tag: 0.0.0-non-release-version
7+
tag: 1.2.6
88
pullPolicy: IfNotPresent
99
pullSecrets: []
1010

0 commit comments

Comments
 (0)