File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed
pkg/addon/configpolicy/manifests/managedclusterchart/templates Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 6464 serviceAccount : {{ include "controller.serviceAccountName" . }}
6565 securityContext :
6666 runAsNonRoot : true
67+ {{- if semverCompare ">= 1.25.0" .Capabilities.KubeVersion.Version }}
68+ {{- /* newer OpenShift (4.12+) versions might require this to be explicitly set */}}
69+ {{- /* but not all older kubernetes versions can handle when it is set */}}
70+ seccompProfile :
71+ type : RuntimeDefault
72+ {{- end }}
Original file line number Diff line number Diff line change @@ -184,6 +184,10 @@ spec:
184184 serviceAccount : {{ include "controller.serviceAccountName" . }}
185185 securityContext :
186186 runAsNonRoot : true
187+ {{- if semverCompare ">= 1.25.0" .Capabilities.KubeVersion.Version }}
188+ {{- /* newer OpenShift (4.12+) versions might require this to be explicitly set */}}
189+ {{- /* but not all older kubernetes versions can handle when it is set */}}
187190 seccompProfile :
188191 type : RuntimeDefault
192+ {{- end }}
189193 terminationGracePeriodSeconds : 120
You can’t perform that action at this time.
0 commit comments