Skip to content

Commit a087172

Browse files
committed
added gke volumes to security scan config template and made gke-1.6.0 default
1 parent 778cfd1 commit a087172

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

chart/templates/configmap.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ data:
1212
<1.21.0: rke2-cis-1.20-profile-permissive
1313
>=1.21.0: rke2-cis-1.8-profile-permissive
1414
eks: "eks-profile"
15-
gke: "gke-profile"
15+
gke: "gke-profile-1.6.0"
1616
aks: "aks-profile"
1717
k3s: "k3s-cis-1.8-profile-permissive"
1818
default: "cis-1.8-profile"

pkg/securityscan/core/templates/pluginConfig.template

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,12 @@ data:
5656
- hostPath:
5757
path: /run/log
5858
name: run-log
59+
- hostPath:
60+
path: /etc/kubernetes/kubelet
61+
name: etc-kubelet
62+
- hostPath:
63+
path: /var/lib/kubelet
64+
name: var-kubelet
5965
{{- if .isCustomBenchmark }}
6066
- configMap:
6167
defaultMode: 420
@@ -132,6 +138,12 @@ data:
132138
- mountPath: /run/log/
133139
name: run-log
134140
readOnly: true
141+
- mountPath: /etc/kubernetes/kubelet
142+
name: etc-kubelet
143+
readOnly: true
144+
- mountPath: /var/lib/kubelet
145+
name: var-kubelet
146+
readOnly: true
135147
{{- if .isCustomBenchmark }}
136148
- mountPath: /etc/kbs/custombenchmark/cfg
137149
name: custom-benchmark-volume

0 commit comments

Comments
 (0)