Skip to content

Add flag to skip setting up ES cluster settings#10152

Open
rodrigozhou wants to merge 1 commit intomainfrom
rodrigozhou/es-skip-cluster-settings
Open

Add flag to skip setting up ES cluster settings#10152
rodrigozhou wants to merge 1 commit intomainfrom
rodrigozhou/es-skip-cluster-settings

Conversation

@rodrigozhou
Copy link
Copy Markdown
Contributor

@rodrigozhou rodrigozhou commented May 1, 2026

What changed?

Add flag to skip setting up ES cluster settings. Eg: temporal-elasticsearch-tool setup-schema --skip-cluster-settings

Why?

Allow users to not use our provided cluster settings (eg: avoid overwriting their cluster settings).
#9857

How did you test it?

  • built
  • run locally and tested manually
  • covered by existing tests
  • added new unit test(s)
  • added new functional test(s)

Potential risks

if err != nil {
logger.Error("Unable to load embedded cluster settings.", tag.Error(err))
return err
settingsContent := ""
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Having settingsContent empty will lead to a slightly confusing log message:

task.logger.Info("Skipping cluster settings update, no embedded settings content")
. We should probably just remove the ", no embedded settings content" part.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants