Skip to content
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 metadata for transform node role #3411

Merged
merged 9 commits into from
Jul 22, 2020
Merged

Conversation

pebrc
Copy link
Collaborator

@pebrc pebrc commented Jul 8, 2020

Second attempt at supporting the transform node role Elasticsearch 7.7.0 introduces.

  • add this new node type to the pod metadata when running a version of Elasticsearch that supports transform.
  • adjust test cases and default values.

The complication here is that we now have version specific default configurations. I chose to just toggle the transform value off in the default config to be able to keep using just one config struct. Technically the transform value does not even exist prior to 7.7.0. The default behaviour differs depending on whether the node is a data node or not. On nodes with node.data: false node.transform is also false unless specified otherwise explicitly.

pebrc added 4 commits June 30, 2020 13:52
Elasticsearch 7.7.0 introduces the transform node role. Add this new node type to the pod metadata when running a version of Elasticsearch that supports transform. Adjust test cases and default values.
@pebrc pebrc added >enhancement Enhancement of existing functionality v1.3.0 labels Jul 8, 2020
@pebrc pebrc changed the title Add transform node 2 Add metadata for transform node role Jul 8, 2020
Copy link
Contributor

@sebgl sebgl left a comment

Choose a reason for hiding this comment

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

LGTM

@thbkrkr
Copy link
Contributor

thbkrkr commented Jul 17, 2020

I wonder if we should add node.transform in some examples used in the documentation where there are already all the other roles, for the sake of completeness.

Copy link
Contributor

@thbkrkr thbkrkr left a comment

Choose a reason for hiding this comment

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

LGTM.
Only left a nit on an unsynced godoc.

pkg/apis/elasticsearch/v1/elasticsearch_config.go Outdated Show resolved Hide resolved
@pebrc pebrc merged commit 8599783 into elastic:master Jul 22, 2020
@thbkrkr
Copy link
Contributor

thbkrkr commented Jul 22, 2020

Relates to #3139.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>enhancement Enhancement of existing functionality v1.3.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants