Skip to content

Commit 5e35c46

Browse files
committed
charts: cnpg cluster serverName timzone
1 parent d572884 commit 5e35c46

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

charts/cnpg-cluster/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 0.1.5
18+
version: 0.1.6
1919

2020
# This is the version number of the application being deployed. This version number should be
2121
# incremented each time you make changes to the application. Versions are not expected to

charts/cnpg-cluster/templates/_helpers.tpl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,9 @@ Pooler sizing helpers
170170
{{- end }}
171171

172172
{{- define "cnpg-cluster.now" -}}
173-
{{ now | date "2006-01-02T15:04:05-07:00" }}
173+
{{- /* Renders current time in configured timezone (Values.timezone), falls back to local system tz */ -}}
174+
{{- $tz := .Values.timezone | default "Local" -}}
175+
{{- dateInZone "2006-01-02T15:04:05-07:00" (now) $tz -}}
174176
{{- end }}
175177

176178
{{/*

0 commit comments

Comments
 (0)