File tree Expand file tree Collapse file tree 3 files changed +13
-2
lines changed Expand file tree Collapse file tree 3 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 71
71
name : manager
72
72
securityContext :
73
73
allowPrivilegeEscalation : false
74
+ seccompProfile :
75
+ type : RuntimeDefault
74
76
capabilities :
75
77
drop :
76
78
- " ALL"
Original file line number Diff line number Diff line change @@ -158,7 +158,12 @@ func (s *csiControllerSyncer) ensureContainersSpec() []corev1.Container {
158
158
}
159
159
160
160
func (s * csiControllerSyncer ) ensureContainer (name , image string , args []string ) corev1.Container {
161
- sc := & corev1.SecurityContext {AllowPrivilegeEscalation : util .False ()}
161
+ sc := & corev1.SecurityContext {
162
+ AllowPrivilegeEscalation : util .False (),
163
+ SeccompProfile : & corev1.SeccompProfile {
164
+ Type : corev1 .SeccompProfileTypeRuntimeDefault ,
165
+ },
166
+ }
162
167
fillSecurityContextCapabilities (sc )
163
168
return corev1.Container {
164
169
Name : name ,
Original file line number Diff line number Diff line change @@ -154,7 +154,11 @@ func (s *csiNodeSyncer) ensureContainersSpec() []corev1.Container {
154
154
)
155
155
registrar .SecurityContext = & corev1.SecurityContext {RunAsNonRoot : util .False (),
156
156
RunAsUser : func (uid int64 ) * int64 { return & uid }(0 ),
157
- Privileged : util .False ()}
157
+ Privileged : util .False (),
158
+ SeccompProfile : & corev1.SeccompProfile {
159
+ Type : corev1 .SeccompProfileTypeRuntimeDefault ,
160
+ },
161
+ }
158
162
fillSecurityContextCapabilities (registrar .SecurityContext )
159
163
registrar .ImagePullPolicy = s .getCSINodeDriverRegistrarPullPolicy ()
160
164
registrar .Resources = getSidecarResourceRequests (s .driver , constants .CSINodeDriverRegistrar )
You can’t perform that action at this time.
0 commit comments