Skip to content

Commit a6341c5

Browse files
authored
Initial pipeline-execution resource (#174)
* initial pipeline-execution resource * Provide test image * update crds for pipeline execution * update image * update e2e test * use small pipeline and add hook for adoption * use processing job for pipeline-execution test * regen with instance groups * test for last modified time in e2e * regen with adoption
1 parent 1989765 commit a6341c5

34 files changed

+2658
-52
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: "2022-12-01T04:13:07Z"
2+
build_date: "2022-12-06T04:24:52Z"
33
build_hash: 6e2ffbc3b16a30ac59be6719918c601c2c864064
44
go_version: go1.19.1
55
version: v0.20.1-3-g6e2ffbc-dirty
6-
api_directory_checksum: 0db1fd575ff46e8ba76499d850396be289955ea6
6+
api_directory_checksum: d1a8286cb85155b185875aae9e3a72beaf720595
77
api_version: v1alpha1
88
aws_sdk_go_version: v1.44.93
99
generator_config_info:
10-
file_checksum: c3c79f9a3bb0da1c242c37ada3a10b07ab836653
10+
file_checksum: afd4f10e7b9ed9b76e24dfcfefb646c024b03271
1111
original_file_name: generator.yaml
1212
last_modification:
1313
reason: API generation

apis/v1alpha1/enums.go

Lines changed: 6 additions & 6 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: 61 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,67 @@ operations:
1616
StopHyperParameterTuningJob:
1717
operation_type: Delete
1818
resource_name: HyperParameterTuningJob
19+
StartPipelineExecution:
20+
operation_type: Create
21+
resource_name: PipelineExecution
22+
StopPipelineExecution:
23+
operation_type: Delete
24+
resource_name: PipelineExecution
1925
resources:
26+
PipelineExecution:
27+
# Resource state/status can have automatic retry-policy
28+
# Need to reconcile to catch these state/status changes
29+
reconcile:
30+
requeue_on_success_seconds: 60
31+
hooks:
32+
sdk_read_one_pre_set_output:
33+
code: rm.customSetSpec(ko,resp)
34+
sdk_read_one_post_set_output:
35+
code: rm.customSetOutput(&resource{ko})
36+
sdk_delete_pre_build_request:
37+
template_path: pipeline_execution/sdk_delete_pre_build_request.go.tpl
38+
sdk_delete_post_request:
39+
template_path: common/sdk_delete_post_request.go.tpl
40+
sdk_update_post_set_output:
41+
code: rm.customSetOutput(&resource{ko})
42+
fields:
43+
PipelineExecutionStatus:
44+
is_read_only: true
45+
print:
46+
name: STATUS
47+
from:
48+
operation: DescribePipelineExecution
49+
path: PipelineExecutionStatus
50+
FailureReason:
51+
is_read_only: true
52+
print:
53+
name: FAILURE-REASON
54+
priority: 1
55+
from:
56+
operation: DescribePipelineExecution
57+
path: FailureReason
58+
CreationTime:
59+
is_read_only: true
60+
from:
61+
operation: DescribePipelineExecution
62+
path: CreationTime
63+
LastModifiedTime:
64+
is_read_only: true
65+
from:
66+
operation: DescribePipelineExecution
67+
path: LastModifiedTime
68+
exceptions:
69+
errors:
70+
404:
71+
code: ResourceNotFound
72+
message_suffix: does not exist
73+
terminal_codes:
74+
- InvalidParameterCombination
75+
- InvalidParameterValue
76+
- MissingParameter
77+
- ResourceNotFound
78+
tags:
79+
ignore: true
2080
Model:
2181
hooks:
2282
delta_pre_compare:
@@ -922,8 +982,7 @@ ignore:
922982
- ExecutionRoleIdentityConfig
923983
- HyperParameterTuningResourceConfig
924984
- InstanceMetadataServiceConfiguration
925-
- InstanceGroups
926-
- InstanceGroupNames
927985
field_paths:
986+
- StartPipelineExecutionInput.ClientRequestToken
928987
- CreatePipelineInput.ClientRequestToken
929988
- CreatePipelineInput.PipelineDefinitionS3Location

apis/v1alpha1/pipeline_execution.go

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

apis/v1alpha1/types.go

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

0 commit comments

Comments
 (0)