Skip to content

Commit

Permalink
add sbom generation on node-agent feature
Browse files Browse the repository at this point in the history
Signed-off-by: Matthias Bertschy <[email protected]>
  • Loading branch information
matthyx committed Dec 5, 2024
1 parent 11e4004 commit 5b1f6ef
Show file tree
Hide file tree
Showing 6 changed files with 56 additions and 39 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ rules:
resources: ["deployments", "daemonsets", "statefulsets", "replicasets"]
verbs: ["get", "watch", "list"]
- apiGroups: ["spdx.softwarecomposition.kubescape.io"]
resources: ["sbomsyfts", "seccompprofiles"]
resources: ["seccompprofiles"]
verbs: ["get", "watch", "list"]
- apiGroups: ["spdx.softwarecomposition.kubescape.io"]
resources: ["applicationactivities", "applicationprofiles", "networkneighborses", "networkneighborhoods", "sbomsyftfiltereds"]
resources: ["applicationactivities", "applicationprofiles", "networkneighborses", "networkneighborhoods", "sbomsyfts", "sbomsyftfiltereds"]
verbs: ["create", "get", "update", "watch", "list", "patch"]
- apiGroups: ["kubescape.io"]
resources: ["runtimerulealertbindings"]
Expand Down
3 changes: 3 additions & 0 deletions charts/kubescape-operator/templates/node-agent/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ data:
"networkServiceEnabled": {{ eq .Values.capabilities.networkPolicyService "enable" }},
"malwareDetectionEnabled": {{ eq .Values.capabilities.malwareDetection "enable" }},
"nodeProfileServiceEnabled": {{ eq .Values.capabilities.nodeProfileService "enable" }},
"maxImageSize": {{ .Values.kubevuln.config.maxImageSize }},
"maxSBOMSize": {{ .Values.kubevuln.config.maxSBOMSize }},
"sbomGenerationEnabled": {{ eq .Values.capabilities.nodeSbomGeneration "enable" }},
"seccompServiceEnabled": {{ eq .Values.capabilities.seccompProfileService "enable" }},
"initialDelay": "{{ .Values.nodeAgent.config.learningPeriod }}",
"updateDataPeriod": "{{ .Values.nodeAgent.config.updatePeriod }}",
Expand Down
2 changes: 0 additions & 2 deletions charts/kubescape-operator/templates/node-agent/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -144,11 +144,9 @@ spec:
- name: KS_LOGGER_NAME
value: "{{ .Values.logger.name }}"
{{- if $components.otelCollector.enabled }}
{{- if $components.synchronizer.enabled }}
- name: OTEL_COLLECTOR_SVC
value: "otel-collector:4318"
{{- end }}
{{- end }}
{{- if $components.clamAV.enabled }}
- name: CLAMAV_SOCKET
value: "/clamav/clamd.sock"
Expand Down
Loading

0 comments on commit 5b1f6ef

Please sign in to comment.