Skip to content

Commit

Permalink
[helm] add envFrom in agent preset (#5992) (#6001)
Browse files Browse the repository at this point in the history
(cherry picked from commit 9396e19)

Co-authored-by: Panos Koutsovasilis <panos.koutsovasilis@elastic.co>
  • Loading branch information
mergify[bot] and pkoutsovasilis authored Nov 12, 2024
1 parent d0dae6b commit bd59a1a
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,4 +97,8 @@ template:
{{- end }}
{{- end }}
{{- end }}
{{- with ($presetVal).envFrom }}
envFrom:
{{- . | toYaml | nindent 10}}
{{- end }}
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -139,4 +139,8 @@ template:
{{- end }}
{{- end }}
{{- end }}
{{- with ($presetVal).envFrom }}
envFrom:
{{- . | toYaml | nindent 10}}
{{- end }}
{{- end }}
16 changes: 16 additions & 0 deletions deploy/helm/elastic-agent/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -1058,6 +1058,22 @@
"clusterRole": {
"$ref": "#/definitions/AgentPresetClusterRole"
},
"envFrom": {
"type": "array",
"items": {
"type": "object"
},
"description": "Environment variables for the deployment.",
"examples": [
[
{
"configMapRef": {
"name": "my-config"
}
}
]
]
},
"nodeSelector": {
"type": "object",
"additionalProperties": {
Expand Down

0 comments on commit bd59a1a

Please sign in to comment.