Skip to content

Commit 102774e

Browse files
committed
fix: add securityContext for minio pod
1 parent daf13fb commit 102774e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/conftest.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,12 @@ def minio_pod(
440440
],
441441
"image": request.param.get("image"),
442442
"name": MinIo.Metadata.NAME,
443+
"securityContext": {
444+
"allowPrivilegeEscalation": False,
445+
"capabilities": {"drop": ["ALL"]},
446+
"runAsNonRoot": True,
447+
"seccompProfile": {"type": "RuntimeDefault"},
448+
},
443449
}
444450
],
445451
label=pod_labels,

0 commit comments

Comments
 (0)