Skip to content

Conversation

@mbaijal
Copy link
Contributor

@mbaijal mbaijal commented Sep 14, 2021

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:

  • Enable AdoptedResource for both resources
  • Add required custom logic for ScalableTarget
  • Add integration test for the same

Testing

  • Manually verified that scalableTarget can be adopted
  • Local Kind tests pass

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@mbaijal mbaijal force-pushed the fix-adopted-resource-ids-post-release-nick branch from 7caea06 to bed96a7 Compare September 14, 2021 01:34
Copy link
Contributor

@RedbackThomson RedbackThomson left a 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:
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can remove >0

Copy link
Member

@surajkota surajkota left a 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"
Copy link
Member

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

@surajkota
Copy link
Member

/lgtm

@ack-bot ack-bot added the lgtm Indicates that a PR is ready to be merged. label Sep 14, 2021
@ack-bot
Copy link
Collaborator

ack-bot commented Sep 14, 2021

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ack-bot ack-bot merged commit 6d24755 into aws-controllers-k8s:main Sep 14, 2021
ack-bot pushed a commit that referenced this pull request Sep 16, 2021
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants