Skip to content

Commit

Permalink
[PRO-6515] Поправил обязательность параметров
Browse files Browse the repository at this point in the history
  • Loading branch information
v-loboda committed Dec 23, 2024
1 parent 1e199d2 commit c19ff69
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions charts/pro-api/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- define "pro-api.connectionString" -}}
{{- printf "Server=%s;Port=%d;Database=%s;UID=%s;Pooling=True;Minimum Pool Size=%d;Maximum Pool Size=%d;Timeout=%d;Connection Idle Lifetime=30;KeepAlive=5;"
(.Values.postgres.api.rw.host | required "A valid .Values.postgres.api.rw.host entry required!")
(.Values.postgres.api.rw.port | int | required "A valid .Values.postgres.api.rw.port entry required!")
(.Values.postgres.api.rw.port | required "A valid .Values.postgres.api.rw.port entry required!" | int)
(.Values.postgres.api.rw.name | required "A valid .Values.postgres.api.rw.name entry required!")
(.Values.postgres.api.rw.username | required "A valid .Values.postgres.api.rw.username entry required!")
((.Values.postgres.api.rw.poolSize).min | int | default 1)
Expand All @@ -121,7 +121,7 @@ app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- if .Values.postgres.api.ro -}}
{{- printf "Server=%s;Port=%d;Database=%s;UID=%s;Pooling=True;Minimum Pool Size=%d;Maximum Pool Size=%d;Timeout=%d;Connection Idle Lifetime=30;KeepAlive=5;"
(.Values.postgres.api.ro.host | required "A valid .Values.postgres.api.ro.host entry required!")
(.Values.postgres.api.ro.port | int | required "A valid .Values.postgres.api.ro.port entry required!")
(.Values.postgres.api.ro.port | required "A valid .Values.postgres.api.ro.port entry required!" | int)
(.Values.postgres.api.ro.name | required "A valid .Values.postgres.api.ro.name entry required!")
(.Values.postgres.api.ro.username | required "A valid .Values.postgres.api.ro.username entry required!")
((.Values.postgres.api.ro.poolSize).min | int | default 1)
Expand All @@ -136,7 +136,7 @@ app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- define "pro-tasks.connectionString" -}}
{{- printf "Server=%s;Port=%d;Database=%s;UID=%s;Pooling=True;Minimum Pool Size=%d;Maximum Pool Size=%d;Timeout=%d;Connection Idle Lifetime=30;KeepAlive=5;"
(.Values.postgres.tasks.rw.host | required "A valid .Values.postgres.tasks.rw.host entry required!")
(.Values.postgres.tasks.rw.port | int | required "A valid .Values.postgres.tasks.rw.port entry required!")
(.Values.postgres.tasks.rw.port | required "A valid .Values.postgres.tasks.rw.port entry required!" | int)
(.Values.postgres.tasks.rw.name | required "A valid .Values.postgres.tasks.rw.name entry required!")
(.Values.postgres.tasks.rw.username | required "A valid .Values.postgres.tasks.rw.username entry required!")
((.Values.postgres.tasks.rw.poolSize).min | int | default 1)
Expand Down

0 comments on commit c19ff69

Please sign in to comment.