Skip to content

Commit 9fb94b4

Browse files
authored
Generate with SDK-V2 model (#58)
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent f657f6e commit 9fb94b4

36 files changed

+676
-597
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-01-23T02:26:33Z"
3-
build_hash: 2442aa071c05fcdf54841e63abd5f91d1951e152
2+
build_date: "2025-02-05T01:45:20Z"
3+
build_hash: d2d639403dd853736e63c2bc1e3ca51251fd1bd1
44
go_version: go1.23.5
5-
version: v0.41.0
6-
api_directory_checksum: 78fb7fd24a85da24b8de6246cad67ff3fb6598f8
5+
version: v0.41.0-16-gd2d6394-dirty
6+
api_directory_checksum: ef701690985c9c04e2a0d155a3563d8d128b4990
77
api_version: v1alpha1
8-
aws_sdk_go_version: v1.49.0
8+
aws_sdk_go_version: v1.32.6
99
generator_config_info:
10-
file_checksum: 139425ad105085ed1a9f4f113c780f37b31ccd1d
10+
file_checksum: af1e20f94f0b1e81627c90fa1b82bf77ff994e48
1111
original_file_name: generator.yaml
1212
last_modification:
1313
reason: API generation

apis/v1alpha1/enums.go

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

apis/v1alpha1/generator.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ ignore:
33
- ChangeResourceRecordSetsOutput.ChangeInfo.Comment
44
- CreateHostedZoneInput.CallerReference
55
- CreateHealthCheckInput.CallerReference
6+
- ResourceRecordSet.GeoProximityLocation
67
operations: null
78
resource_names:
89
- CidrCollection
@@ -17,7 +18,8 @@ ignore:
1718
- VPCAssociationAuthorization
1819
- CidrCollection
1920
shape_names: null
20-
model_name: route53
21+
sdk_names:
22+
model_name: route-53
2123
operations:
2224
ChangeResourceRecordSets:
2325
operation_type:

apis/v1alpha1/record_set.go

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

cmd/controller/main.go

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

config/crd/bases/route53.services.k8s.aws_recordsets.yaml

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -225,9 +225,6 @@ spec:
225225
to a web server with an IP address of 192.0.2.111, create a resource record
226226
set with a Type of A and a ContinentCode of AF.
227227
228-
Although creating geolocation and geolocation alias resource record sets
229-
in a private hosted zone is allowed, it's not supported.
230-
231228
If you create separate resource record sets for overlapping geographic regions
232229
(for example, one resource record set for a continent and one for a country
233230
on the same continent), priority goes to the smallest geographic region.
@@ -445,11 +442,6 @@ spec:
445442
domain name, DNS treats it as an * character (ASCII 42), not as a wildcard.
446443
You can't use the * wildcard for resource records sets that have a type
447444
of NS.
448-
449-
You can use the * wildcard as the leftmost label in a domain name, for example,
450-
*.example.com. You can't use an * for one of the middle labels, for example,
451-
marketing.*.example.com. In addition, the * must replace the entire label;
452-
for example, you can't specify prod*.example.com.
453445
type: string
454446
recordType:
455447
description: |-
@@ -458,15 +450,16 @@ spec:
458450
in the Amazon Route 53 Developer Guide.
459451
460452
Valid values for basic resource record sets: A | AAAA | CAA | CNAME | DS
461-
|MX | NAPTR | NS | PTR | SOA | SPF | SRV | TXT
453+
|MX | NAPTR | NS | PTR | SOA | SPF | SRV | TXT| TLSA| SSHFP| SVCB| HTTPS
462454
463455
Values for weighted, latency, geolocation, and failover resource record sets:
464-
A | AAAA | CAA | CNAME | MX | NAPTR | PTR | SPF | SRV | TXT. When creating
465-
a group of weighted, latency, geolocation, or failover resource record sets,
466-
specify the same value for all of the resource record sets in the group.
456+
A | AAAA | CAA | CNAME | MX | NAPTR | PTR | SPF | SRV | TXT| TLSA| SSHFP|
457+
SVCB| HTTPS. When creating a group of weighted, latency, geolocation, or
458+
failover resource record sets, specify the same value for all of the resource
459+
record sets in the group.
467460
468461
Valid values for multivalue answer resource record sets: A | AAAA | MX |
469-
NAPTR | PTR | SPF | SRV | TXT
462+
NAPTR | PTR | SPF | SRV | TXT| CAA| TLSA| SSHFP| SVCB| HTTPS
470463
471464
SPF records were formerly used to verify the identity of the sender of email
472465
messages. However, we no longer recommend that you create resource record

generator.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ ignore:
33
- ChangeResourceRecordSetsOutput.ChangeInfo.Comment
44
- CreateHostedZoneInput.CallerReference
55
- CreateHealthCheckInput.CallerReference
6+
- ResourceRecordSet.GeoProximityLocation
67
operations: null
78
resource_names:
89
- CidrCollection
@@ -17,7 +18,8 @@ ignore:
1718
- VPCAssociationAuthorization
1819
- CidrCollection
1920
shape_names: null
20-
model_name: route53
21+
sdk_names:
22+
model_name: route-53
2123
operations:
2224
ChangeResourceRecordSets:
2325
operation_type:

go.mod

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,11 @@ go 1.22.0
55
toolchain go1.22.5
66

77
require (
8-
github.com/aws-controllers-k8s/runtime v0.41.0
8+
github.com/aws-controllers-k8s/runtime v0.41.1-0.20250204215244-e48dd7b2d6d0
99
github.com/aws/aws-sdk-go v1.49.0
10+
github.com/aws/aws-sdk-go-v2 v1.34.0
11+
github.com/aws/aws-sdk-go-v2/service/route53 v1.48.3
12+
github.com/aws/smithy-go v1.22.2
1013
github.com/go-logr/logr v1.4.2
1114
github.com/spf13/pflag v1.0.5
1215
k8s.io/api v0.31.0
@@ -16,6 +19,17 @@ require (
1619
)
1720

1821
require (
22+
github.com/aws/aws-sdk-go-v2/config v1.28.6 // indirect
23+
github.com/aws/aws-sdk-go-v2/credentials v1.17.47 // indirect
24+
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.21 // indirect
25+
github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.29 // indirect
26+
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.29 // indirect
27+
github.com/aws/aws-sdk-go-v2/internal/ini v1.8.1 // indirect
28+
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.1 // indirect
29+
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.6 // indirect
30+
github.com/aws/aws-sdk-go-v2/service/sso v1.24.7 // indirect
31+
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.28.6 // indirect
32+
github.com/aws/aws-sdk-go-v2/service/sts v1.33.2 // indirect
1933
github.com/beorn7/perks v1.0.1 // indirect
2034
github.com/cenkalti/backoff/v4 v4.3.0 // indirect
2135
github.com/cespare/xxhash/v2 v2.3.0 // indirect

go.sum

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,35 @@
1-
github.com/aws-controllers-k8s/runtime v0.41.0 h1:WumDnUiVlqnYYGEIGSOUBgDPWTIEozW8HT0qwGapDgA=
2-
github.com/aws-controllers-k8s/runtime v0.41.0/go.mod h1:Tuq5AFGJQcU00MY+J5hBYbLctpR50I8iGs5TPLox+u8=
1+
github.com/aws-controllers-k8s/runtime v0.41.1-0.20250204215244-e48dd7b2d6d0 h1:ygZwhPfearlE8/P0HY8rXpFsbarwJ5tzBIov+3xgQfk=
2+
github.com/aws-controllers-k8s/runtime v0.41.1-0.20250204215244-e48dd7b2d6d0/go.mod h1:Oy0JKvDxZMZ+SVupm4NZVqP00KLIIAMfk93KnOwlt5c=
33
github.com/aws/aws-sdk-go v1.49.0 h1:g9BkW1fo9GqKfwg2+zCD+TW/D36Ux+vtfJ8guF4AYmY=
44
github.com/aws/aws-sdk-go v1.49.0/go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk=
5+
github.com/aws/aws-sdk-go-v2 v1.34.0 h1:9iyL+cjifckRGEVpRKZP3eIxVlL06Qk1Tk13vreaVQU=
6+
github.com/aws/aws-sdk-go-v2 v1.34.0/go.mod h1:JgstGg0JjWU1KpVJjD5H0y0yyAIpSdKEq556EI6yOOM=
7+
github.com/aws/aws-sdk-go-v2/config v1.28.6 h1:D89IKtGrs/I3QXOLNTH93NJYtDhm8SYa9Q5CsPShmyo=
8+
github.com/aws/aws-sdk-go-v2/config v1.28.6/go.mod h1:GDzxJ5wyyFSCoLkS+UhGB0dArhb9mI+Co4dHtoTxbko=
9+
github.com/aws/aws-sdk-go-v2/credentials v1.17.47 h1:48bA+3/fCdi2yAwVt+3COvmatZ6jUDNkDTIsqDiMUdw=
10+
github.com/aws/aws-sdk-go-v2/credentials v1.17.47/go.mod h1:+KdckOejLW3Ks3b0E3b5rHsr2f9yuORBum0WPnE5o5w=
11+
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.21 h1:AmoU1pziydclFT/xRV+xXE/Vb8fttJCLRPv8oAkprc0=
12+
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.21/go.mod h1:AjUdLYe4Tgs6kpH4Bv7uMZo7pottoyHMn4eTcIcneaY=
13+
github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.29 h1:Ej0Rf3GMv50Qh4G4852j2djtoDb7AzQ7MuQeFHa3D70=
14+
github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.29/go.mod h1:oeNTC7PwJNoM5AznVr23wxhLnuJv0ZDe5v7w0wqIs9M=
15+
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.29 h1:6e8a71X+9GfghragVevC5bZqvATtc3mAMgxpSNbgzF0=
16+
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.29/go.mod h1:c4jkZiQ+BWpNqq7VtrxjwISrLrt/VvPq3XiopkUIolI=
17+
github.com/aws/aws-sdk-go-v2/internal/ini v1.8.1 h1:VaRN3TlFdd6KxX1x3ILT5ynH6HvKgqdiXoTxAF4HQcQ=
18+
github.com/aws/aws-sdk-go-v2/internal/ini v1.8.1/go.mod h1:FbtygfRFze9usAadmnGJNc8KsP346kEe+y2/oyhGAGc=
19+
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.1 h1:iXtILhvDxB6kPvEXgsDhGaZCSC6LQET5ZHSdJozeI0Y=
20+
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.1/go.mod h1:9nu0fVANtYiAePIBh2/pFUSwtJ402hLnp854CNoDOeE=
21+
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.6 h1:50+XsN70RS7dwJ2CkVNXzj7U2L1HKP8nqTd3XWEXBN4=
22+
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.6/go.mod h1:WqgLmwY7so32kG01zD8CPTJWVWM+TzJoOVHwTg4aPug=
23+
github.com/aws/aws-sdk-go-v2/service/route53 v1.48.3 h1:9m6dc70AMaAIwephy90ApV/smdya4XA48zCWQTITcJE=
24+
github.com/aws/aws-sdk-go-v2/service/route53 v1.48.3/go.mod h1:CpxUf0l25aMre5K8cD0L2UeivINz0wiWM+CiWrHRxho=
25+
github.com/aws/aws-sdk-go-v2/service/sso v1.24.7 h1:rLnYAfXQ3YAccocshIH5mzNNwZBkBo+bP6EhIxak6Hw=
26+
github.com/aws/aws-sdk-go-v2/service/sso v1.24.7/go.mod h1:ZHtuQJ6t9A/+YDuxOLnbryAmITtr8UysSny3qcyvJTc=
27+
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.28.6 h1:JnhTZR3PiYDNKlXy50/pNeix9aGMo6lLpXwJ1mw8MD4=
28+
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.28.6/go.mod h1:URronUEGfXZN1VpdktPSD1EkAL9mfrV+2F4sjH38qOY=
29+
github.com/aws/aws-sdk-go-v2/service/sts v1.33.2 h1:s4074ZO1Hk8qv65GqNXqDjmkf4HSQqJukaLuuW0TpDA=
30+
github.com/aws/aws-sdk-go-v2/service/sts v1.33.2/go.mod h1:mVggCnIWoM09jP71Wh+ea7+5gAp53q+49wDFs1SW5z8=
31+
github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
32+
github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
533
github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM=
634
github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw=
735
github.com/cenkalti/backoff/v4 v4.3.0 h1:MyRJ/UdXutAwSAT+s3wNd7MfTIcy71VQueUuFK343L8=

helm/crds/route53.services.k8s.aws_recordsets.yaml

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -225,9 +225,6 @@ spec:
225225
to a web server with an IP address of 192.0.2.111, create a resource record
226226
set with a Type of A and a ContinentCode of AF.
227227
228-
Although creating geolocation and geolocation alias resource record sets
229-
in a private hosted zone is allowed, it's not supported.
230-
231228
If you create separate resource record sets for overlapping geographic regions
232229
(for example, one resource record set for a continent and one for a country
233230
on the same continent), priority goes to the smallest geographic region.
@@ -445,11 +442,6 @@ spec:
445442
domain name, DNS treats it as an * character (ASCII 42), not as a wildcard.
446443
You can't use the * wildcard for resource records sets that have a type
447444
of NS.
448-
449-
You can use the * wildcard as the leftmost label in a domain name, for example,
450-
*.example.com. You can't use an * for one of the middle labels, for example,
451-
marketing.*.example.com. In addition, the * must replace the entire label;
452-
for example, you can't specify prod*.example.com.
453445
type: string
454446
recordType:
455447
description: |-
@@ -458,15 +450,16 @@ spec:
458450
in the Amazon Route 53 Developer Guide.
459451
460452
Valid values for basic resource record sets: A | AAAA | CAA | CNAME | DS
461-
|MX | NAPTR | NS | PTR | SOA | SPF | SRV | TXT
453+
|MX | NAPTR | NS | PTR | SOA | SPF | SRV | TXT| TLSA| SSHFP| SVCB| HTTPS
462454
463455
Values for weighted, latency, geolocation, and failover resource record sets:
464-
A | AAAA | CAA | CNAME | MX | NAPTR | PTR | SPF | SRV | TXT. When creating
465-
a group of weighted, latency, geolocation, or failover resource record sets,
466-
specify the same value for all of the resource record sets in the group.
456+
A | AAAA | CAA | CNAME | MX | NAPTR | PTR | SPF | SRV | TXT| TLSA| SSHFP|
457+
SVCB| HTTPS. When creating a group of weighted, latency, geolocation, or
458+
failover resource record sets, specify the same value for all of the resource
459+
record sets in the group.
467460
468461
Valid values for multivalue answer resource record sets: A | AAAA | MX |
469-
NAPTR | PTR | SPF | SRV | TXT
462+
NAPTR | PTR | SPF | SRV | TXT| CAA| TLSA| SSHFP| SVCB| HTTPS
470463
471464
SPF records were formerly used to verify the identity of the sender of email
472465
messages. However, we no longer recommend that you create resource record

0 commit comments

Comments
 (0)