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

ec_deployment: Avoid unsetting Elasticsearch topology configuration #361

Conversation

marclop
Copy link
Contributor

@marclop marclop commented Aug 31, 2021

Description

Handles the plan.topology.[].elasticsearch object as a computed block
that will be flattened (stored) in the state and expanded when present.

This solves the problem where the UI (used to) set these settings at the
topology level and the Terraform Provided set them at the Elasticsearch
level. It still doesn't allow users to set them at the topology level
since that's not the desired behavior, but with after change it will not
unset those fields with every plan change anymore, resulting in less
disruptive behavior.

Related Issues

Resolves #214

Types of Changes

  • Bug fix (non-breaking change which fixes an issue)

Handles the `plan.topology.[].elasticsearch` object as a computed block
that will be flattened (stored) in the state and expanded when present.

This solves the problem where the UI (used to) set these settings at the
topology level and the Terraform Provided set them at the Elasticsearch
level. It still doesn't allow users to set them at the topology level
since that's not the desired behavior, but with after change it will not
unset those fields with every plan change anymore, resulting in less
disruptive behavior.

Signed-off-by: Marc Lopez Rubio <[email protected]>
@marclop marclop added bug Something isn't working Team:Delivery labels Aug 31, 2021
@marclop marclop self-assigned this Aug 31, 2021
@marclop marclop requested a review from a team as a code owner August 31, 2021 09:52
Signed-off-by: Marc Lopez Rubio <[email protected]>
Signed-off-by: Marc Lopez Rubio <[email protected]>
@marclop marclop merged commit 53dd0ce into elastic:master Aug 31, 2021
@marclop marclop deleted the f/handle-topology.elasticsearch-block-as-computed branch August 31, 2021 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Elasticsearch user config is not discovered
2 participants