Skip to content

Commit

Permalink
Fix(core): Openshift securityContext on global operator
Browse files Browse the repository at this point in the history
In global mode the integration pod securityContext needs to be generated from the integration namespace.
  • Loading branch information
gansheer committed Nov 28, 2023
1 parent f00fada commit 7f71034
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/trait/container.go
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ func (t *containerTrait) configureSecurityContext(e *Environment, container *cor
// get security context from security context constraint configuration in namespace
isOpenShift, _ := openshift.IsOpenShift(e.Client)
if isOpenShift {
securityContext, _ := openshift.GetOpenshiftSecurityContextRestricted(e.Ctx, e.Client, e.Platform.Namespace)
securityContext, _ := openshift.GetOpenshiftSecurityContextRestricted(e.Ctx, e.Client, e.Integration.Namespace)
if securityContext != nil {
container.SecurityContext = securityContext
}
Expand Down

0 comments on commit 7f71034

Please sign in to comment.