Skip to content

Commit

Permalink
fix: omit redundant keys for ESSecretAuthBasic and ESSecretAuthAPI
Browse files Browse the repository at this point in the history
  • Loading branch information
pkoutsovasilis committed Sep 16, 2024
1 parent d30d79b commit 553613f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deploy/helm/elastic-agent/templates/agent/_outputs.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
{{- $ := index . 0 -}}
{{- $outputName := index . 1 -}}
{{- $outputVal := deepCopy (index . 2) -}}
{{- $outputVal = omit $outputVal "secretName" "username" "password" "name" "serviceName" "namespace" -}}
{{- $outputVal = omit $outputVal "secretName" "username" "password" "name" "serviceName" "namespace" "api_key" "url" -}}
{{- $_ := set $outputVal "type" "elasticsearch" -}}
{{- $_ := set $outputVal "hosts" (list (printf "${OUTPUT_%s_URL}" (upper $outputName))) -}}
{{- $_ := set $outputVal "username" (printf "${OUTPUT_%s_USER}" (upper $outputName)) -}}
Expand All @@ -75,7 +75,7 @@
{{- $ := index . 0 -}}
{{- $outputName := index . 1 -}}
{{- $outputVal := deepCopy (index . 2) -}}
{{- $outputVal = omit $outputVal "secretName" "username" "password" "name" "serviceName" "namespace" -}}
{{- $outputVal = omit $outputVal "secretName" "username" "password" "name" "serviceName" "namespace" "api_key" "url" -}}
{{- $_ := set $outputVal "type" "elasticsearch" -}}
{{- $_ := set $outputVal "hosts" (list (printf "${OUTPUT_%s_URL}" (upper $outputName))) -}}
{{- $_ := set $outputVal "api_key" (printf "${OUTPUT_%s_API_KEY}" (upper $outputName)) -}}
Expand Down

0 comments on commit 553613f

Please sign in to comment.