-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Index Lifecycle Management Policy API #1105
Index Lifecycle Management Policy API #1105
Conversation
Travis seems to not be accepting any _ilm calls, which makes me think maybe version 6.7 isn't running on it? When im running 6.7 these tests pass locally. |
Happy to see this integrated into Elastic. The problem with the ILM API is that it's not available in the open source version AFAIK. In v6 and v7 we have two docker images running in TravisCI (here's v6): the OSS docker image and the platinum version, available at different ports and with different user/password. You need to use the correct client; see the tests in e.g. XPack Security API. What I'm not sure is if ILM is available in the Platinum image with a trial license installed. If we can't test the XPack ILM API, we need to skip the tests on TravisCI, e.g. by checking if the given feature is available:
Description of features is here. |
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 you please double check the request/response data from the XPack REST API and (if necessary) their Java implementation.
Can we also please rename ilm_...
to xpack_ilm_...
and ilm_lifecycle_test.go
to xpack_ilm_test.go
?
Oh. According to https://www.elastic.co/de/subscriptions we should be able to at least test XPack ILM API. We should probably enable it in |
Thanks for the review.
|
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.
Just a tiny thing left before I can merge. I'll port it to release-branch.v7
as well when it's done.
@olivere thanks for quick review, do you have any idea when you'll cut new releases so we can start using this? Thanks |
@aarontami It'll probably take at least until the weekend. |
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 🎉
This commit adds the Index Lifecycle Management Policy API to v7. It is a cherry-pick of #1105 on release-branch.v6.
Add some API calls for Index Lifecycle Management:
These API calls are also present in the Java client.
Index Lifecycle Management is supported in version 6.7 and above (non beta), so adding this to v6.