Skip to content

Commit d158886

Browse files
authored
Implement Stage resource (#11)
Issue #, if available: aws-controllers-k8s/community#1126 Description of changes: Implements support for creating `Stage` resources in API Gateway. This is based off the `cPu1:resource/integration` branch and must be reviewed after merging #10. By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent f9fa8de commit d158886

30 files changed

+3594
-14
lines changed
+3-3
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
ack_generate_info:
2-
build_date: "2024-10-01T23:08:59Z"
2+
build_date: "2024-10-01T23:40:20Z"
33
build_hash: f8f98563404066ac3340db0a049d2e530e5c51cc
44
go_version: go1.22.5
55
version: v0.38.1
6-
api_directory_checksum: 432afd93573dfe74a6c14986217b9dc4cf038b35
6+
api_directory_checksum: 384f1a5b6a0daffcccbca3122cb095b288963990
77
api_version: v1alpha1
88
aws_sdk_go_version: v1.55.0
99
generator_config_info:
10-
file_checksum: 296561b679a8de658cca9713d3e98d893911a818
10+
file_checksum: c096c3640019de8c8b01e6f0e4fbb2163e97e99e
1111
original_file_name: generator.yaml
1212
last_modification:
1313
reason: API generation

apis/v1alpha1/generator.yaml

+33-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ ignore:
1616
- RequestValidator
1717
# - Resource
1818
# - RestApi
19-
- Stage
19+
# - Stage
2020
- UsagePlan
2121
- UsagePlanKey
2222
# - VpcLink
@@ -164,3 +164,35 @@ resources:
164164
- ConflictException
165165
- NotFoundException
166166
- InvalidParameter
167+
# Fields AccessLogSettings and ClientCertificateId are not in the Create API. Support for them will be added based on
168+
# customer interest.
169+
Stage:
170+
fields:
171+
RestAPIID:
172+
references:
173+
resource: RestAPI
174+
path: Status.ID
175+
is_required: true
176+
is_immutable: true
177+
StageName:
178+
is_required: true
179+
is_immutable: true
180+
synced:
181+
when:
182+
- path: Status.CacheClusterStatus
183+
in:
184+
- AVAILABLE
185+
- NOT_AVAILABLE
186+
hooks:
187+
sdk_update_pre_build_request:
188+
template_path: hooks/stage/sdk_update_pre_build_request.go.tpl
189+
sdk_update_post_build_request:
190+
template_path: hooks/stage/sdk_update_post_build_request.go.tpl
191+
delta_pre_compare:
192+
code: customPreCompare(a, b)
193+
exceptions:
194+
terminal_codes:
195+
- BadRequestException
196+
- ConflictException
197+
- NotFoundException
198+
- InvalidParameter

apis/v1alpha1/stage.go

+121
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apis/v1alpha1/types.go

+41-9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)