-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add apiserver additionalconfig for cluster agent (#1655)
* add clusterAgent.apiserverCheck.additionalConfigs * fix values.yaml * fix values.yaml * add clusterAgent.kubernetesApiserverCheck.disableUseComponentStatus instead of additionalConfig * update readme * update readme and blank default value * Update charts/datadog/values.yaml Co-authored-by: khewonc <39867936+khewonc@users.noreply.github.com> * Update charts/datadog/templates/_kubernetes_apiserver_config.yaml Co-authored-by: khewonc <39867936+khewonc@users.noreply.github.com> * Update charts/datadog/values.yaml Co-authored-by: khewonc <39867936+khewonc@users.noreply.github.com> * update helper tpl * update helper tpl * update deployment * Update charts/datadog/values.yaml Co-authored-by: Cedric Lamoriniere <cedric.lamoriniere@datadoghq.com> * Update charts/datadog/templates/_helpers.tpl Co-authored-by: khewonc <39867936+khewonc@users.noreply.github.com> * Update charts/datadog/templates/_kubernetes_apiserver_config.yaml Co-authored-by: khewonc <39867936+khewonc@users.noreply.github.com> * Update charts/datadog/templates/cluster-agent-deployment.yaml Co-authored-by: khewonc <39867936+khewonc@users.noreply.github.com> * update readme * Update charts/datadog/values.yaml Co-authored-by: Cedric Lamoriniere <cedric.lamoriniere@datadoghq.com> * update readme and update version * Remove newline Mistakenly added newline when merging main --------- Co-authored-by: khewonc <39867936+khewonc@users.noreply.github.com> Co-authored-by: Cedric Lamoriniere <cedric.lamoriniere@datadoghq.com>
- Loading branch information
1 parent
5314de1
commit d4ac802
Showing
7 changed files
with
33 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,19 @@ | ||
{{- define "kubernetes_apiserver-config" -}} | ||
{{- if .Values.datadog.collectEvents -}} | ||
{{- if eq (include "need-kubernetes-apiserver-check-config" .) "true" }} | ||
kubernetes_apiserver.yaml: |- | ||
init_config: | ||
instances: | ||
- filtering_enabled: {{ .Values.datadog.kubernetesEvents.filteringEnabled }} | ||
- | ||
This comment has been minimized.
Sorry, something went wrong. |
||
{{- if .Values.datadog.collectEvents }} | ||
filtering_enabled: {{ .Values.datadog.kubernetesEvents.filteringEnabled }} | ||
unbundle_events: {{ .Values.datadog.kubernetesEvents.unbundleEvents }} | ||
{{- if .Values.datadog.kubernetesEvents.unbundleEvents }} | ||
collected_event_types: | ||
{{ .Values.datadog.kubernetesEvents.collectedEventTypes | toYaml | nindent 8 }} | ||
{{- end -}} | ||
{{- end }} | ||
{{- if .Values.clusterAgent.kubernetesApiserverCheck.disableUseComponentStatus }} | ||
use_component_status: false | ||
{{- end }} | ||
{{- end -}} | ||
{{- end -}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This indentation is wrong, leads to this output: