Skip to content
Closed
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
12 changes: 6 additions & 6 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: "2026-08-13T00:57:17Z"
build_hash: 65d45b2e6c9efd6aca20e0d36826d1e18e4ba2b7
go_version: go1.26.5
version: v0.62.1
api_directory_checksum: d561b534bd88b72e078a237febc46f9b273f67e2
build_date: "2026-08-27T20:01:00Z"
build_hash: d4aaca5e1dd6acfd81094936dc825ad30d2bbb39
go_version: go1.26.4
version: v0.62.1-4-gd4aaca5
api_directory_checksum: 61363e520cb357e44d75180c8c22321864ee55ea
api_version: v1alpha1
aws_sdk_go_version: v1.41.10
generator_config_info:
file_checksum: 3c29107cce971d3b60b6722c04f4771d5b346173
file_checksum: 9ac55777c8dd17de0c41adcbff1d0aee5f0e34b7
original_file_name: generator.yaml
last_modification:
reason: API generation
95 changes: 94 additions & 1 deletion apis/v1alpha1/generator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -476,6 +476,96 @@ resources:
in:
- available
- create_failed
GlobalReplicationGroup:
fields:
# Create API only accepts a suffix; ElastiCache prepends a region-specific
# prefix (e.g. "sgaui-"). Full ID stored in status.globalReplicationGroupID.
GlobalReplicationGroupIdSuffix:
is_required: true
is_immutable: true
PrimaryReplicationGroupId:
is_required: true
is_immutable: true
references:
resource: ReplicationGroup
path: Spec.ReplicationGroupID
AutomaticFailoverEnabled:
from:
operation: ModifyGlobalReplicationGroup
path: AutomaticFailoverEnabled
CacheNodeType:
from:
operation: ModifyGlobalReplicationGroup
path: CacheNodeType
CacheParameterGroupName:
from:
operation: ModifyGlobalReplicationGroup
path: CacheParameterGroupName
EngineVersion:
from:
operation: ModifyGlobalReplicationGroup
path: EngineVersion
Engine:
from:
operation: ModifyGlobalReplicationGroup
path: Engine
# Custom field for declarative node group scaling. Not part of any single
# API input — our custom update logic compares this against the current
# GlobalNodeGroups count to call Increase or Decrease APIs.
NodeGroupCount:
type: "*int64"
print:
add_age_column: true
add_synced_column: true
order_by: index
additional_columns:
- name: STATUS
json_path: .status.status
type: string
index: 10
- name: NODE-TYPE
json_path: .spec.cacheNodeType
type: string
index: 20
exceptions:
errors:
404:
code: GlobalReplicationGroupNotFoundFault
terminal_codes:
- GlobalReplicationGroupAlreadyExistsFault
- InvalidParameterValue
- InvalidParameterCombination
- ServiceLinkedRoleNotFoundFault
- ReplicationGroupNotFoundFault
# "primary-only" = no secondaries attached (steady state)
# "available" = secondaries ARE attached (steady state)
# Both are valid "ready" states for the controller.
synced:
when:
- path: Status.Status
in:
- available
- primary-only
hooks:
sdk_create_post_set_output:
template_path: hooks/global_replication_group/sdk_create_post_set_output.go.tpl
delete_operation:
custom_method_name: customDeleteGlobalReplicationGroup
update_operation:
custom_method_name: customUpdateGlobalReplicationGroup
renames:
operations:
CreateGlobalReplicationGroup:
input_fields:
GlobalReplicationGroupDescription: Description
DescribeGlobalReplicationGroups:
output_fields:
GlobalReplicationGroupDescription: Description
ModifyGlobalReplicationGroup:
input_fields:
GlobalReplicationGroupDescription: Description
tags:
ignore: true
operations:
DescribeServerlessCaches:
operation_type:
Expand Down Expand Up @@ -517,9 +607,12 @@ operations:
set_output_custom_method_name: customModifyCacheClusterSetOutput
override_values:
ApplyImmediately: aws.Bool(true)
DescribeGlobalReplicationGroups:
override_values:
ShowMemberInfo: aws.Bool(true)
set_output_custom_method_name: CustomDescribeGlobalReplicationGroupsSetOutput
ignore:
resource_names:
- GlobalReplicationGroup
- CacheSecurityGroup
field_paths:
- DescribeSnapshotsInput.CacheClusterId
Expand Down
147 changes: 147 additions & 0 deletions apis/v1alpha1/global_replication_group.go

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

44 changes: 23 additions & 21 deletions apis/v1alpha1/types.go

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

Loading