Skip to content

Commit ae1e108

Browse files
Support InferenceComponent CRD. (#260)
Description of changes: - Add new `InferenceComponent` CRD - Add unit and 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 3a86a3b commit ae1e108

File tree

76 files changed

+4896
-22
lines changed

Some content is hidden

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

76 files changed

+4896
-22
lines changed
+3-3
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
ack_generate_info:
2-
build_date: "2024-03-06T21:33:47Z"
2+
build_date: "2024-03-11T20:40:41Z"
33
build_hash: a5ba3c851434263128a1464a2c41e528779eeefa
44
go_version: go1.22.0
55
version: v0.32.1
6-
api_directory_checksum: 731faf4c5d6d6f5140b4e0786127df447f773217
6+
api_directory_checksum: 476c2a15949ae95e3cefcc07b7eb39de6cd7548b
77
api_version: v1alpha1
88
aws_sdk_go_version: v1.50.15
99
generator_config_info:
10-
file_checksum: 0d728ab3662c7e538aff6727f087b54c5969fdcf
10+
file_checksum: 708e5a5444203d25538466e7e1914c3869d5a93e
1111
original_file_name: generator.yaml
1212
last_modification:
1313
reason: API generation

apis/v1alpha1/enums.go

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

apis/v1alpha1/generator.yaml

+69-1
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,80 @@ resources:
5454
- InvalidParameterValue
5555
- MissingParameter
5656
fields:
57+
EnableNetworkIsolation:
58+
late_initialize:
59+
min_backoff_seconds: 5
5760
Tags:
5861
compare:
5962
is_ignored: true
6063
hooks:
6164
delta_pre_compare:
6265
code: customSetDefaults(a, b)
66+
InferenceComponent:
67+
reconcile:
68+
requeue_on_success_seconds: 30
69+
update_conditions_custom_method_name: CustomUpdateConditions
70+
exceptions:
71+
errors:
72+
404:
73+
code: ValidationException
74+
message_prefix: Could not find inference component
75+
terminal_codes:
76+
- InvalidParameterCombination
77+
- InvalidParameterValue
78+
- MissingParameter
79+
# Custom error
80+
- InferenceComponentUpdateError
81+
hooks:
82+
sdk_read_one_post_set_output:
83+
template_path: inference_component/sdk_read_one_post_set_output.go.tpl
84+
sdk_update_pre_build_request:
85+
template_path: inference_component/sdk_update_pre_build_request.go.tpl
86+
sdk_update_post_set_output:
87+
template_path: inference_component/sdk_update_post_set_output.go.tpl
88+
sdk_delete_pre_build_request:
89+
template_path: common/sdk_delete_pre_build_request.go.tpl
90+
sdk_delete_post_request:
91+
template_path: common/sdk_delete_post_request.go.tpl
92+
fields:
93+
InferenceComponentStatus:
94+
is_read_only: true
95+
print:
96+
name: STATUS
97+
from:
98+
operation: DescribeInferenceComponent
99+
path: InferenceComponentStatus
100+
FailureReason:
101+
is_read_only: true
102+
print:
103+
name: FAILURE-REASON
104+
priority: 1
105+
from:
106+
operation: DescribeInferenceComponent
107+
path: FailureReason
108+
CreationTime:
109+
is_read_only: true
110+
from:
111+
operation: DescribeInferenceComponent
112+
path: CreationTime
113+
LastModifiedTime:
114+
is_read_only: true
115+
from:
116+
operation: DescribeInferenceComponent
117+
path: LastModifiedTime
118+
EndpointName:
119+
is_read_only: true
120+
from:
121+
operation: DescribeInferenceComponent
122+
path: EndpointName
123+
VariantName:
124+
is_read_only: true
125+
from:
126+
operation: DescribeInferenceComponent
127+
path: VariantName
128+
Tags:
129+
compare:
130+
is_ignored: true
63131
Endpoint:
64132
reconcile:
65133
requeue_on_success_seconds: 30
@@ -1007,7 +1075,7 @@ ignore:
10071075
- Hub
10081076
- HumanTaskUi
10091077
# - HyperParameterTuningJob
1010-
- InferenceComponent
1078+
# - InferenceComponent
10111079
- InferenceRecommendationsJob
10121080
- Image
10131081
- ImageVersion

apis/v1alpha1/inference_component.go

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

apis/v1alpha1/types.go

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

0 commit comments

Comments
 (0)