Skip to content

Commit

Permalink
add securityContext to helm chart
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Jansen <jan.jansen@gdata.de>
  • Loading branch information
farodin91 committed Oct 12, 2023
1 parent ee8cb7c commit 0b2c794
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ spec:
resource: limits.memory
{{ with .Values.operator.env }}{{ toYaml . | nindent 12 }}{{ end }}
resources: {{ toYaml .Values.operator.resources | nindent 12 }}
securityContext: {{ toYaml .Values.operator.containerSecurityContext | nindent 12 }}
{{ if .Values.metrics.enabled }}
- name: metrics-exporter
image: {{ .Values.metrics.image.repository }}:{{ include "altinity-clickhouse-operator.metrics.tag" . }}
Expand Down Expand Up @@ -182,8 +183,10 @@ spec:
- containerPort: 8888
name: metrics
resources: {{ toYaml .Values.metrics.resources | nindent 12 }}
securityContext: {{ toYaml .Values.metrics.containerSecurityContext | nindent 12 }}
{{ end }}
imagePullSecrets: {{ toYaml .Values.imagePullSecrets | nindent 8 }}
nodeSelector: {{ toYaml .Values.nodeSelector | nindent 8 }}
affinity: {{ toYaml .Values.affinity | nindent 8 }}
securityContext: {{ toYaml .Values.podSecurityContext | nindent 12 }}
tolerations: {{ toYaml .Values.tolerations | nindent 8 }}
3 changes: 3 additions & 0 deletions deploy/helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ operator:
# operator.image.pullPolicy -- image pull policy

pullPolicy: IfNotPresent
containerSecurityContext: {}
# operator.resources -- custom resource configuration

resources: {}
Expand Down Expand Up @@ -39,6 +40,7 @@ metrics:
# metrics.image.pullPolicy -- image pull policy

pullPolicy: IfNotPresent
containerSecurityContext: {}
# metrics.resources -- custom resource configuration

resources: {}
Expand Down Expand Up @@ -99,6 +101,7 @@ tolerations: []
# affinity -- affinity for scheduler pod assignment

affinity: {}
podSecurityContext: {}
serviceMonitor:
# serviceMonitor.enabled -- ServiceMonitor CRD is created for a prometheus operator
enabled: false
Expand Down

0 comments on commit 0b2c794

Please sign in to comment.