Skip to content

Commit 6b99381

Browse files
authored
Add support for VPC Endpoint Service Region (#278)
Issue #, if available: [2513](aws-controllers-k8s/community#2513) Description of changes: - Remove ServiceRegion from ignored fields - Mark ServiceRegion as immutable By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent b3570a7 commit 6b99381

File tree

28 files changed

+114
-64
lines changed

28 files changed

+114
-64
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-08-15T00:07:14Z"
3-
build_hash: b6df33f8c7f55b234555c0b578b8de43c74771a8
4-
go_version: go1.24.6
5-
version: v0.51.0
6-
api_directory_checksum: d162a6e9df2d4861d6c01d42047402b51f341293
2+
build_date: "2025-08-28T17:59:00Z"
3+
build_hash: 1d9076d0211773ff8ab8682b28b912c7ece10676
4+
go_version: go1.25.0
5+
version: v0.51.0-2-g1d9076d
6+
api_directory_checksum: b32f97274be98ca3f4cf5cbf559258210c872946
77
api_version: v1alpha1
88
aws_sdk_go_version: v1.32.6
99
generator_config_info:
10-
file_checksum: e3c9cd11651288747aece625d6883dfefa718864
10+
file_checksum: d5e0ce1661bd55bd3c0a8c4316de6885c8039ea0
1111
original_file_name: generator.yaml
1212
last_modification:
1313
reason: API generation

apis/v1alpha1/generator.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,12 @@ ignore:
6262
- CreateVpcEndpointInput.DnsOptions.PrivateDnsOnlyForInboundResolverEndpoint
6363
- CreateVpcEndpointInput.ResourceConfigurationArn
6464
- CreateVpcEndpointInput.ServiceNetworkArn
65-
- CreateVpcEndpointInput.ServiceRegion
6665
- CreateVpcEndpointInput.SubnetConfigurations
6766
- CreateVpcEndpointOutput.VpcEndpoint.FailureReason
6867
- CreateVpcEndpointOutput.VpcEndpoint.Ipv4Prefixes
6968
- CreateVpcEndpointOutput.VpcEndpoint.Ipv6Prefixes
7069
- CreateVpcEndpointOutput.VpcEndpoint.ResourceConfigurationArn
7170
- CreateVpcEndpointOutput.VpcEndpoint.ServiceNetworkArn
72-
- CreateVpcEndpointOutput.VpcEndpoint.ServiceRegion
7371
- CreateVpcEndpointServiceConfigurationInput.ClientToken
7472
- CreateVpcEndpointServiceConfigurationInput.DryRun
7573
- CreateVpcEndpointServiceConfigurationInput.TagSpecifications
@@ -1022,6 +1020,9 @@ resources:
10221020
print:
10231021
path: Status.vpcEndpointID
10241022
name: ID
1023+
ServiceRegion:
1024+
# ServiceRegion is not supported in ModifyVpcEndpoint's input.
1025+
is_immutable: true
10251026
exceptions:
10261027
terminal_codes:
10271028
- InvalidVpcId.Malformed

apis/v1alpha1/types.go

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

apis/v1alpha1/vpc_endpoint.go

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

apis/v1alpha1/zz_generated.deepcopy.go

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

config/crd/bases/ec2.services.k8s.aws_vpcendpoints.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,13 @@ spec:
135135
serviceName:
136136
description: The name of the endpoint service.
137137
type: string
138+
serviceRegion:
139+
description: The Region where the service is hosted. The default is
140+
the current Region.
141+
type: string
142+
x-kubernetes-validations:
143+
- message: Value is immutable once set
144+
rule: self == oldSelf
138145
subnetIDs:
139146
description: |-
140147
(Interface and Gateway Load Balancer endpoints) The IDs of the subnets in

generator.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,12 @@ ignore:
6262
- CreateVpcEndpointInput.DnsOptions.PrivateDnsOnlyForInboundResolverEndpoint
6363
- CreateVpcEndpointInput.ResourceConfigurationArn
6464
- CreateVpcEndpointInput.ServiceNetworkArn
65-
- CreateVpcEndpointInput.ServiceRegion
6665
- CreateVpcEndpointInput.SubnetConfigurations
6766
- CreateVpcEndpointOutput.VpcEndpoint.FailureReason
6867
- CreateVpcEndpointOutput.VpcEndpoint.Ipv4Prefixes
6968
- CreateVpcEndpointOutput.VpcEndpoint.Ipv6Prefixes
7069
- CreateVpcEndpointOutput.VpcEndpoint.ResourceConfigurationArn
7170
- CreateVpcEndpointOutput.VpcEndpoint.ServiceNetworkArn
72-
- CreateVpcEndpointOutput.VpcEndpoint.ServiceRegion
7371
- CreateVpcEndpointServiceConfigurationInput.ClientToken
7472
- CreateVpcEndpointServiceConfigurationInput.DryRun
7573
- CreateVpcEndpointServiceConfigurationInput.TagSpecifications
@@ -1022,6 +1020,9 @@ resources:
10221020
print:
10231021
path: Status.vpcEndpointID
10241022
name: ID
1023+
ServiceRegion:
1024+
# ServiceRegion is not supported in ModifyVpcEndpoint's input.
1025+
is_immutable: true
10251026
exceptions:
10261027
terminal_codes:
10271028
- InvalidVpcId.Malformed

helm/crds/ec2.services.k8s.aws_vpcendpoints.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,13 @@ spec:
135135
serviceName:
136136
description: The name of the endpoint service.
137137
type: string
138+
serviceRegion:
139+
description: The Region where the service is hosted. The default is
140+
the current Region.
141+
type: string
142+
x-kubernetes-validations:
143+
- message: Value is immutable once set
144+
rule: self == oldSelf
138145
subnetIDs:
139146
description: |-
140147
(Interface and Gateway Load Balancer endpoints) The IDs of the subnets in

pkg/resource/capacity_reservation/resource.go

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

pkg/resource/dhcp_options/resource.go

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

0 commit comments

Comments
 (0)