File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,8 @@ operator:
48
48
49
49
# SecurityContext is security config of this component, it will set template.spec.securityContext
50
50
# Refer to https://kubernetes.io/docs/tasks/configure-pod-container/security-context
51
- securityContext : {}
51
+ securityContext :
52
+ runAsNonRoot : true
52
53
# runAsUser: 1000
53
54
# runAsGroup: 2000
54
55
# fsGroup: 2000
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ FROM --platform=$TARGETPLATFORM ghcr.io/pingcap-qe/bases/pingcap-base:v1.10.0@sh
29
29
30
30
ARG TARGETPLATFORM
31
31
32
- USER pingcap:pingcap
32
+ USER 1001:1001
33
33
34
34
WORKDIR /
35
35
@@ -41,7 +41,7 @@ FROM --platform=$TARGETPLATFORM ghcr.io/pingcap-qe/bases/pingcap-base:v1.10.0@sh
41
41
42
42
ARG TARGETPLATFORM
43
43
44
- USER pingcap:pingcap
44
+ USER 1001:1001
45
45
46
46
WORKDIR /
47
47
@@ -53,7 +53,7 @@ FROM --platform=$TARGETPLATFORM ghcr.io/pingcap-qe/bases/pingcap-base:v1.10.0@sh
53
53
54
54
ARG TARGETPLATFORM
55
55
56
- USER pingcap:pingcap
56
+ USER 1001:1001
57
57
58
58
WORKDIR /
59
59
@@ -67,7 +67,7 @@ FROM --platform=$TARGETPLATFORM ghcr.io/pingcap-qe/bases/pingcap-base:v1.10.0@sh
67
67
68
68
ARG TARGETPLATFORM
69
69
70
- USER pingcap:pingcap
70
+ USER 1001:1001
71
71
72
72
WORKDIR /
73
73
You can’t perform that action at this time.
0 commit comments