Skip to content

Commit c373be4

Browse files
authored
fix: set ShowCacheNodeInfo parameter to true for CacheClusters (#185)
Description of changes: The AWS ElastiCache DescribeCacheClusters API requires the `ShowCacheNodeInfo` parameter to be explicitly set to `true` to return cache node details including endpoints. The ACK controller was calling this API without this parameter, resulting in responses that contained cluster metadata but omitted the node details like endpoints. Added a direct modification to the sdkFind function in `pkg/resource/cache_cluster/sdk.go` to set `ShowCacheNodeInfo = true` on all `DescribeCacheClusters` API calls. By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent 5fef793 commit c373be4

File tree

6 files changed

+11
-4
lines changed

6 files changed

+11
-4
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-08-15T00:05:26Z"
2+
build_date: "2025-08-22T20:47:49Z"
33
build_hash: b6df33f8c7f55b234555c0b578b8de43c74771a8
4-
go_version: go1.24.6
4+
go_version: go1.24.5
55
version: v0.51.0
66
api_directory_checksum: 5a16cea62c98405d3786f1ee1aad22ff3fafc7d6
77
api_version: v1alpha1
88
aws_sdk_go_version: v1.32.6
99
generator_config_info:
10-
file_checksum: a3aa9d437d76c0a739168005043783103bf199da
10+
file_checksum: 8e6d3a835f5f6a46937ced911945d641a2145303
1111
original_file_name: generator.yaml
1212
last_modification:
1313
reason: API generation

apis/v1alpha1/generator.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ resources:
7979
template_path: hooks/cache_cluster/sdk_create_post_set_output.go.tpl
8080
sdk_delete_pre_build_request:
8181
template_path: hooks/cache_cluster/sdk_delete_pre_build_request.go.tpl
82+
sdk_read_many_post_build_request:
83+
template_path: hooks/cache_cluster/sdk_read_many_post_build_request.go.tpl
8284
sdk_read_many_post_set_output:
8385
template_path: hooks/cache_cluster/sdk_read_many_post_set_output.go.tpl
8486
sdk_update_pre_build_request:

generator.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ resources:
7979
template_path: hooks/cache_cluster/sdk_create_post_set_output.go.tpl
8080
sdk_delete_pre_build_request:
8181
template_path: hooks/cache_cluster/sdk_delete_pre_build_request.go.tpl
82+
sdk_read_many_post_build_request:
83+
template_path: hooks/cache_cluster/sdk_read_many_post_build_request.go.tpl
8284
sdk_read_many_post_set_output:
8385
template_path: hooks/cache_cluster/sdk_read_many_post_set_output.go.tpl
8486
sdk_update_pre_build_request:

pkg/resource/cache_cluster/hooks.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ const (
4545
var (
4646
condMsgCurrentlyDeleting = "CacheCluster is currently being deleted"
4747
condMsgNoDeleteWhileModifying = "Cannot delete CacheCluster while it is being modified"
48-
condMsgCurrentlyUpdating = "CacheCluster is currently being updated"
4948
)
5049

5150
var (

pkg/resource/cache_cluster/sdk.go

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
// Include cache node info to get endpoint details for clusters
2+
input.ShowCacheNodeInfo = aws.Bool(true)

0 commit comments

Comments
 (0)