Skip to content

Commit 305fc36

Browse files
committed
fix pss warnings
Signed-off-by: Harshvir Potpose <hpotpose62@gmail.com>
1 parent 4884253 commit 305fc36

File tree

4 files changed

+36
-0
lines changed

4 files changed

+36
-0
lines changed

manifests/v1beta1/components/controller/controller.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,15 @@ spec:
5858
name: katib-config
5959
subPath: katib-config.yaml
6060
readOnly: true
61+
securityContext:
62+
runAsNonRoot: true
63+
allowPrivilegeEscalation: false
64+
runAsUser: 1000
65+
seccompProfile:
66+
type: RuntimeDefault
67+
capabilities:
68+
drop:
69+
- ALL
6170
volumes:
6271
- name: cert
6372
secret:

manifests/v1beta1/components/db-manager/db-manager.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,12 @@ spec:
4040
initialDelaySeconds: 10
4141
periodSeconds: 60
4242
failureThreshold: 5
43+
securityContext:
44+
runAsNonRoot: true
45+
allowPrivilegeEscalation: false
46+
runAsUser: 1000
47+
seccompProfile:
48+
type: RuntimeDefault
49+
capabilities:
50+
drop:
51+
- ALL

manifests/v1beta1/components/mysql/mysql.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,15 @@ spec:
6868
volumeMounts:
6969
- name: katib-mysql
7070
mountPath: /var/lib/mysql
71+
securityContext:
72+
runAsNonRoot: true
73+
allowPrivilegeEscalation: false
74+
runAsUser: 1000
75+
seccompProfile:
76+
type: RuntimeDefault
77+
capabilities:
78+
drop:
79+
- ALL
7180
volumes:
7281
- name: katib-mysql
7382
persistentVolumeClaim:

manifests/v1beta1/components/ui/ui.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,13 @@ spec:
3333
ports:
3434
- name: ui
3535
containerPort: 8080
36+
securityContext:
37+
runAsNonRoot: true
38+
allowPrivilegeEscalation: false
39+
runAsUser: 1000
40+
seccompProfile:
41+
type: RuntimeDefault
42+
capabilities:
43+
drop:
44+
- ALL
3645
serviceAccountName: katib-ui

0 commit comments

Comments
 (0)