From 2dae3aa62b45cea20b4fdbba1fc763b142012439 Mon Sep 17 00:00:00 2001 From: Ivan Panteleev Date: Mon, 10 Oct 2022 18:01:45 +0300 Subject: [PATCH] Add extraVolumes and extraVolumeMounts to fleet (#7684) --- charts/fleet/templates/deployment.yaml | 6 ++++++ charts/fleet/values.yaml | 2 ++ 2 files changed, 8 insertions(+) diff --git a/charts/fleet/templates/deployment.yaml b/charts/fleet/templates/deployment.yaml index 4dd0be0c90..4cf6d9246e 100644 --- a/charts/fleet/templates/deployment.yaml +++ b/charts/fleet/templates/deployment.yaml @@ -291,6 +291,9 @@ spec: - name: osquery-logs mountPath: /logs {{- end }} + {{- with .Values.fleet.extraVolumeMounts }} + {{- toYaml . | nindent 10 }} + {{- end }} {{- end }} {{- if .Values.gke.cloudSQL.enableProxy }} - name: cloudsql-proxy @@ -339,6 +342,9 @@ spec: emptyDir: sizeLimit: "{{ .Values.osquery.logging.filesystem.volumeSize }}" {{- end }} + {{- with .Values.fleet.extraVolumes }} + {{- toYaml . | nindent 8 }} + {{- end }} {{- end }} {{- with .Values.nodeSelector }} nodeSelector: diff --git a/charts/fleet/values.yaml b/charts/fleet/values.yaml index 1f98a8064c..60caf62750 100644 --- a/charts/fleet/values.yaml +++ b/charts/fleet/values.yaml @@ -70,6 +70,8 @@ fleet: accessKeyID: "" secretKey: s3-bucket stsAssumeRoleARN: "" + extraVolumes: [] + extraVolumeMounts: [] ## Section: osquery # All of the settings related to osquery's interactions with the Fleet server