Skip to content

Conversation

@colings86
Copy link
Contributor

This api will change index.lifecycle.name for all indexes in the
provided pattern as long as they are not currently in the shrink action.

Later changes will loosen this restriction so an index is only reject
if it is currently in the shrink action AND the diff between the old
and new policy includes changes to the shrink action.

Also later changes will detect if the current step is not present in
the new policy and move the index onto the next available step

@colings86 colings86 added review :Data Management/ILM+SLM Index and Snapshot lifecycle management labels Jun 12, 2018
@colings86 colings86 self-assigned this Jun 12, 2018
@colings86 colings86 requested a review from talevy June 12, 2018 15:15
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra

@talevy
Copy link
Contributor

talevy commented Jun 12, 2018

Overall Looks good,

should we rename "changePolicy" to "setPolicy". It feels wrong to say change, when it effectively
sets it from nothing on previously unmanaged indices

@colings86
Copy link
Contributor Author

@talevy I renamed the action, could you look again?

Copy link
Contributor

@talevy talevy left a comment

Choose a reason for hiding this comment

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

needs master merge

LGTM

This api will change `index.lifecycle.name` for all indexes in the
provided pattern as long as they are not currently in the shrink action.

Later changes will loosen this restriction so an index is only reject
if it is currently in the shrink action AND the diff between the old
and new policy includes changes to the shrink action.

Also later changes will detect if the current step is not present in
the new policy and move the index onto the next available step
Also changes all related Classes and api endpoints
@colings86 colings86 merged commit 6c9e0ae into elastic:index-lifecycle Jun 13, 2018
@colings86 colings86 deleted the ilm/update-policy branch June 13, 2018 16:17
jasontedor pushed a commit that referenced this pull request Aug 17, 2018
* Adds API to assign or change the policy for an index

This api will change `index.lifecycle.name` for all indexes in the
provided pattern as long as they are not currently in the shrink action.

Later changes will loosen this restriction so an index is only reject
if it is currently in the shrink action AND the diff between the old
and new policy includes changes to the shrink action.

Also later changes will detect if the current step is not present in
the new policy and move the index onto the next available step

* Changes name to SetPolicyForIndexAction

Also changes all related Classes and api endpoints

* fixes tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Data Management/ILM+SLM Index and Snapshot lifecycle management

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants