diff --git a/lacework-agent/templates/configmap.yaml b/lacework-agent/templates/configmap.yaml index 80d721f..5f4bc7d 100644 --- a/lacework-agent/templates/configmap.yaml +++ b/lacework-agent/templates/configmap.yaml @@ -3,7 +3,7 @@ apiVersion: v1 kind: ConfigMap metadata: name: lacework-config - namespace: {{ .Release.Namespace }} + namespace: {{ .Release.Namespace }} labels: tier: monitoring app: {{ include "lacework-agent.name" . }} @@ -40,7 +40,7 @@ data: {{- if .Values.clusterAgent.clusterType }} "k8sclustertype": "{{ .Values.clusterAgent.clusterType}}", {{- end }} - + {{- if not .Values.laceworkConfig.kubernetesCluster }} #kubernetes cluster "{{ required "kubernetesCluster name is a required parameter" .Values.laceworkConfig.kubernetesCluster }} {{- end}} @@ -59,6 +59,9 @@ data: "serverurl": "{{ .Values.laceworkConfig.serverUrl}}", "tags": {"Env": "{{ .Values.laceworkConfig.env }}" {{- if .Values.laceworkConfig.kubernetesCluster }}, "KubernetesCluster" :"{{ .Values.laceworkConfig.kubernetesCluster}}" {{- end }} + {{- range $key, $value := .Values.laceworkConfig.tags }} + , {{ $key | quote }}: {{ $value | quote }} + {{- end }} } } diff --git a/lacework-agent/templates/daemonset.yaml b/lacework-agent/templates/daemonset.yaml index bb54c65..340907c 100644 --- a/lacework-agent/templates/daemonset.yaml +++ b/lacework-agent/templates/daemonset.yaml @@ -33,7 +33,7 @@ spec: spec: affinity: {{ toYaml .Values.daemonset.affinity | indent 8 }} - tolerations: + tolerations: {{ toYaml .Values.tolerations | indent 8 }} {{- if .Values.priorityClassName }} priorityClassName: {{ .Values.priorityClassName | quote }} diff --git a/lacework-agent/values.schema.json b/lacework-agent/values.schema.json index 6b671a2..a0cecfd 100644 --- a/lacework-agent/values.schema.json +++ b/lacework-agent/values.schema.json @@ -260,6 +260,12 @@ "null" ] }, + "tags": { + "type": [ + "object", + "null" + ] + }, "fim": { "type": "object", "additionalProperties": false, diff --git a/lacework-agent/values.yaml b/lacework-agent/values.yaml index 887f368..6a73786 100644 --- a/lacework-agent/values.yaml +++ b/lacework-agent/values.yaml @@ -59,6 +59,12 @@ laceworkConfig: # [Optional] Give your k8s environment a friendly name # https://docs.lacework.com/onboarding/add-agent-tags env: + # [Optional] Assign additional tags to lacework-agent deployed by this chart + # https://docs.lacework.com/onboarding/add-agent-tags + # Declare as subkeys not as a list of tags + tags: + # example_tag_name_1: example_tag_value1 + # example_tag_name_2: example_tag_value2 # [Optional] Set to "disable" to not run datacollector datacollector: enable # [Optional] Kubernetes node's scrape interval in minutes.