-
Notifications
You must be signed in to change notification settings - Fork 397
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
add TargetTrackingScaling
as a scaling policy option
#771
add TargetTrackingScaling
as a scaling policy option
#771
Conversation
@@ -272,6 +273,13 @@ def create_scaling_policy(connection, module): | |||
if module.params['cooldown']: | |||
params['Cooldown'] = module.params['cooldown'] | |||
|
|||
if policy_type == 'TargetTrackingScaling': |
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.
You can do this with a required_if
in main when the module is instantiated. Like in these examples
https://github.com/ansible-collections/community.aws/blob/main/plugins/modules/ecs_taskdefinition.py#L806-L809
https://github.com/ansible-collections/community.aws/blob/main/plugins/modules/ecs_service.py#L695-L700
As it is now,
|
90dff1d
to
fc44cfe
Compare
fc44cfe
to
59c600d
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.
Good progress on this, thanks @falcon78921!
d12f026
to
c843c19
Compare
Build failed.
|
Build failed.
|
module.fail_json(msg='step_adjustments is required when policy_type is StepScaling ' | ||
'and state is present') | ||
module.fail_json(msg='step_adjustments is required when policy_type is StepScaling' | ||
'and state is present') |
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.
it looks like your editor has "format on save" enabled, this creates a lot of unnecessary diff noise which can be difficult to review (now, and if we need to go through git history later for bugfixes). would you be able to toggle this setting off for this repo and back out the formatting changes in this file please?
Build failed.
|
b5a7e23
to
eeb9022
Compare
Build failed (third-party-check pipeline) integration testing with
|
Build failed.
|
Build failed (third-party-check pipeline) integration testing with
|
ansible-test-units-community-aws-python38 fails here:
I don't think this is related to |
Build failed.
|
Build failed (third-party-check pipeline) integration testing with
|
Build failed.
|
@jillr The sanity tests finally passed! :) When running the AWS integration tests in my environment, everything checks out ok. Not sure if I'm missing something. |
This comment was marked as outdated.
This comment was marked as outdated.
Docs Build 📝Thank you for contribution!✨ This PR has been merged and your docs changes will be incorporated when they are next published. |
recheck |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as resolved.
This comment was marked as resolved.
Backport to stable-4: 💚 backport PR created✅ Backport PR branch: Backported as #1306 🤖 @patchback |
add `TargetTrackingScaling` as a scaling policy option SUMMARY Add TargetTrackingScaling as an EC2 scaling option. Fixes: #544 ISSUE TYPE Feature Pull Request COMPONENT NAME ec2_scaling_policy.py Reviewed-by: Jill R <None> Reviewed-by: James McClune <None> Reviewed-by: Alina Buzachis <None> Reviewed-by: Mark Chappell <None> (cherry picked from commit 4be1e70)
add `TargetTrackingScaling` as a scaling policy option SUMMARY Add TargetTrackingScaling as an EC2 scaling option. Fixes: #544 ISSUE TYPE Feature Pull Request COMPONENT NAME ec2_scaling_policy.py Reviewed-by: Jill R <None> Reviewed-by: James McClune <None> Reviewed-by: Alina Buzachis <None> Reviewed-by: Mark Chappell <None> (cherry picked from commit 4be1e70)
[PR #771/4be1e701 backport][stable-4] add `TargetTrackingScaling` as a scaling policy option This is a backport of PR #771 as merged into main (4be1e70). SUMMARY Add TargetTrackingScaling as an EC2 scaling option. Fixes: #544 ISSUE TYPE Feature Pull Request COMPONENT NAME ec2_scaling_policy.py Reviewed-by: Mark Chappell <None>
SUMMARY
Add
TargetTrackingScaling
as an EC2 scaling option.Fixes: #544
ISSUE TYPE
COMPONENT NAME
ec2_scaling_policy.py