Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(lacework-agent): Add functionality for mounting additional volumes #244

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions lacework-agent/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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}}
Expand Down Expand Up @@ -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 }}
16 changes: 16 additions & 0 deletions lacework-agent/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -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/"
Expand Down
9 changes: 9 additions & 0 deletions lacework-agent/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down