From e6e7a58b7e256996d8c70892d5ca5766b1240aa0 Mon Sep 17 00:00:00 2001 From: Adam Ricket <44428944+thecmdradama@users.noreply.github.com> Date: Fri, 3 May 2024 16:57:51 +0800 Subject: [PATCH 1/4] feat(lacework-agent): Add volumes and volumeMounts --- lacework-agent/values.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lacework-agent/values.yaml b/lacework-agent/values.yaml index 66c4ab3..067841d 100644 --- a/lacework-agent/values.yaml +++ b/lacework-agent/values.yaml @@ -11,6 +11,15 @@ image: # imagePullSecrets: # - name: CustomerRegistrKeySecretName overrideValue: + +# [Optional] Additional Volumes for the agent Pod. +# https://kubernetes.io/docs/concepts/storage/volumes/ +volumes: [] + +# [Optional] Additional Volume Mounts for the agent container. +# (https://kubernetes.io/docs/concepts/storage/volumes/ +volumeMounts: [] + resources: # The requests/limits is guidance and should be adjusted based on the workload # Please contact Lacework support for additional details From 6ab740d7d95b8ff21491d41a042c9802988dab5b Mon Sep 17 00:00:00 2001 From: Adam Ricket <44428944+thecmdradama@users.noreply.github.com> Date: Fri, 3 May 2024 17:25:31 +0800 Subject: [PATCH 2/4] feat(lacework-agent): Add volumes and volumeMounts --- lacework-agent/values.schema.json | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/lacework-agent/values.schema.json b/lacework-agent/values.schema.json index a10c654..2cf6a9f 100644 --- a/lacework-agent/values.schema.json +++ b/lacework-agent/values.schema.json @@ -576,6 +576,22 @@ }, "additionalProperties": false }, + "volumes": { + "type": "array", + "default": [], + "description": "Array of Additional Volumes", + "items": { + "type": "object" + } + }, + "volumeMounts": { + "type": "array", + "default": [], + "description": "Array of Additional Volume Mounts", + "items": { + "type": "object" + } + }, "resources": { "$ref": "#/definitions/io.k8s.api.core.v1.ResourceRequirements", "description": "Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/" From 9d3e6ac798ca9b5766ee37459a7067c8c74bce37 Mon Sep 17 00:00:00 2001 From: Adam Ricket <44428944+thecmdradama@users.noreply.github.com> Date: Fri, 3 May 2024 17:28:43 +0800 Subject: [PATCH 3/4] feat(lacework-agent): Add support for volumes and volumeMounts --- lacework-agent/templates/daemonset.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lacework-agent/templates/daemonset.yaml b/lacework-agent/templates/daemonset.yaml index 14bf669..1b4f123 100644 --- a/lacework-agent/templates/daemonset.yaml +++ b/lacework-agent/templates/daemonset.yaml @@ -113,6 +113,9 @@ spec: readOnly: true - name: podinfo mountPath: /etc/podinfo + {{- if .Values.volumeMounts }} + {{- toYaml .Values.volumeMounts | nindent 10 }} + {{- end }} {{- if kindIs "string" (.Values.laceworkConfig).serviceAccountName }} serviceAccountName: {{ (.Values.laceworkConfig).serviceAccountName | quote }} {{- end}} @@ -181,6 +184,9 @@ spec: - path: "namespace" fieldRef: fieldPath: metadata.namespace + {{- if .Values.volumes }} + {{- toYaml .Values.volumes | nindent 8 }} + {{- end }} updateStrategy: {{ toYaml (.Values.daemonset).updateStrategy | indent 4 }} {{- end }} From 3bedcb04a4997100ccbd29fed2c4f80188134c43 Mon Sep 17 00:00:00 2001 From: Adam Ricket <44428944+thecmdradama@users.noreply.github.com> Date: Fri, 3 May 2024 17:29:54 +0800 Subject: [PATCH 4/4] feat(lacework-agent): Add support for Volumes and Volume Mounts --- lacework-agent/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lacework-agent/Chart.yaml b/lacework-agent/Chart.yaml index d7b3a4e..74f56a4 100644 --- a/lacework-agent/Chart.yaml +++ b/lacework-agent/Chart.yaml @@ -14,4 +14,4 @@ maintainers: - email: info@lacework.net name: lacework-support name: lacework-agent -version: 6.13.0 +version: 6.14.0