-
Notifications
You must be signed in to change notification settings - Fork 20
Enable AdoptedResource using latest code-gen logic for ScalableTarget #47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable AdoptedResource using latest code-gen logic for ScalableTarget #47
Conversation
7caea06 to
bed96a7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for updating this! Tests look good!
| describe_response = sagemaker_endpoint_describe_scaling_policy( | ||
| resource_id, policy_name | ||
| ) | ||
| if len(describe_response["ScalingPolicies"]) > 0: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can remove >0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/approve
| sagemaker_endpoint_delete_scaling_policy, | ||
| ) | ||
|
|
||
| TARGET_RESOURCE_PLURAL = "scalabletargets" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: these can move to common config
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mbaijal, surajkota The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Issue #, if available: release artifacts for release v0.1.0 Release Notes draft: This release includes the following resources and updates: - Enables the AdoptedResource Feature for both `ScalableTarget` and `ScalingPolicy` ( #47 ). - Uses the server side `CreationTime` to set the `LastModifiedTime` the very first time ( #49 ). - Some release and helm test related changes ( #48 and #50). By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
First two commits are the same as #42 but created a separate PR because I wanted preserve the changes of that PR.
TODO:
Description of changes:
Testing
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.