Skip to content

Commit f02eb30

Browse files
authored
Do not generate seccompProfile securityContext for OpenShift (#4156)
1 parent 346da54 commit f02eb30

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

kubernetes/charts/weblogic-operator/templates/_operator-dep.tpl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,11 @@ spec:
3434
{{- end }}
3535
spec:
3636
serviceAccountName: {{ .serviceAccount | quote }}
37+
{{- if (ne ( .kubernetesPlatform | default "Generic" ) "OpenShift") }}
3738
securityContext:
3839
seccompProfile:
3940
type: RuntimeDefault
41+
{{- end }}
4042
{{- with .nodeSelector }}
4143
nodeSelector:
4244
{{- toYaml . | nindent 8 }}
@@ -262,9 +264,11 @@ spec:
262264
{{- end }}
263265
spec:
264266
serviceAccountName: {{ .serviceAccount | quote }}
267+
{{- if (ne ( .kubernetesPlatform | default "Generic" ) "OpenShift") }}
265268
securityContext:
266269
seccompProfile:
267270
type: RuntimeDefault
271+
{{- end }}
268272
{{- with .nodeSelector }}
269273
nodeSelector:
270274
{{- toYaml . | nindent 12 }}

0 commit comments

Comments
 (0)