This commit is contained in:
pat-s 2024-10-02 11:06:35 +02:00
parent d67009d51b
commit 866039360c
No known key found for this signature in database
GPG key ID: 3C6318841EF78925

View file

@ -416,8 +416,8 @@ func podSecurityContext(sc *SecurityContext, secCtxConf SecurityContextConfig, s
if sc.FSGroup == nil {
fsGroup = 1000
// do the same for fsGroupChangePolicy but only if fsGroup is also set accordingly
if sc.fsGroupChangePolicy == nil {
FsGroupChangePolicy = "OnRootMismatch"
if sc.FSGroupChangePolicy == nil {
fsGroupChangePolicy = "OnRootMismatch"
}
}