Skip to content

Commit

Permalink
Merge pull request #339 from kubescape/initcontainer
Browse files Browse the repository at this point in the history
removing storage initContainer no longer needed
  • Loading branch information
matthyx authored Nov 27, 2023
2 parents 621c952 + 3759b36 commit 7e7c4fa
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 38 deletions.
10 changes: 0 additions & 10 deletions charts/kubescape-operator/templates/storage/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,6 @@ spec:
securityContext:
runAsUser: 65532
fsGroup: 65532
initContainers:
- name: fix-permissions
image: "{{ .Values.storage.initImage.repository }}:{{ .Values.storage.initImage.tag }}"
imagePullPolicy: {{ .Values.storage.initImage.pullPolicy }}
securityContext:
runAsUser: 0
command: ["sh", "-c", "chown -Rc 65532:65532 /data"]
volumeMounts:
- name: "data"
mountPath: "/data"
containers:
- name: apiserver
image: "{{ .Values.storage.image.repository }}:{{ .Values.storage.image.tag }}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2630,19 +2630,6 @@ matches the snapshot:
- mountPath: /etc/config
name: ks-cloud-config
readOnly: true
initContainers:
- command:
- sh
- -c
- chown -Rc 65532:65532 /data
image: docker.io/busybox:1.36.1
imagePullPolicy: IfNotPresent
name: fix-permissions
securityContext:
runAsUser: 0
volumeMounts:
- mountPath: /data
name: data
securityContext:
fsGroup: 65532
runAsUser: 65532
Expand Down
24 changes: 9 additions & 15 deletions charts/kubescape-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,27 @@ ksNamespace: kubescape
ksLabel: kubescape

capabilities:
# ====== configuration scanning related capabilities ======
#
# ====== configuration scanning related capabilities ======
#
# Default configuration scanning setup
configurationScan: enable
# Continuous Scanning continuously evaluates the security posture of your cluster.
continuousScan: disable
nodeScan: enable

# ====== Image vulnerabilities scanning related capabilities ======
#
# ====== Image vulnerabilities scanning related capabilities ======
#
vulnerabilityScan: enable
relevancy: enable
# Generate VEX documents alongside the image vulnerabilities report (experimental)
vexGeneration: disable

# ====== Runtime related capabilities ======
#
# ====== Runtime related capabilities ======
#
runtimeObservability: disable
networkPolicyService: disable

# ====== Other capabilities ======
# ====== Other capabilities ======
#
# This is an experimental capability with an elevated security risk. Read the
# matching docs before enabling.
Expand Down Expand Up @@ -312,7 +312,7 @@ kubevulnScheduler:

successfulJobsHistoryLimit: 3
failedJobsHistoryLimit: 1

# kubevuln - image vulnerability scanning microservice
kubevuln:

Expand Down Expand Up @@ -507,7 +507,7 @@ registryScanScheduler:
limits:
cpu: 10m
memory: 20Mi

successfulJobsHistoryLimit: 3
failedJobsHistoryLimit: 1

Expand Down Expand Up @@ -566,12 +566,6 @@ storage:
tag: v0.0.39
pullPolicy: IfNotPresent

# image for init container
initImage:
repository: docker.io/busybox
tag: 1.36.1
pullPolicy: IfNotPresent

grypeOfflineDB:
enabled: false

Expand Down

0 comments on commit 7e7c4fa

Please sign in to comment.