Default values for configmap

This commit is contained in:
Anna Novozhilova 2023-11-21 18:30:42 +03:00
parent f1c43626da
commit 9850488745
8 changed files with 51 additions and 10 deletions

View File

@ -10,4 +10,4 @@ metadata:
data: data:
{{- if .Values.metrics.customMetrics }} {{- if .Values.metrics.customMetrics }}
custom-metrics.yaml: {{ toYaml .Values.metrics.customMetrics | quote }} custom-metrics.yaml: {{ toYaml .Values.metrics.customMetrics | quote }}
{{- end }} {{- end }}

View File

@ -169,4 +169,4 @@ backup:
minWalSize: 512MB minWalSize: 512MB
walBuffers: 4MB walBuffers: 4MB
checkpointCompletionTarget: 0.7 checkpointCompletionTarget: 0.7
defaultStatisticsTarget: 100 defaultStatisticsTarget: 100

View File

@ -0,0 +1,13 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: git-{{ include "<CHARTNAME>.fullname" . }}
{{- if or .Values.git.branch .Values.git.url }}
data:
{{- if .Values.git.branch }}
branch: "{{ .Values.git.branch }}"
{{- end }}
{{- if .Values.git.url }}
url: "{{ .Values.git.url }}"
{{- end }}
{{- end }}

View File

@ -12,6 +12,10 @@ image:
# Overrides the image tag whose default is the chart appVersion. # Overrides the image tag whose default is the chart appVersion.
tag: "" tag: ""
git:
branch: ""
url: ""
imagePullSecrets: imagePullSecrets:
- name: touchin-registry - name: touchin-registry
nameOverride: "" nameOverride: ""

View File

@ -2,6 +2,12 @@ apiVersion: v1
kind: ConfigMap kind: ConfigMap
metadata: metadata:
name: git-{{ include "<CHARTNAME>.fullname" . }} name: git-{{ include "<CHARTNAME>.fullname" . }}
{{- if or .Values.git.branch .Values.git.url }}
data: data:
branch: {{ .Values.git.branch }} {{- if .Values.git.branch }}
url: {{ .Values.git.url }} branch: "{{ .Values.git.branch }}"
{{- end }}
{{- if .Values.git.url }}
url: "{{ .Values.git.url }}"
{{- end }}
{{- end }}

View File

@ -2,6 +2,12 @@ apiVersion: v1
kind: ConfigMap kind: ConfigMap
metadata: metadata:
name: git-{{ include "<CHARTNAME>.fullname" . }} name: git-{{ include "<CHARTNAME>.fullname" . }}
{{- if or .Values.git.branch .Values.git.url }}
data: data:
branch: {{ .Values.git.branch }} {{- if .Values.git.branch }}
url: {{ .Values.git.url }} branch: "{{ .Values.git.branch }}"
{{- end }}
{{- if .Values.git.url }}
url: "{{ .Values.git.url }}"
{{- end }}
{{- end }}

View File

@ -2,6 +2,12 @@ apiVersion: v1
kind: ConfigMap kind: ConfigMap
metadata: metadata:
name: git-{{ include "<CHARTNAME>.fullname" . }} name: git-{{ include "<CHARTNAME>.fullname" . }}
{{- if or .Values.git.branch .Values.git.url }}
data: data:
branch: {{ .Values.git.branch }} {{- if .Values.git.branch }}
url: {{ .Values.git.url }} branch: "{{ .Values.git.branch }}"
{{- end }}
{{- if .Values.git.url }}
url: "{{ .Values.git.url }}"
{{- end }}
{{- end }}

View File

@ -2,6 +2,12 @@ apiVersion: v1
kind: ConfigMap kind: ConfigMap
metadata: metadata:
name: git-{{ include "<CHARTNAME>.fullname" . }} name: git-{{ include "<CHARTNAME>.fullname" . }}
{{- if or .Values.git.branch .Values.git.url }}
data: data:
branch: {{ .Values.git.branch }} {{- if .Values.git.branch }}
url: {{ .Values.git.url }} branch: "{{ .Values.git.branch }}"
{{- end }}
{{- if .Values.git.url }}
url: "{{ .Values.git.url }}"
{{- end }}
{{- end }}