Skip to content

feat: add support for VPCEndpointServiceConfiguration CRD #147

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

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: "2023-07-24T10:40:26Z"
build_hash: e9b68590da73ce9143ba1e4361cebdc1d876c81e
go_version: go1.19
version: v0.26.1-7-ge9b6859
api_directory_checksum: cd75b9b3537b16abdbf981cc60ab948e978ad939
build_date: "2023-08-25T00:38:30Z"
build_hash: e9c531826f41fa60de8bbbd0490099de3b7d02c5
go_version: go1.21.0
version: v0.26.1-12-ge9c5318
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to regenerate the controller using latest commit of code-generator

api_directory_checksum: 486779a7638ed7bca155b8599d7a9758e713a99b
api_version: v1alpha1
aws_sdk_go_version: v1.44.93
generator_config_info:
file_checksum: e3d618bcc0a018d73959e27cc0d74c7abfa0502d
file_checksum: 4a4c0240c3464327cf5dc407858fa679435f5cdf
original_file_name: generator.yaml
last_modification:
reason: API generation
46 changes: 44 additions & 2 deletions apis/v1alpha1/generator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ ignore:
- CreateVpcEndpointInput.DryRun
- CreateVpcEndpointInput.TagSpecifications
- CreateVpcEndpointInput.ClientToken
- CreateVpcEndpointServiceConfigurationInput.ClientToken
- CreateVpcEndpointServiceConfigurationInput.DryRun
- CreateVpcEndpointServiceConfigurationInput.TagSpecifications
- DeleteRouteInput.DryRun
- DeleteRouteInput.RouteTableId
# support EC2-VPC only
Expand Down Expand Up @@ -118,7 +121,7 @@ ignore:
#- TransitGateway
- Volume
- VpcEndpointConnectionNotification
- VpcEndpointServiceConfiguration
# - VpcEndpointServiceConfiguration
#- VpcEndpoint
#- Vpc
- VpcCidrBlock
Expand Down Expand Up @@ -150,6 +153,13 @@ operations:
operation_type:
- Delete
resource_name: VpcEndpoint
CreateVpcEndpointServiceConfiguration:
output_wrapper_field_path: ServiceConfiguration
DeleteVpcEndpointServiceConfigurations:
operation_type:
- Delete
resource_name:
VpcEndpointServiceConfiguration
CreateFlowLogs:
operation_type:
- Create
Expand Down Expand Up @@ -774,4 +784,36 @@ resources:
template_path: hooks/vpc_endpoint/sdk_file_end.go.tpl
update_operation:
custom_method_name: customUpdateVPCEndpoint

VpcEndpointServiceConfiguration:
fields:
ServiceID:
is_primary_key: true
is_read_only: true
print:
path: Status.serviceID
name: ServiceID
ServiceState:
is_read_only: true
print:
path: Status.serviceState
name: ServiceState
Tags:
from:
operation: CreateTags
path: Tags
compare:
is_ignored: true
synced:
when:
- path: Status.ServiceState
in:
- available
hooks:
delta_pre_compare:
code: compareTags(delta, a, b)
sdk_delete_post_build_request:
template_path: hooks/vpc_endpoint_service_configuration/sdk_delete_post_build_request.go.tpl
sdk_file_end:
template_path: hooks/vpc_endpoint_service_configuration/sdk_file_end.go.tpl
# tags:
# ignore: true
42 changes: 29 additions & 13 deletions apis/v1alpha1/types.go

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

110 changes: 110 additions & 0 deletions apis/v1alpha1/vpc_endpoint_service_configuration.go

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

Loading