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 @@ -156,7 +156,11 @@ func (s *csiNodeSyncer) ensureContainersSpec() []corev1.Container {
156
156
)
157
157
registrar .SecurityContext = & corev1.SecurityContext {RunAsNonRoot : util .False (),
158
158
RunAsUser : func (uid int64 ) * int64 { return & uid }(0 ),
159
- Privileged : util .False ()}
159
+ Privileged : util .False (),
160
+ SeccompProfile : & corev1.SeccompProfile {
161
+ Type : corev1 .SeccompProfileTypeRuntimeDefault ,
162
+ },
163
+ }
160
164
fillSecurityContextCapabilities (registrar .SecurityContext )
161
165
registrar .ImagePullPolicy = s .getCSINodeDriverRegistrarPullPolicy ()
162
166
registrar .Resources = getSidecarResourceRequests (s .driver , constants .CSINodeDriverRegistrar )
You can’t perform that action at this time.
0 commit comments