Skip to content

Commit

Permalink
feat: add support for defining automountServiceAccountToken per preset
Browse files Browse the repository at this point in the history
  • Loading branch information
pkoutsovasilis committed Oct 31, 2024
1 parent c7596e9 commit bdb81d0
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@
{{- with ($presetVal).hostPID }}
hostPID: {{ . }}
{{- end }}
{{- if eq (dig "automountServiceAccountToken" true $presetVal) true }}
automountServiceAccountToken: true
{{- else }}
automountServiceAccountToken: false
{{- end }}
{{- with ($presetVal).nodeSelector }}
nodeSelector:
{{- . | toYaml | nindent 10 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@
{{- with ($presetVal).hostPID }}
hostPID: {{ . }}
{{- end }}
{{- if eq (dig "automountServiceAccountToken" true $presetVal) true }}
automountServiceAccountToken: true
{{- else }}
automountServiceAccountToken: false
{{- end }}
{{- with ($presetVal).nodeSelector }}
nodeSelector:
{{- . | toYaml | nindent 8 }}
Expand Down
8 changes: 8 additions & 0 deletions deploy/helm/elastic-agent/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -1003,6 +1003,14 @@
]
]
},
"automountServiceAccountToken": {
"type": "boolean",
"description": "Automount service account token for the deployment.",
"examples": [
true
],
"default": true
},
"hostNetwork": {
"type": "boolean",
"description": "Enable host networking for the deployment.",
Expand Down

0 comments on commit bdb81d0

Please sign in to comment.