-
Notifications
You must be signed in to change notification settings - Fork 68
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
Update docs to indicate that providers are no longer enabled by default #1530
base: main
Are you sure you want to change the base?
Conversation
A documentation preview will be available soon. Request a new doc build by commenting
If your PR continues to fail for an unknown reason, the doc build pipeline may be broken. Elastic employees can check the pipeline status here. |
@cmacknz @blakerouse Would either of you mind reviewing this when you have a moment? |
@@ -35,8 +35,10 @@ providers: | |||
- item: key2 | |||
---- | |||
|
|||
Explicitly disable a provider by setting `enabled: false`. All providers | |||
are prefixed without name collisions. The name of the provider is in the key in the configuration. | |||
Providers are disabled by default. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not correct.
Providers are disabled by default. | |
Providers are automatically enabled if a provided is referenced in a policy. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed to Providers are enabled automatically if a provider is referenced in an {agent} policy.
via 7595bbc
Explicitly disable a provider by setting `enabled: false`. All providers | ||
are prefixed without name collisions. The name of the provider is in the key in the configuration. | ||
Providers are disabled by default. | ||
Explicitly enable a provider by setting `enabled: true`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Even this will not cause a provide to run. The provider must be referenced in the policy or it will not run.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I removed the "Explicitly enable..." sentence.
|
||
Disable all providers by default and only enable explicitly configured providers by setting `agent.providers.initial_default: false`. | ||
Enable all providers by default and only disable explicitly configured providers by setting `agent.providers.initial_default: true`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should really keep this section how it was. As this still applies.
If you set initial_default: false
and you have a provider referenced in the policy the provider still will not run.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Roger that. I've changed this back to the original.
`enabled`:: (Optional) Defaults to true. To explicitly disable the LeaderElection provider, | ||
set `enabled: false`. | ||
`enabled`:: (Optional) Defaults to false. To explicitly enable the LeaderElection provider, | ||
set `enabled: true`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not true. It will turn on if anywhere in the policy references the kubernetes_leaderelection
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed to:
`enabled`:: (Optional) Defaults to false.
The LeaderElection provider is enabled automatically when the `kubernetes_leaderelection` is referenced anywhere in the {agemt} policy.
Thanks a lot @blakerouse! I've updated as you suggested. |
@blakerouse does this look okay to merge? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still some issues with it. See inline comments, hopefully it explains it better.
.../en/ingest-management/elastic-agent/configuration/providers/elastic-agent-providers.asciidoc
Outdated
Show resolved
Hide resolved
.../en/ingest-management/elastic-agent/configuration/providers/elastic-agent-providers.asciidoc
Outdated
Show resolved
Hide resolved
|
||
Disable all providers by default and only enable explicitly configured providers by setting `agent.providers.initial_default: false`. | ||
|
||
[source,yaml] | ||
---- | ||
agent.providers.initial_default: false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this needs to be change.
providers: | ||
docker: | ||
enabled: true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this needs to be change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could possibly provide context on what this configuration is doing.
This disables all provides from running except for the docker provider (if it becomes referenced in the policy).
@@ -12,7 +12,7 @@ It can automatically reach the API if it's running in an InCluster environment ( | |||
[source,yaml] | |||
---- | |||
providers.kubernetes_leaderelection: | |||
#enabled: true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't change.
@@ -23,8 +23,8 @@ providers.kubernetes_leaderelection: | |||
#leader_renewdeadline: 10 | |||
---- | |||
|
|||
`enabled`:: (Optional) Defaults to true. To explicitly disable the LeaderElection provider, | |||
set `enabled: false`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't change this.
It is still on, if its referenced. Setting to enabled: false
would turn it off completely, even if it was referenced.
…s/elastic-agent-providers.asciidoc Co-authored-by: Blake Rouse <blake.rouse@elastic.co>
…s/elastic-agent-providers.asciidoc Co-authored-by: Blake Rouse <blake.rouse@elastic.co>
Thanks @blakerouse! I've reverted the changes you suggested to undo, and for the configuration example I provided the extra context that you suggested. Sorry that I misunderstood this code change! :-) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, except I think the headers of that section also need to be reverted. The section is still talking about disabling providers.
.../en/ingest-management/elastic-agent/configuration/providers/elastic-agent-providers.asciidoc
Outdated
Show resolved
Hide resolved
.../en/ingest-management/elastic-agent/configuration/providers/elastic-agent-providers.asciidoc
Outdated
Show resolved
Hide resolved
…s/elastic-agent-providers.asciidoc Co-authored-by: Blake Rouse <blake.rouse@elastic.co>
…s/elastic-agent-providers.asciidoc Co-authored-by: Blake Rouse <blake.rouse@elastic.co>
This updates the Provider docs to indicate that providers are no longer enabled by default, as a result of elastic/elastic-agent#6169
The main change is to Configure providers for standalone Elastic Agent:
I've also updated the Kubernetes LeaderElection Provider
I don't think any other providers pages need updating. The Kubernetes provider supports enabling individual resources (pods, nodes, or services), but I assume the defaults for that remain as is.
Closes: #1529
Target: 8.18