From 2cd21d55c2219fed84aafecfc647630a5db85b54 Mon Sep 17 00:00:00 2001 From: Daniel Reuter Date: Mon, 18 Sep 2023 15:08:21 +0200 Subject: [PATCH] feat: make podSecurityContext configurable --- charts/steadybit-extension-prometheus/Chart.yaml | 2 +- .../steadybit-extension-prometheus/templates/deployment.yaml | 4 ++++ charts/steadybit-extension-prometheus/values.yaml | 3 +++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/charts/steadybit-extension-prometheus/Chart.yaml b/charts/steadybit-extension-prometheus/Chart.yaml index 1e0951d..6ea30cc 100644 --- a/charts/steadybit-extension-prometheus/Chart.yaml +++ b/charts/steadybit-extension-prometheus/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v2 name: steadybit-extension-prometheus description: Steadybit Prometheus extension Helm chart for Kubernetes. -version: 1.4.17 +version: 1.4.18 appVersion: latest home: https://www.steadybit.com/ icon: https://steadybit-website-assets.s3.amazonaws.com/logo-symbol-transparent.png diff --git a/charts/steadybit-extension-prometheus/templates/deployment.yaml b/charts/steadybit-extension-prometheus/templates/deployment.yaml index be9dba7..bbb16ed 100644 --- a/charts/steadybit-extension-prometheus/templates/deployment.yaml +++ b/charts/steadybit-extension-prometheus/templates/deployment.yaml @@ -29,6 +29,10 @@ spec: {{- toYaml . | nindent 8 }} {{- end }} spec: + {{- with .Values.podSecurityContext }} + securityContext: + {{- toYaml . | nindent 8 }} + {{- end }} containers: - image: {{ .Values.image.name }}:{{ .Values.image.tag }} imagePullPolicy: {{ .Values.image.pullPolicy }} diff --git a/charts/steadybit-extension-prometheus/values.yaml b/charts/steadybit-extension-prometheus/values.yaml index b8ae383..cdb697b 100644 --- a/charts/steadybit-extension-prometheus/values.yaml +++ b/charts/steadybit-extension-prometheus/values.yaml @@ -82,6 +82,9 @@ topologySpreadConstraints: [] # affinity -- Affinities to influence pod assignment. affinity: {} +# podSecurityContext -- SecurityContext to apply to the pod. +podSecurityContext: {} + # extraEnv -- Array with extra environment variables to add to the container # e.g: # extraEnv: