helm-charts/postgres-operator/templates/operatorconfiguration.yaml

46 lines
1.8 KiB
YAML
Raw Normal View History

2021-01-17 01:09:41 +00:00
{{- if eq .Values.configTarget "OperatorConfigurationCRD" }}
apiVersion: "acid.zalan.do/v1"
kind: OperatorConfiguration
metadata:
name: {{ template "postgres-operator.fullname" . }}
2021-11-14 22:17:20 +00:00
namespace: {{ .Release.Namespace }}
2021-01-17 01:09:41 +00:00
labels:
app.kubernetes.io/name: {{ template "postgres-operator.name" . }}
helm.sh/chart: {{ template "postgres-operator.chart" . }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
app.kubernetes.io/instance: {{ .Release.Name }}
configuration:
{{ tpl (toYaml .Values.configGeneral) . | indent 2 }}
2021-01-17 01:09:41 +00:00
users:
{{ tpl (toYaml .Values.configUsers) . | indent 4 }}
major_version_upgrade:
{{ tpl (toYaml .Values.configMajorVersionUpgrade) . | indent 4 }}
2021-01-17 01:09:41 +00:00
kubernetes:
{{- if .Values.podPriorityClassName.name }}
pod_priority_class_name: {{ .Values.podPriorityClassName.name }}
2021-01-17 01:09:41 +00:00
{{- end }}
pod_service_account_name: {{ include "postgres-pod.serviceAccountName" . }}
oauth_token_secret_name: {{ template "postgres-operator.fullname" . }}
{{ tpl (toYaml .Values.configKubernetes) . | indent 4 }}
2021-01-17 01:09:41 +00:00
postgres_pod_resources:
{{ tpl (toYaml .Values.configPostgresPodResources) . | indent 4 }}
2021-01-17 01:09:41 +00:00
timeouts:
{{ tpl (toYaml .Values.configTimeouts) . | indent 4 }}
2021-01-17 01:09:41 +00:00
load_balancer:
{{ tpl (toYaml .Values.configLoadBalancer) . | indent 4 }}
2021-01-17 01:09:41 +00:00
aws_or_gcp:
{{ tpl (toYaml .Values.configAwsOrGcp) . | indent 4 }}
2021-01-17 01:09:41 +00:00
logical_backup:
{{ tpl (toYaml .Values.configLogicalBackup) . | indent 4 }}
2021-01-17 01:09:41 +00:00
debug:
{{ tpl (toYaml .Values.configDebug) . | indent 4 }}
2021-01-17 01:09:41 +00:00
teams_api:
{{ tpl (toYaml .Values.configTeamsApi) . | indent 4 }}
2021-01-17 01:09:41 +00:00
logging_rest_api:
{{ tpl (toYaml .Values.configLoggingRestApi) . | indent 4 }}
2021-01-17 01:09:41 +00:00
connection_pooler:
{{ tpl (toYaml .Values.configConnectionPooler) . | indent 4 }}
patroni:
{{ tpl (toYaml .Values.configPatroni) . | indent 4 }}
2021-01-17 01:09:41 +00:00
{{- end }}