Skip to content

Commit

Permalink
feat(helm): Remove Openshift security warning message
Browse files Browse the repository at this point in the history
  • Loading branch information
gansheer committed Sep 14, 2023
1 parent d32cca6 commit 360bac8
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions helm/camel-k/templates/operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,21 @@ spec:
resources:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- if .Values.operator.securityContext }}
{{- with .Values.operator.securityContext }}
securityContext:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- else if eq .Values.platform.cluster "OpenShift" }}
securityContext:
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
{{- end }}
serviceAccountName: camel-k-operator
{{- with .Values.operator.tolerations }}
tolerations:
Expand Down

0 comments on commit 360bac8

Please sign in to comment.