Skip to content

Commit bafd861

Browse files
authored
Feature: UpdateTrainingJob and warm pool support (#179)
1 parent eecd2a1 commit bafd861

File tree

59 files changed

+2757
-94
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+2757
-94
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: "2022-12-06T04:24:52Z"
2+
build_date: "2022-12-07T21:20:55Z"
33
build_hash: 6e2ffbc3b16a30ac59be6719918c601c2c864064
4-
go_version: go1.19.1
5-
version: v0.20.1-3-g6e2ffbc-dirty
6-
api_directory_checksum: d1a8286cb85155b185875aae9e3a72beaf720595
4+
go_version: go1.17.13
5+
version: v0.20.1-3-g6e2ffbc
6+
api_directory_checksum: 48886052888c7166740636bc128afdb53d05a4cb
77
api_version: v1alpha1
8-
aws_sdk_go_version: v1.44.93
8+
aws_sdk_go_version: v1.44.117
99
generator_config_info:
10-
file_checksum: afd4f10e7b9ed9b76e24dfcfefb646c024b03271
10+
file_checksum: 60bfaf57553c2e031a3e78bc8bb9c3535ad8ada8
1111
original_file_name: generator.yaml
1212
last_modification:
1313
reason: API generation

apis/v1alpha1/app.go

Lines changed: 1 addition & 2 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: 164 additions & 2 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: 34 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,8 @@ resources:
172172
compare:
173173
is_ignored: true
174174
TrainingJob:
175+
reconcile:
176+
requeue_on_success_seconds: 300
175177
exceptions:
176178
errors:
177179
404:
@@ -186,8 +188,14 @@ resources:
186188
hooks:
187189
delta_pre_compare:
188190
code: customSetDefaults(a, b)
191+
delta_post_compare:
192+
code: customPostCompare(b, a, delta)
189193
sdk_read_one_post_set_output:
190194
code: rm.customSetOutput(&resource{ko})
195+
sdk_update_post_build_request:
196+
template_path: training_job/sdk_update_post_build_request.go.tpl
197+
sdk_update_post_set_output:
198+
template_path: training_job/sdk_update_post_set_output.go.tpl
191199
sdk_delete_pre_build_request:
192200
template_path: training_job/sdk_delete_pre_build_request.go.tpl
193201
sdk_delete_post_request:
@@ -229,7 +237,27 @@ resources:
229237
priority: 1
230238
from:
231239
operation: DescribeTrainingJob
232-
path: FailureReason
240+
path: FailureReason
241+
WarmPoolStatus:
242+
is_read_only: true
243+
from:
244+
operation: DescribeTrainingJob
245+
path: WarmPoolStatus
246+
ProfilingStatus:
247+
is_read_only: true
248+
from:
249+
operation: DescribeTrainingJob
250+
path: ProfilingStatus
251+
LastModifiedTime:
252+
is_read_only: true
253+
from:
254+
operation: DescribeTrainingJob
255+
path: LastModifiedTime
256+
CreationTime:
257+
is_read_only: true
258+
from:
259+
operation: DescribeTrainingJob
260+
path: CreationTime
233261
AlgorithmSpecification.MetricDefinitions:
234262
compare:
235263
is_ignored: true
@@ -972,7 +1000,6 @@ ignore:
9721000
- Workforce
9731001
- Workteam
9741002
operations:
975-
- UpdateTrainingJob
9761003
- UpdateFeatureGroup
9771004
shape_names:
9781005
# RSessionAppSettings is an empty struct that causes generation errors
@@ -982,7 +1009,12 @@ ignore:
9821009
- ExecutionRoleIdentityConfig
9831010
- HyperParameterTuningResourceConfig
9841011
- InstanceMetadataServiceConfiguration
1012+
- CanvasAppSettings
1013+
- ExplainerConfig
1014+
- HyperParameterTuningJobStrategyConfig
1015+
- DisableProfiler
9851016
field_paths:
9861017
- StartPipelineExecutionInput.ClientRequestToken
9871018
- CreatePipelineInput.ClientRequestToken
9881019
- CreatePipelineInput.PipelineDefinitionS3Location
1020+

apis/v1alpha1/training_job.go

Lines changed: 17 additions & 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)