Skip to content

Commit d123345

Browse files
authored
Generate DomainName resource (#79)
Issue [#1567](aws-controllers-k8s/community#1567) Description of changes: * Removed DomainName from ignored resources * Added e2e tests By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent 1d94632 commit d123345

29 files changed

+2317
-59
lines changed
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
ack_generate_info:
2-
build_date: "2024-05-02T20:45:11Z"
2+
build_date: "2024-07-17T23:18:37Z"
33
build_hash: 14cef51778d471698018b6c38b604181a6948248
4-
go_version: go1.22.0
5-
version: v0.34.0
6-
api_directory_checksum: 25de7fa76af7d15a4aaf323faf0b71b528848b00
4+
go_version: go1.22.5
5+
version: v0.34.0-dirty
6+
api_directory_checksum: f7f58613ba2977cf405a54b14e20b750eca01a72
77
api_version: v1alpha1
88
aws_sdk_go_version: v1.49.0
99
generator_config_info:
10-
file_checksum: 52b0fd0e1882461d1c0694dd583d1ef7e655c5c1
10+
file_checksum: 62185885ace3d8936cba5f3e3f4b90a3f82cfe89
1111
original_file_name: generator.yaml
1212
last_modification:
1313
reason: API generation

apis/v1alpha1/domain_name.go

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

apis/v1alpha1/enums.go

Lines changed: 5 additions & 5 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: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
ignore:
22
resource_names:
3-
# DomainName is ignored due to lack of Public DNS setup in e2e testing
4-
- DomainName
53
# ApiMapping is ignored due to lack of Public DNS setup in e2e testing
64
- ApiMapping
75
# Model is not supported for HTTP APIs. Remove when adding support for WebSocket APIs
@@ -10,6 +8,14 @@ ignore:
108
- IntegrationResponse
119
# RouteResponse is not supported for HTTP APIs. Remove when adding support for WebSocket APIs
1210
- RouteResponse
11+
field_paths:
12+
# DomainNameStatus is ignored because it should be a read-only field
13+
- CreateDomainNameInput.DomainNameConfigurations.DomainNameConfiguration.DomainNameStatus
14+
- CreateDomainNameInput.DomainNameConfigurations.DomainNameConfiguration.DomainNameStatusMessage
15+
- CreateDomainNameInput.DomainNameConfigurations.DomainNameConfiguration.ApiGatewayDomainName
16+
- CreateDomainNameInput.DomainNameConfigurations.DomainNameConfiguration.CertificateUploadDate
17+
- CreateDomainNameInput.DomainNameConfigurations.DomainNameConfiguration.HostedZoneId
18+
1319
resources:
1420
Api:
1521
fields:
@@ -100,6 +106,21 @@ resources:
100106
- path: Status.VPCLinkStatus
101107
in:
102108
- AVAILABLE
109+
DomainName:
110+
exceptions:
111+
terminal_codes:
112+
- BadRequestException
113+
fields:
114+
# DomainNameStatus:
115+
# is_read_only: true
116+
# type: [string]
117+
# DomainNameStatusMessage:
118+
# is_read_only: true
119+
# type: string
120+
DomainName:
121+
is_primary_key: true
122+
tags:
123+
ignore: true
103124
operations:
104125
CreateApi:
105126
custom_implementation: customCreateApi

apis/v1alpha1/types.go

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

0 commit comments

Comments
 (0)