Skip to content

Commit

Permalink
[helm] add envFrom in agent preset (#5992)
Browse files Browse the repository at this point in the history
  • Loading branch information
pkoutsovasilis authored Nov 12, 2024
1 parent 212a839 commit 9396e19
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 9396e19

Please sign in to comment.