Skip to content

Conversation

@olksdr
Copy link
Contributor

@olksdr olksdr commented Feb 17, 2022

In this PR:

  • change cluster settings in examples and tests to make them be correct for both 7.x and 8.x
  • change data_stream section of index_template
    • add a new field allow_custom_routing, which appeared only in 8.x
    • make sure the index template still works with both 7.x and 8.x
  • bump test ES cluster to 8.0.0 so the all new resources will be defaulting to newest releases of Elasticsearch

@olksdr olksdr added bug Something isn't working enhancement New feature or request Elasticsearch Elasticsearch related APIs labels Feb 17, 2022
@olksdr olksdr self-assigned this Feb 17, 2022
JoshMock
JoshMock previously approved these changes Feb 17, 2022
Copy link
Member

@JoshMock JoshMock left a comment

Choose a reason for hiding this comment

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

All seems relatively straightforward 👍


// 8.x workaround
hasAllowCustomRouting := false
//for _, s := range []interface{}{old} {
Copy link
Member

Choose a reason for hiding this comment

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

nit: can we remove this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yep, done in ec5e137

}
}
}
// }
Copy link
Member

Choose a reason for hiding this comment

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

cleanup

Copy link
Contributor

@Crazybus Crazybus left a comment

Choose a reason for hiding this comment

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

LGTM!

make sure the index template still works with both 7.x and 8.x

Is the plan to also add CI tests for 7.x? Right now everything works but I can imagine future changes that might accidentally break 7.x support accidentally.

@olksdr
Copy link
Contributor Author

olksdr commented Feb 21, 2022

Is the plan to also add CI tests for 7.x? Right now everything works but I can imagine future changes that might accidentally break 7.x support accidentally.

Yep, as a followup I want to create something like matrix testing for different ES versions.

@olksdr olksdr merged commit 465c336 into elastic:main Feb 22, 2022
@olksdr olksdr deleted the chore/update-to-8.x branch February 22, 2022 05:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working Elasticsearch Elasticsearch related APIs enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants