Skip to content

Commit

Permalink
Fix apparmorProfile being ignored when it's the only field (#4507)
Browse files Browse the repository at this point in the history
  • Loading branch information
tsufeki authored Dec 3, 2024
1 parent 41f1d3a commit db45794
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pipeline/backend/kubernetes/pod.go
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ func podSecurityContext(sc *SecurityContext, secCtxConf SecurityContextConfig, s
apparmor = apparmorProfile(sc.ApparmorProfile)
}

if nonRoot == nil && user == nil && group == nil && fsGroup == nil && seccomp == nil {
if nonRoot == nil && user == nil && group == nil && fsGroup == nil && seccomp == nil && apparmor == nil {
return nil
}

Expand Down

0 comments on commit db45794

Please sign in to comment.