Skip to content

Commit a199d29

Browse files
committed
Set container defaults rofs to true
1 parent 6c94535 commit a199d29

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

pkg/cvo/updatepayload.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ func (r *payloadRetriever) fetchUpdatePayloadToDir(ctx context.Context, dir stri
208208
}}
209209
container.SecurityContext = &corev1.SecurityContext{
210210
Privileged: ptr.To(true),
211-
ReadOnlyRootFilesystem: ptr.To(false),
211+
ReadOnlyRootFilesystem: ptr.To(true),
212212
}
213213
container.Resources = corev1.ResourceRequirements{
214214
Requests: corev1.ResourceList{
@@ -264,9 +264,6 @@ func (r *payloadRetriever) fetchUpdatePayloadToDir(ctx context.Context, dir stri
264264
setContainerDefaults(corev1.Container{
265265
Name: "rename-to-final-location",
266266
Command: []string{"mv", tmpDir, dir},
267-
SecurityContext: &corev1.SecurityContext{
268-
ReadOnlyRootFilesystem: ptr.To(true),
269-
},
270267
}),
271268
},
272269
Volumes: []corev1.Volume{{

0 commit comments

Comments
 (0)