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 [email protected]
  • Loading branch information
eemurphy committed Jun 1, 2023
1 parent 4439d50 commit 0dc04ab
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 0dc04ab

Please sign in to comment.