From d5e8b81a8c4ad9605df85f989cd573a56212a232 Mon Sep 17 00:00:00 2001 From: Andreas Seelinger Date: Mon, 1 Jul 2024 11:27:48 +0200 Subject: [PATCH] [kiali-operator] Add podSecurityContext for deployment Signed-off-by: Andreas Seelinger --- kiali-operator/templates/deployment.yaml | 4 ++++ kiali-operator/values.yaml | 1 + 2 files changed, 5 insertions(+) diff --git a/kiali-operator/templates/deployment.yaml b/kiali-operator/templates/deployment.yaml index ced80b4..b8eff01 100644 --- a/kiali-operator/templates/deployment.yaml +++ b/kiali-operator/templates/deployment.yaml @@ -42,6 +42,10 @@ spec: nodeSelector: {{- toYaml .Values.nodeSelector | nindent 8 }} {{- end }} + {{- if .Values.podSecurityContext }} + securityContext: + {{- toYaml .Values.podSecurityContext | nindent 8 }} + {{- end }} containers: - name: operator image: "{{ .Values.image.repo }}{{ if .Values.image.digest }}@{{ .Values.image.digest }}{{ end }}:{{ .Values.image.tag }}" diff --git a/kiali-operator/values.yaml b/kiali-operator/values.yaml index 0ece40f..6a2f99b 100644 --- a/kiali-operator/values.yaml +++ b/kiali-operator/values.yaml @@ -22,6 +22,7 @@ affinity: {} replicaCount: 1 priorityClassName: "" securityContext: {} +podSecurityContext: {} # metrics.enabled: set to true if you want Prometheus to collect metrics from the operator metrics: