Skip to content

Commit

Permalink
added gke volumes to security scan config template
Browse files Browse the repository at this point in the history
  • Loading branch information
vardhaman-surana committed Nov 14, 2024
1 parent a9e8caf commit 280356c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
4 changes: 3 additions & 1 deletion chart/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ data:
<1.21.0: rke2-cis-1.20-profile-permissive
>=1.21.0: rke2-cis-1.8-profile-permissive
eks: "eks-profile"
gke: "gke-profile"
gke: |-
< 1.29.0-0: gke-profile
>= 1.29.0-0: gke-profile-1.6.0
aks: "aks-profile"
k3s: "k3s-cis-1.8-profile-permissive"
default: "cis-1.8-profile"
12 changes: 12 additions & 0 deletions pkg/securityscan/core/templates/pluginConfig.template
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,12 @@ data:
- hostPath:
path: /run/log
name: run-log
- hostPath:
path: /home/kubernetes
name: gke-home
- hostPath:
path: /var/lib/kubelet/
name: var-kubelet
{{- if .isCustomBenchmark }}
- configMap:
defaultMode: 420
Expand Down Expand Up @@ -132,6 +138,12 @@ data:
- mountPath: /run/log/
name: run-log
readOnly: true
- mountPath: /home/kubernetes
name: gke-home
readOnly: true
- mountPath: /var/lib/kubelet/
name: var-kubelet
readOnly: true
{{- if .isCustomBenchmark }}
- mountPath: /etc/kbs/custombenchmark/cfg
name: custom-benchmark-volume
Expand Down

0 comments on commit 280356c

Please sign in to comment.