Skip to content

eck webhook default value clarified#6734

Merged
eedugon merged 4 commits into
mainfrom
eck_enable_webhook
Jun 1, 2026
Merged

eck webhook default value clarified#6734
eedugon merged 4 commits into
mainfrom
eck_enable_webhook

Conversation

@eedugon
Copy link
Copy Markdown
Contributor

@eedugon eedugon commented May 27, 2026

Summary

Closes #6160

Clarifies a bit better the default value of false of enable-webhook at code level in ECK, while at the same time our default installation enables it by default.

@eedugon eedugon requested a review from a team as a code owner May 27, 2026 13:19
@github-actions
Copy link
Copy Markdown
Contributor

Elastic Docs AI PR menu

Check the box to run an AI review for this pull request.

  • Review docs changes (docs-review). Status: not started.

Powered by GitHub Agentic Workflows and docs-actions. For more information, reach out to the docs team.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 27, 2026

🔍 Preview links for changed docs

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 27, 2026

Elastic Docs Style Checker (Vale)

Summary: 2 suggestions found

💡 Suggestions (2): Optional style improvements. Apply when helpful.
File Line Rule Message
deploy-manage/deploy/cloud-on-k8s/configure-validating-webhook.md 49 Elastic.WordChoice Consider using 'deactivate, deselect, hide, turn off' instead of 'disable', unless the term is in the UI.
deploy-manage/deploy/cloud-on-k8s/configure-validating-webhook.md 49 Elastic.WordChoice Consider using 'deactivated, deselected, hidden, turned off, unavailable' instead of 'disabled', unless the term is in the UI.

The Vale linter checks documentation changes against the Elastic Docs style guide. To use Vale locally or report issues, refer to Elastic style guide for Vale.

| `webhook-port` | 9443 | Port to listen for incoming validation requests. |

:::::{note}
Although the `enable-webhook` flag default is `false`, the default ECK installation manifests and Helm chart set it to `true`.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

can we remove "default" later in this sentence? we might rephrase to say "if you're editing x y z / installed using x y z methods, the setting is already present and set to true"

I think a think that makes this confusing is we call this manual configuration but likely it's being applied in a layer over one of these defaults. we also say "If you installed ECK without the webhook" but what is the context that makes this possible?

consider putting this default mismatch info directly in the description rather than as a note below the table

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

"If you installed ECK without the webhook" but what is the context that makes this possible?

You can install ECK without the webhook by tweaking the operator.yaml manifest file before installing through a manifest, or by tweaking the values.yaml before installing the helm chart. When doing that, you can decide to either "remove the webhook setting" (it would then default to false :) ), or set it to false explicitly.

I think it's a good practice when installing a production system to decide what exact configuration you want and not just deploy the quickstart or the default provided file, and some users could have installed ECK without the webhook.

Anyway, this PR aims to solve a possible confusion due to the fact that we provide default config files enabling the webhook but internally the code has a default value of disabling it. That can generates a bit of confusion when reading both sentences.

We can rephrase it to something like:

Although the enable-webhook flag of the operator defaults to false when not provided, the standard ECK installation manifests and Helm chart set it to true explicitly.

But please suggest whatever you think it's better :)

What I want to ensure is that people doesn't get confused when reading these two sentences:

  • The webhook is installed by default (through our manifests)
  • enable-webhook default value is false

Oh, and if you believe we can remove the note completely because the other minor change we did already avoids the possible confusion then I'm totally ok with it too ;)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

that rephrase looks better to me.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Instead of the external "note", I've added the sentence directly in the table, in the place where the confusion could occur. I think it's a better approach.

Copy link
Copy Markdown
Member

@shainaraskas shainaraskas left a comment

Choose a reason for hiding this comment

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

🏁 with the rephrase

@eedugon eedugon requested a review from shainaraskas June 1, 2026 09:30
@eedugon
Copy link
Copy Markdown
Contributor Author

eedugon commented Jun 1, 2026

🏁 with the rephrase

Sorry I requested a new review :) rephrase included but directly within the table. I think it's nicer and less disruptive.

Copy link
Copy Markdown
Member

@shainaraskas shainaraskas left a comment

Choose a reason for hiding this comment

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

approved with a small suggest

Comment thread deploy-manage/deploy/cloud-on-k8s/configure-validating-webhook.md Outdated
eedugon and others added 2 commits June 1, 2026 15:49
@eedugon eedugon enabled auto-merge (squash) June 1, 2026 13:50
@eedugon eedugon merged commit 1e69e83 into main Jun 1, 2026
7 checks passed
@eedugon eedugon deleted the eck_enable_webhook branch June 1, 2026 13:51
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.

[Website]: enable-webhook default value seems wrong.

2 participants