Skip to content

Commit

Permalink
Remove securityContext log errors in OCP 4.11+
Browse files Browse the repository at this point in the history
Signed-off-by: Erin Murphy <erinmurp@redhat.com>
  • Loading branch information
eemurphy committed Aug 10, 2023
1 parent 4439d50 commit b0b0df6
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ spec:
open-cluster-management.io/addon: managed-serviceaccount
spec:
serviceAccount: managed-serviceaccount
securityContext:
{{- if semverCompare ">=4.11.0" .Values.hubconfig.ocpVersion }}
seccompProfile:
type: RuntimeDefault
{{- end }}
containers:
- name: manager
image: {{ .Values.image }}:{{ .Values.tag | default (print "v" .Chart.Version) }}
Expand Down

0 comments on commit b0b0df6

Please sign in to comment.