-
Notifications
You must be signed in to change notification settings - Fork 23.9k
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 support for ECR Lifecycle Policies to ecs_ecr #48997
Conversation
Rebased #32137 |
Hi @SpamapS, thank you for submitting this pull-request! |
The test
|
Would be most appreciated if this PR could be picked back up :) |
Rebased! I've had this vendored locally since the initial rebase I did... would be great to rejoin the fold in some future Ansible release. :) |
New feature for ecs_ecr to support [ECR Lifecycle Policies][]. Fixes ansible#32003 [ECR Lifecycle Policies]: https://docs.aws.amazon.com/AmazonECR/latest/userguide/LifecyclePolicies.html
Replaces the exception and stack trace with a description of what's actually going wrong from a user perspective.
Marks the `delete_policy` parameter as deprecated, to be removed in Ansible 2.6.
What I really want is --diff support, and changing results based on verbosity is abnormal.
The original PR sat while a few releases happened.
We missed the 2.8 release.
This is not allowed and is generally bad practice.
This was added in the time the PR has been in development, so rework things to use it.
This makes sure that lifecycle_policy is produced when passed in. *Also a minor suggestion for simplification from PR.
I believe that should do it, sanity and integration tests are passing locally. If CI passes and you don't have any objections to my changes there @SpamapS I'll give it a fresh set of eyes in the morning just to be safe but I think we should be about there. |
The test
|
Per sanity test fail.
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.
LGTM, thanks very much @SpamapS!
SUMMARY
Add support for ECR Lifecycle Policies to ecs_ecr. Fixes #32003
ISSUE TYPE
COMPONENT NAME
ecs_ecr
ANSIBLE VERSION
ansible 2.4.0.0
config file = /Users/dlee/.ansible.cfg
configured module search path = [u'/Users/dlee/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /usr/local/Cellar/ansible/2.4.0.0/libexec/lib/python2.7/site-packages/ansible
executable location = /usr/local/bin/ansible
python version = 2.7.14 (default, Sep 25 2017, 09:53:22) [GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.37)]
ADDITIONAL INFORMATION
Integration tests provided, and they pass.
PLAY RECAP *********************************************************************
localhost : ok=55 changed=8 unreachable=0 failed=0