This is an automated email from the ASF dual-hosted git repository. pcongiusti pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel-k.git
commit 001b4ae3bf682fcada60e5cf9cb294217af406df Author: Gaelle Fournier <[email protected]> AuthorDate: Thu Sep 14 15:12:22 2023 +0200 feat(helm): Remove Openshift security warning message --- helm/camel-k/templates/operator.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/helm/camel-k/templates/operator.yaml b/helm/camel-k/templates/operator.yaml index 6b2b274a8..ba80263b1 100644 --- a/helm/camel-k/templates/operator.yaml +++ b/helm/camel-k/templates/operator.yaml @@ -89,10 +89,21 @@ spec: resources: {{- toYaml . | nindent 12 }} {{- end }} + {{- if .Values.operator.securityContext }} {{- with .Values.operator.securityContext }} securityContext: {{- toYaml . | nindent 12 }} {{- end }} + {{- else }} + securityContext: + runAsNonRoot: true + seccompProfile: + type: RuntimeDefault + allowPrivilegeEscalation: false + capabilities: + drop: + - ALL + {{- end }} serviceAccountName: camel-k-operator {{- with .Values.operator.tolerations }} tolerations:
