Skip to content

Commit 545820e

Browse files
authored
feat: Support LabelingJob CRD (#303)
Issue #, if available: Related request issue: aws-controllers-k8s/community#1639 Description of changes: - Support LabelingJob CRD - Formatted python files using [black](https://github.com/psf/black) - Removed unused imports in test files - Converted hardcoded ACK.Condition status to ACK test-infra's [global vars](https://github.com/aws-controllers-k8s/test-infra/blob/817a75417079e595b394e175c1463ebcec958f97/src/acktest/k8s/condition.py#L20-L26). By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent 65ed841 commit 545820e

File tree

104 files changed

+7540
-1485
lines changed

Some content is hidden

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

104 files changed

+7540
-1485
lines changed

ATTRIBUTION.md

Lines changed: 1189 additions & 784 deletions
Large diffs are not rendered by default.
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
ack_generate_info:
2-
build_date: "2025-06-02T19:22:34Z"
2+
build_date: "2025-06-04T05:46:26Z"
33
build_hash: abd45b45e7726b7893641afaeae805281358e684
4-
go_version: go1.24.2
5-
version: v0.47.2
6-
api_directory_checksum: 88ea6310906fb357a184f545b315fe64119f04b4
4+
go_version: go1.24.3
5+
version: v0.47.2-dirty
6+
api_directory_checksum: 9633c84a1672c5342cd2d977c6807bd31f463586
77
api_version: v1alpha1
88
aws_sdk_go_version: v1.32.6
99
generator_config_info:
10-
file_checksum: ee0fc44fc3f0dbad118ea064ae491f0559f3f42f
10+
file_checksum: fe0cce3df95f113f47c09efc7fd3cc531d3eb5dc
1111
original_file_name: generator.yaml
1212
last_modification:
1313
reason: API generation

apis/v1alpha1/enums.go

Lines changed: 10 additions & 10 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: 95 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ operations:
2222
StopPipelineExecution:
2323
operation_type: Delete
2424
resource_name: PipelineExecution
25+
StopLabelingJob:
26+
operation_type: Delete
27+
resource_name: LabelingJob
2528
resources:
2629
Model:
2730
hooks:
@@ -129,7 +132,7 @@ resources:
129132
compare:
130133
is_ignored: true
131134
Endpoint:
132-
reconcile:
135+
reconcile:
133136
requeue_on_success_seconds: 30
134137
update_conditions_custom_method_name: CustomUpdateConditions
135138
exceptions:
@@ -199,7 +202,7 @@ resources:
199202
compare:
200203
is_ignored: true
201204
TrainingJob:
202-
reconcile:
205+
reconcile:
203206
requeue_on_success_seconds: 300
204207
exceptions:
205208
errors:
@@ -272,7 +275,7 @@ resources:
272275
path: WarmPoolStatus
273276
ProfilingStatus:
274277
is_read_only: true
275-
from:
278+
from:
276279
operation: DescribeTrainingJob
277280
path: ProfilingStatus
278281
LastModifiedTime:
@@ -348,7 +351,7 @@ resources:
348351
priority: 1
349352
from:
350353
operation: DescribeProcessingJob
351-
path: FailureReason
354+
path: FailureReason
352355
Tags:
353356
compare:
354357
is_ignored: true
@@ -391,10 +394,10 @@ resources:
391394
path: FailureReason
392395
TransformInput.SplitType:
393396
late_initialize:
394-
min_backoff_seconds: 5
395-
TransformInput.CompressionType:
397+
min_backoff_seconds: 5
398+
TransformInput.CompressionType:
396399
late_initialize:
397-
min_backoff_seconds: 5
400+
min_backoff_seconds: 5
398401
Tags:
399402
compare:
400403
is_ignored: true
@@ -543,7 +546,7 @@ resources:
543546
compare:
544547
is_ignored: true
545548
MonitoringSchedule:
546-
reconcile:
549+
reconcile:
547550
requeue_on_success_seconds: 30
548551
update_conditions_custom_method_name: CustomUpdateConditions
549552
exceptions:
@@ -642,7 +645,7 @@ resources:
642645
name: STATUS
643646
from:
644647
operation: DescribeModelPackage
645-
path: ModelPackageStatus
648+
path: ModelPackageStatus
646649
CreationTime:
647650
is_read_only: true
648651
from:
@@ -719,7 +722,7 @@ resources:
719722
NotebookInstance:
720723
# Resource state/status can be modified in Sagemaker Console
721724
# Need to reconcile to catch these state/status changes
722-
reconcile:
725+
reconcile:
723726
requeue_on_success_seconds: 60
724727
exceptions:
725728
errors:
@@ -731,7 +734,7 @@ resources:
731734
- InvalidParameterValue
732735
- MissingParameter
733736
hooks:
734-
sdk_read_one_post_set_output:
737+
sdk_read_one_post_set_output:
735738
template_path: notebook_instance/sdk_read_one_post_set_output.go.tpl
736739
delta_pre_compare:
737740
code: customSetDefaults(a, b)
@@ -779,7 +782,7 @@ resources:
779782
is_ignored: true
780783
VolumeSizeInGB:
781784
late_initialize:
782-
min_backoff_seconds: 5
785+
min_backoff_seconds: 5
783786
ModelPackageGroup:
784787
exceptions:
785788
errors:
@@ -790,21 +793,21 @@ resources:
790793
- InvalidParameterCombination
791794
- InvalidParameterValue
792795
- MissingParameter
793-
- ConflictException
796+
- ConflictException
794797
fields:
795798
ModelPackageGroupStatus:
796799
is_read_only: true
797800
print:
798801
name: STATUS
799802
from:
800803
operation: DescribeModelPackageGroup
801-
path: ModelPackageGroupStatus
804+
path: ModelPackageGroupStatus
802805
Tags:
803806
compare:
804-
is_ignored: true
807+
is_ignored: true
805808
hooks:
806809
sdk_read_one_post_set_output:
807-
code: rm.customSetOutput(&resource{ko})
810+
code: rm.customSetOutput(&resource{ko})
808811
sdk_delete_pre_build_request:
809812
template_path: common/sdk_delete_pre_build_request.go.tpl
810813
sdk_delete_post_request:
@@ -845,7 +848,7 @@ resources:
845848
# Custom code is implemented for these fields delta comparison
846849
OnCreate:
847850
compare:
848-
is_ignored: true
851+
is_ignored: true
849852
OnStart:
850853
compare:
851854
is_ignored: true
@@ -861,7 +864,7 @@ resources:
861864
- InvalidParameterCombination
862865
- InvalidParameterValue
863866
- MissingParameter
864-
hooks:
867+
hooks:
865868
sdk_create_post_set_output:
866869
template_path: domain/sdk_create_post_set_output.go.tpl
867870
sdk_read_one_post_set_output:
@@ -886,7 +889,7 @@ resources:
886889
name: STATUS
887890
from:
888891
operation: DescribeDomain
889-
path: Status
892+
path: Status
890893
AppNetworkAccessType:
891894
late_initialize:
892895
min_backoff_seconds: 5
@@ -901,7 +904,7 @@ resources:
901904
min_backoff_seconds: 5
902905
Tags:
903906
compare:
904-
is_ignored: true
907+
is_ignored: true
905908
UserProfile:
906909
exceptions:
907910
errors:
@@ -912,7 +915,7 @@ resources:
912915
- InvalidParameterCombination
913916
- InvalidParameterValue
914917
- MissingParameter
915-
hooks:
918+
hooks:
916919
sdk_read_one_post_set_output:
917920
code: rm.customDescribeUserProfileSetOutput(ko)
918921
sdk_update_pre_build_request:
@@ -934,7 +937,7 @@ resources:
934937
min_backoff_seconds: 5
935938
Tags:
936939
compare:
937-
is_ignored: true
940+
is_ignored: true
938941
App:
939942
exceptions:
940943
errors:
@@ -945,7 +948,7 @@ resources:
945948
- InvalidParameterCombination
946949
- InvalidParameterValue
947950
- MissingParameter
948-
hooks:
951+
hooks:
949952
sdk_read_one_post_set_output:
950953
code: rm.customDescribeAppSetOutput(ko)
951954
sdk_delete_pre_build_request:
@@ -959,7 +962,7 @@ resources:
959962
name: STATUS
960963
from:
961964
operation: DescribeApp
962-
path: Status
965+
path: Status
963966
ResourceSpec:
964967
late_initialize:
965968
min_backoff_seconds: 5
@@ -1001,7 +1004,7 @@ resources:
10011004
PipelineExecution:
10021005
# Resource state/status can have automatic retry-policy
10031006
# Need to reconcile to catch these state/status changes
1004-
reconcile:
1007+
reconcile:
10051008
requeue_on_success_seconds: 60
10061009
hooks:
10071010
sdk_read_one_pre_set_output:
@@ -1052,6 +1055,72 @@ resources:
10521055
- ResourceNotFound
10531056
tags:
10541057
ignore: true
1058+
LabelingJob:
1059+
exceptions:
1060+
errors:
1061+
404:
1062+
code: ValidationException
1063+
terminal_codes:
1064+
- ResourceNotFound
1065+
- ResourceInUse
1066+
- InvalidParameterCombination
1067+
- InvalidParameterValue
1068+
- MissingParameter
1069+
hooks:
1070+
delta_pre_compare:
1071+
code: customSetDefaults(a, b)
1072+
sdk_read_one_post_set_output:
1073+
code: rm.customSetOutput(&resource{ko})
1074+
sdk_delete_pre_build_request:
1075+
template_path: labeling_job/sdk_delete_pre_build_request.go.tpl
1076+
sdk_delete_post_request:
1077+
template_path: common/sdk_delete_post_request.go.tpl
1078+
fields:
1079+
OutputConfig.KMSKeyID:
1080+
late_initialize:
1081+
min_backoff_seconds: 5
1082+
HumanTaskConfig.MaxConcurrentTaskCount:
1083+
late_initialize:
1084+
min_backoff_seconds: 5
1085+
HumanTaskConfig.TaskAvailabilityLifetimeInSeconds:
1086+
late_initialize:
1087+
min_backoff_seconds: 5
1088+
LabelingJobAlgorithmsConfig.LabelingJobResourceConfig:
1089+
late_initialize:
1090+
min_backoff_seconds: 5
1091+
LabelingJobStatus:
1092+
is_read_only: true
1093+
print:
1094+
name: STATUS
1095+
from:
1096+
operation: DescribeLabelingJob
1097+
path: LabelingJobStatus
1098+
FailureReason:
1099+
is_read_only: true
1100+
print:
1101+
name: FAILURE-REASON
1102+
priority: 1
1103+
from:
1104+
operation: DescribeLabelingJob
1105+
path: FailureReason
1106+
LabelCounters:
1107+
is_read_only: true
1108+
from:
1109+
operation: DescribeLabelingJob
1110+
path: LabelCounters
1111+
LabelingJobOutput:
1112+
is_read_only: true
1113+
from:
1114+
operation: DescribeLabelingJob
1115+
path: LabelingJobOutput
1116+
JobReferenceCode:
1117+
is_read_only: true
1118+
from:
1119+
operation: DescribeLabelingJob
1120+
path: JobReferenceCode
1121+
Tags:
1122+
compare:
1123+
is_ignored: true
10551124
ignore:
10561125
resource_names:
10571126
- Algorithm
@@ -1085,7 +1154,7 @@ ignore:
10851154
- Image
10861155
- ImageVersion
10871156
- InferenceExperiment
1088-
- LabelingJob
1157+
# - LabelingJob
10891158
# - Model
10901159
- MlflowTrackingServer
10911160
- ModelCard
@@ -1171,5 +1240,3 @@ ignore:
11711240
- ModelPackageContainerDefinition.ModelDataSource
11721241
- S3ModelDataSource.HubAccessConfig
11731242
- S3ModelDataSource.ManifestS3Uri
1174-
1175-

0 commit comments

Comments
 (0)