-
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?
Changes from 1 commit
6e2807a
7595bbc
d5a915d
08ac123
e8c8071
c2b3558
65978e9
e017811
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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. | ||
Explicitly enable a provider by setting `enabled: true`. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 commentThe reason will be displayed to describe this comment to others. Learn more. I removed the "Explicitly enable..." sentence. |
||
All providers are prefixed without name collisions. | ||
The name of the provider is in the key in the configuration. | ||
|
||
[source,yaml] | ||
---- | ||
|
@@ -89,19 +91,19 @@ configuration. | |
* <<kubernetes-provider,Kubernetes Provider>> | ||
|
||
[discrete] | ||
[[disable-providers-by-default]] | ||
=== Disabling Providers By Default | ||
[[enable-providers-by-default]] | ||
kilfoyle marked this conversation as resolved.
Show resolved
Hide resolved
|
||
=== Enabling providers By default | ||
kilfoyle marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
All registered providers are enabled by default. | ||
All registered providers are disabled by default. | ||
kilfoyle marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
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 commentThe 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 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Roger that. I've changed this back to the original. |
||
|
||
[source,yaml] | ||
---- | ||
agent.providers.initial_default: false | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think this needs to be change. |
||
agent.providers.initial_default: true | ||
providers: | ||
docker: | ||
enabled: true | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 commentThe reason will be displayed to describe this comment to others. Learn more. You could possibly provide context on what this configuration is doing.
|
||
enabled: false | ||
---- | ||
|
||
include::local-provider.asciidoc[leveloffset=+1] | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 commentThe reason will be displayed to describe this comment to others. Learn more. Don't change. |
||
#enabled: false | ||
#kube_config: /Users/elastic-agent/.kube/config | ||
#kube_client_options: | ||
# qps: 5 | ||
|
@@ -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 commentThe 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`:: (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 commentThe 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 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Changed to:
|
||
`kube_config`:: (Optional) Use the given config file as configuration for the Kubernetes | ||
client. If `kube_config` is not set, `KUBECONFIG` environment variable will be | ||
checked and will fall back to InCluster if it's not present. | ||
|
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.
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