Skip to content

Commit 1ec4464

Browse files
authored
Merge pull request #29 from michaelhtm/hook/ipaddress
Add custom code to retrieve IpAddress for find, create, and update operations
2 parents 4f3a627 + b26e451 commit 1ec4464

18 files changed

+360
-11
lines changed

OWNERS

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# See the OWNERS docs at https://go.k8s.io/owners
22

33
approvers:
4-
- core-ack-team
5-
- service-team
4+
- core-ack-team

OWNERS_ALIASES

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,14 @@
33
aliases:
44
core-ack-team:
55
- a-hilaly
6-
- RedbackThomson
7-
- jljaco
8-
# TODO: Add your team members' GitHub aliases to the team alias
9-
service-team: []
6+
- jlbutler
7+
- michaelhtm
8+
- TiberiuGC
9+
- rushmash91
10+
# emeritus-core-ack-team:
11+
# - jaypipes
12+
# - jljaco
13+
# - mhausenblas
14+
# - RedbackThomson
15+
# - vijtrip2
16+
# - ivelichkovich
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
ack_generate_info:
2-
build_date: "2024-12-09T17:23:01Z"
2+
build_date: "2025-01-23T02:04:02Z"
33
build_hash: 631aeb190e332addb8379672df6367a0875dce88
4-
go_version: go1.23.3
4+
go_version: go1.23.4
55
version: v0.40.0
6-
api_directory_checksum: 9a42343e86bd2d87a33f81b6a69245d083eac571
6+
api_directory_checksum: 3e296be57d71ce9f6b1c405620b0909caa97e2c1
77
api_version: v1alpha1
88
aws_sdk_go_version: v1.44.300
99
generator_config_info:
10-
file_checksum: a90c59623b068b681326d8d0aeec75c708327f27
10+
file_checksum: 39fbe6a2bb1829b3d4f321f78f9e7235f4cdec44
1111
original_file_name: generator.yaml
1212
last_modification:
1313
reason: API generation

apis/v1alpha1/generator.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ resources:
3434
resource: Subnet
3535
service_name: ec2
3636
path: Status.SubnetID
37+
IPAddresses:
38+
is_read_only: true
39+
custom_field:
40+
list_of: IpAddressResponse
3741
renames:
3842
operations:
3943
GetResolverEndpoint:
@@ -48,6 +52,12 @@ resources:
4852
hooks:
4953
sdk_create_post_build_request:
5054
template_path: hooks/resolver_endpoint/sdk_create_post_build_request.go.tpl
55+
sdk_create_post_set_output:
56+
template_path: hooks/resolver_endpoint/sdk_create_post_set_output.go.tpl
57+
sdk_read_one_post_set_output:
58+
template_path: hooks/resolver_endpoint/sdk_read_one_post_set_output.go.tpl
59+
sdk_update_post_set_output:
60+
template_path: hooks/resolver_endpoint/sdk_update_post_set_output.go.tpl
5161
tags:
5262
ignore: true
5363
ResolverRule:

apis/v1alpha1/resolver_endpoint.go

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

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/zz_generated.deepcopy.go

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

config/crd/bases/route53resolver.services.k8s.aws_resolverendpoints.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,31 @@ spec:
245245
can use for DNS queries.
246246
format: int64
247247
type: integer
248+
ipAddresses:
249+
items:
250+
description: |-
251+
In the response to a GetResolverEndpoint (https://docs.aws.amazon.com/Route53/latest/APIReference/API_route53resolver_GetResolverEndpoint.html)
252+
request, information about the IP addresses that the Resolver endpoint uses
253+
for DNS queries.
254+
properties:
255+
creationTime:
256+
type: string
257+
ip:
258+
type: string
259+
ipID:
260+
type: string
261+
ipv6:
262+
type: string
263+
modificationTime:
264+
type: string
265+
status:
266+
type: string
267+
statusMessage:
268+
type: string
269+
subnetID:
270+
type: string
271+
type: object
272+
type: array
248273
modificationTime:
249274
description: |-
250275
The date and time that the endpoint was last modified, in Unix time format

generator.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ resources:
3434
resource: Subnet
3535
service_name: ec2
3636
path: Status.SubnetID
37+
IPAddresses:
38+
is_read_only: true
39+
custom_field:
40+
list_of: IpAddressResponse
3741
renames:
3842
operations:
3943
GetResolverEndpoint:
@@ -48,6 +52,12 @@ resources:
4852
hooks:
4953
sdk_create_post_build_request:
5054
template_path: hooks/resolver_endpoint/sdk_create_post_build_request.go.tpl
55+
sdk_create_post_set_output:
56+
template_path: hooks/resolver_endpoint/sdk_create_post_set_output.go.tpl
57+
sdk_read_one_post_set_output:
58+
template_path: hooks/resolver_endpoint/sdk_read_one_post_set_output.go.tpl
59+
sdk_update_post_set_output:
60+
template_path: hooks/resolver_endpoint/sdk_update_post_set_output.go.tpl
5161
tags:
5262
ignore: true
5363
ResolverRule:

helm/crds/route53resolver.services.k8s.aws_resolverendpoints.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,31 @@ spec:
245245
can use for DNS queries.
246246
format: int64
247247
type: integer
248+
ipAddresses:
249+
items:
250+
description: |-
251+
In the response to a GetResolverEndpoint (https://docs.aws.amazon.com/Route53/latest/APIReference/API_route53resolver_GetResolverEndpoint.html)
252+
request, information about the IP addresses that the Resolver endpoint uses
253+
for DNS queries.
254+
properties:
255+
creationTime:
256+
type: string
257+
ip:
258+
type: string
259+
ipID:
260+
type: string
261+
ipv6:
262+
type: string
263+
modificationTime:
264+
type: string
265+
status:
266+
type: string
267+
statusMessage:
268+
type: string
269+
subnetID:
270+
type: string
271+
type: object
272+
type: array
248273
modificationTime:
249274
description: |-
250275
The date and time that the endpoint was last modified, in Unix time format

0 commit comments

Comments
 (0)