Skip to content

Commit 29588d9

Browse files
authored
Generate APIMapping resource (#78)
Issue [#1567](aws-controllers-k8s/community#1567) Description of changes: * Removed APIMapping 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 d123345 commit 29588d9

28 files changed

+2265
-13
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
ack_generate_info:
2-
build_date: "2024-07-17T23:18:37Z"
2+
build_date: "2024-07-18T18:33:38Z"
33
build_hash: 14cef51778d471698018b6c38b604181a6948248
44
go_version: go1.22.5
55
version: v0.34.0-dirty
6-
api_directory_checksum: f7f58613ba2977cf405a54b14e20b750eca01a72
6+
api_directory_checksum: e7ca62c7f3adb7b809dd3553fc4389fa5c7d04b3
77
api_version: v1alpha1
88
aws_sdk_go_version: v1.49.0
99
generator_config_info:
10-
file_checksum: 62185885ace3d8936cba5f3e3f4b90a3f82cfe89
10+
file_checksum: 6151f468bc35004a1306f250ef465e62c9ee8949
1111
original_file_name: generator.yaml
1212
last_modification:
1313
reason: API generation

apis/v1alpha1/api_mapping.go

Lines changed: 73 additions & 0 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: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
ignore:
22
resource_names:
3-
# ApiMapping is ignored due to lack of Public DNS setup in e2e testing
4-
- ApiMapping
5-
# Model is not supported for HTTP APIs. Remove when adding support for WebSocket APIs
3+
# # Model is not supported for HTTP APIs. Remove when adding support for WebSocket APIs
64
- Model
75
# IntegrationResponse is not supported for HTTP APIs. Remove when adding support for WebSocket APIs
86
- IntegrationResponse
@@ -121,6 +119,21 @@ resources:
121119
is_primary_key: true
122120
tags:
123121
ignore: true
122+
ApiMapping:
123+
exceptions:
124+
terminal_codes:
125+
- BadRequestException
126+
fields:
127+
ApiId:
128+
references:
129+
resource: API
130+
path: Status.APIID
131+
DomainName:
132+
references:
133+
resource: DomainName
134+
path: Spec.DomainName
135+
tags:
136+
ignore: true
124137
operations:
125138
CreateApi:
126139
custom_implementation: customCreateApi

apis/v1alpha1/types.go

Lines changed: 1 addition & 1 deletion
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: 143 additions & 3 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: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)