Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CidrCollection support to route53 controller #47

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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
8 changes: 4 additions & 4 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: "2024-08-29T17:03:54Z"
build_date: "2024-09-10T12:17:23Z"
build_hash: f8f98563404066ac3340db0a049d2e530e5c51cc
go_version: go1.22.5
go_version: go1.23.1
version: v0.38.1
api_directory_checksum: 78fb7fd24a85da24b8de6246cad67ff3fb6598f8
api_directory_checksum: fcc2a039096955dfeb2eb1dbd94def23713aeb03
api_version: v1alpha1
aws_sdk_go_version: v1.49.0
generator_config_info:
file_checksum: 3a694e7177f90f7ba4c526b14e1ce2b1e9748446
file_checksum: aaca78853a15611ad9b6b6abec9a4e8989b103a9
original_file_name: generator.yaml
last_modification:
reason: API generation
80 changes: 80 additions & 0 deletions apis/v1alpha1/cidr_collection.go

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

72 changes: 70 additions & 2 deletions apis/v1alpha1/generator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ ignore:
- ChangeResourceRecordSetsOutput.ChangeInfo.Comment
- CreateHostedZoneInput.CallerReference
- CreateHealthCheckInput.CallerReference
- CreateCidrCollectionInput.CallerReference
operations: null
resource_names:
- CidrCollection
# - CidrCollection
# - HealthCheck
# - HostedZone
- KeySigningKey
Expand All @@ -15,7 +16,6 @@ ignore:
- TrafficPolicyInstance
- TrafficPolicyVersion
- VPCAssociationAuthorization
- CidrCollection
shape_names: null
model_name: route53
operations:
Expand All @@ -30,6 +30,26 @@ operations:
- List
resource_name:
RecordSet
CreateCidrCollection:
operation_type:
- Create
resource_name:
CidrCollection
ChangeCidrCollection:
operation_type:
- Update
resource_name:
CidrCollection
DeleteCidrCollection:
operation_type:
- Delete
resource_name:
CidrCollection
ListCidrCollections:
operation_type:
- List
resource_name:
CidrCollection
CreateHostedZone:
output_wrapper_field_path: HostedZone
GetHostedZone:
Expand Down Expand Up @@ -151,6 +171,54 @@ resources:
ignore: true
update_operation:
custom_method_name: customUpdateRecordSet
CidrCollection:
renames:
operations:
ChangeCidrCollection:
input_fields:
Changes: Locations
exceptions:
terminal_codes:
- InvalidInput
- CidrCollectionAlreadyExists
- CidrCollectionInUse
- CidrCollectionVersionMismatch
- NoSuchCidrCollection
- CidrBlockInUse
fields:
Name:
from:
operation: CreateCidrCollection
path: Name
is_required: true
is_primary_key: true
is_immutable: true
CollectionVersion:
is_required: false
Locations:
from:
operation: ChangeCidrCollection
path: Changes
is_required: true
CallerReference:
is_read_only: true
type: "*string"
hooks:
delta_pre_compare:
code: compareCustom(delta, a, b)
sdk_create_post_build_request:
template_path: hooks/cidr_collection/sdk_create_post_build_request.go.tpl
sdk_create_post_set_output:
template_path: hooks/cidr_collection/sdk_create_post_set_output.go.tpl
sdk_delete_post_build_request:
template_path: hooks/cidr_collection/sdk_delete_post_build_request.go.tpl
sdk_read_many_pre_set_output:
template_path: hooks/cidr_collection/sdk_read_many_pre_set_output.go.tpl
# This resource does not have tags
tags:
ignore: true
update_operation:
custom_method_name: customUpdateCidrCollection
HostedZone:
exceptions:
terminal_codes:
Expand Down
25 changes: 22 additions & 3 deletions apis/v1alpha1/types.go

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

Loading