Skip to content

Commit

Permalink
Support allow_write_after_shrink in ILM policies
Browse files Browse the repository at this point in the history
  • Loading branch information
tobio committed Jun 12, 2024
1 parent 002437b commit d1205e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/elasticsearch/index/ilm.go
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@ func expandPhase(p map[string]interface{}, serverVersion *version.Version) (*mod
case "set_priority":
actions[actionName], diags = expandAction(a, serverVersion, "priority")
case "shrink":
actions[actionName], diags = expandAction(a, serverVersion, "number_of_shards", "max_primary_shard_size")
actions[actionName], diags = expandAction(a, serverVersion, "number_of_shards", "max_primary_shard_size", "allow_write_after_shrink")
case "unfollow":
if a[0] != nil {
ac := a[0].(map[string]interface{})
Expand Down

0 comments on commit d1205e1

Please sign in to comment.