Skip to content

Commit ad448b8

Browse files
authored
update conditions on delete and aws error code+message (#91)
Description of changes: - bring in changes from aws-controllers-k8s/code-generator#175, aws-controllers-k8s/code-generator#176 - corresponding unit and integ test changes - fix some erroneous unit tests like model package group and endpoint config - fix invalid name in unit test - fix assertion in notebook instance test since PR build was failing and add it to missing canary cleanup Testing: unit test tested manually, rely on PR build, later we can add more unit tests for delete failed scenario By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent 9fa6152 commit ad448b8

File tree

91 files changed

+357
-138
lines changed

Some content is hidden

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

91 files changed

+357
-138
lines changed
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
ack_generate_info:
2-
build_date: "2021-08-31T22:29:55Z"
3-
build_hash: 07d7ea755625b2cac93bbf293bf5a8cab24ecb68
4-
go_version: go1.16.4 darwin/amd64
2+
build_date: "2021-09-01T00:07:38Z"
3+
build_hash: 6f22b7b568e25b4ee007bb1ab5f9338c16daf172
4+
go_version: go1.16.4 linux/amd64
55
version: v0.13.0
66
api_directory_checksum: 13c67d2ac904c5b3c1ddea34aba38d90f06f3adc
77
api_version: v1alpha1
@@ -11,4 +11,4 @@ generator_config_info:
1111
original_file_name: generator.yaml
1212
last_modification:
1313
reason: API generation
14-
timestamp: 2021-08-31 22:30:07.288585 +0000 UTC
14+
timestamp: 2021-09-01 00:07:46.08290738 +0000 UTC

helm/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
apiVersion: v1
22
name: sagemaker-chart
3-
description: A Helm chart for the ACK service controller for sagemaker
3+
description: A Helm chart for the ACK service controller for Amazon SageMaker (SageMaker)
44
version: v0.0.3
55
appVersion: v0.0.3
66
home: https://github.com/aws-controllers-k8s/sagemaker-controller
@@ -10,7 +10,7 @@ sources:
1010
maintainers:
1111
- name: ACK Admins
1212
url: https://github.com/orgs/aws-controllers-k8s/teams/ack-admin
13-
- name: sagemaker Admins
13+
- name: SageMaker Admins
1414
url: https://github.com/orgs/aws-controllers-k8s/teams/sagemaker-maintainer
1515
keywords:
1616
- aws

pkg/resource/data_quality_job_definition/manager.go

Lines changed: 12 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/resource/data_quality_job_definition/sdk.go

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

pkg/resource/data_quality_job_definition/testdata/data_quality_job_definition/v1alpha1/dqjd_invalid_before_create.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ kind: DataQualityJobDefinition
33
metadata:
44
name: unit_testing_job_definition
55
spec:
6-
jobDefinitionName: !-intentionally-invalid-name
6+
jobDefinitionName: intentionally@invalid-name
77
jobResources:
88
clusterConfig:
99
instanceCount: 1

pkg/resource/data_quality_job_definition/testdata/data_quality_job_definition/v1alpha1/dqjd_invalid_create_attempted.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ spec:
2424
localPath: /opt/ml/processing/output
2525
s3URI: s3://source-data-bucket-592697580195-us-west-2/sagemaker/data_quality_job_definition/reports
2626
s3UploadMode: Continuous
27-
jobDefinitionName: ""
27+
jobDefinitionName: intentionally@invalid-name
2828
jobResources:
2929
clusterConfig:
3030
instanceCount: 1
@@ -44,6 +44,7 @@ status:
4444
ackResourceMetadata:
4545
ownerAccountID: ""
4646
conditions:
47-
- message: The job definition name must start with an alphanumeric character.
47+
- message: "InvalidParameterValue: The job definition name must not include a special
48+
character.\n\tstatus code: 0, request id: "
4849
status: "True"
4950
type: ACK.Terminal

pkg/resource/data_quality_job_definition/testdata/test_suite.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ tests:
1010
- operation: CreateDataQualityJobDefinitionWithContext
1111
error:
1212
code: InvalidParameterValue
13-
message: "The job definition name must start with an alphanumeric character."
13+
message: "The job definition name must not include a special character."
1414
invoke: Create
1515
expect:
1616
latest_state: "data_quality_job_definition/v1alpha1/dqjd_invalid_create_attempted.yaml"

pkg/resource/endpoint/manager.go

Lines changed: 12 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/resource/endpoint/sdk.go

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

pkg/resource/endpoint/testdata/test_suite.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ tests:
1010
- operation: CreateEndpointWithContext
1111
error:
1212
code: InvalidParameterValue
13-
message: "The endpoint name must start with an alphanumeric character."
13+
message: "The endpoint name must not include a special character."
1414
invoke: Create
1515
expect:
1616
latest_state: "v1alpha1/create/observed/invalid_create_attempted.yaml"

0 commit comments

Comments
 (0)