Skip to content

Commit

Permalink
Merge pull request #142 from vshn/keycloak/securityContext
Browse files Browse the repository at this point in the history
Fix Keycloak securityContext for OpenShift
  • Loading branch information
Kidswiss authored Mar 12, 2024
2 parents 7a7a3b0 + cd2d8fd commit faca3fc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/comp-functions/functions/vshnkeycloak/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -374,11 +374,13 @@ func newValues(ctx context.Context, svc *runtime.ServiceRuntime, comp *vshnv1.VS
},
"nodeSelector": nodeSelector,
"dbchecker": map[string]any{
"enabled": true,
"enabled": true,
"securityContext": nil,
},
// See https://github.com/keycloak/keycloak/issues/11286
// readOnlyRootFilesystem: true
"securityContext": map[string]any{
"runAsUser": nil,
"allowPrivilegeEscalation": false,
"capabilities": map[string]any{
"drop": []string{
Expand All @@ -389,6 +391,7 @@ func newValues(ctx context.Context, svc *runtime.ServiceRuntime, comp *vshnv1.VS
"http": map[string]any{
"relativePath": comp.Spec.Parameters.Service.RelativePath,
},
"podSecurityContext": nil,
}

fqdn := comp.Spec.Parameters.Service.FQDN
Expand Down

0 comments on commit faca3fc

Please sign in to comment.