mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
feat: Enhance security context handling for ClickHouse, PostgreSQL, and Redis StatefulSets
This commit is contained in:
@@ -52,9 +52,16 @@ spec:
|
||||
- name: clickhouse
|
||||
image: "{{ .Values.clickhouse.image.repository }}:{{ .Values.clickhouse.image.tag }}"
|
||||
imagePullPolicy: {{ .Values.clickhouse.image.pullPolicy }}
|
||||
{{- with .Values.containerSecurityContext }}
|
||||
{{- if .Values.clickhouse.containerSecurityContext }}
|
||||
securityContext:
|
||||
{{- with .Values.clickhouse.containerSecurityContext }}
|
||||
{{- toYaml . | nindent 10 }}
|
||||
{{- end }}
|
||||
{{- else if .Values.containerSecurityContext }}
|
||||
securityContext:
|
||||
{{- with .Values.containerSecurityContext }}
|
||||
{{- toYaml . | nindent 10 }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
ports:
|
||||
- name: http
|
||||
|
||||
@@ -79,6 +79,11 @@ spec:
|
||||
{{- with .Values.postgresql.primary.containerSecurityContext }}
|
||||
{{- toYaml . | nindent 10 }}
|
||||
{{- end }}
|
||||
{{- else if .Values.containerSecurityContext }}
|
||||
securityContext:
|
||||
{{- with .Values.containerSecurityContext }}
|
||||
{{- toYaml . | nindent 10 }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
ports:
|
||||
- name: postgresql
|
||||
|
||||
@@ -46,9 +46,16 @@ spec:
|
||||
- name: redis
|
||||
image: "{{ .Values.redis.image.repository }}:{{ .Values.redis.image.tag }}"
|
||||
imagePullPolicy: {{ .Values.redis.image.pullPolicy }}
|
||||
{{- with .Values.containerSecurityContext }}
|
||||
{{- if .Values.redis.master.containerSecurityContext }}
|
||||
securityContext:
|
||||
{{- with .Values.redis.master.containerSecurityContext }}
|
||||
{{- toYaml . | nindent 10 }}
|
||||
{{- end }}
|
||||
{{- else if .Values.containerSecurityContext }}
|
||||
securityContext:
|
||||
{{- with .Values.containerSecurityContext }}
|
||||
{{- toYaml . | nindent 10 }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
command:
|
||||
- sh
|
||||
|
||||
Reference in New Issue
Block a user