File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
kubernetes/charts/weblogic-operator/templates Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -106,6 +106,15 @@ spec:
106
106
{ {- if .memoryLimits} }
107
107
memory: { { .memoryLimits } }
108
108
{ {- end } }
109
+ { {- if (eq ( .kubernetesPlatform | default " Generic" ) " OpenShift" ) } }
110
+ securityContext:
111
+ allowPrivilegeEscalation: false
112
+ capabilities:
113
+ drop: ["ALL"]
114
+ runAsNonRoot: true
115
+ seccompProfile:
116
+ type: RuntimeDefault
117
+ { {- end } }
109
118
volumeMounts:
110
119
- name: "weblogic-operator-cm-volume"
111
120
mountPath: "/deployment/config"
@@ -306,6 +315,15 @@ spec:
306
315
{ {- if .memoryLimits} }
307
316
memory: { { .memoryLimits } }
308
317
{ {- end } }
318
+ { {- if (eq ( .kubernetesPlatform | default " Generic" ) " OpenShift" ) } }
319
+ securityContext:
320
+ allowPrivilegeEscalation: false
321
+ capabilities:
322
+ drop: ["ALL"]
323
+ runAsNonRoot: true
324
+ seccompProfile:
325
+ type: RuntimeDefault
326
+ { {- end } }
309
327
volumeMounts:
310
328
- name: "weblogic-webhook-cm-volume"
311
329
mountPath: "/deployment/config"
You can’t perform that action at this time.
0 commit comments