Skip to content

Commit 6192073

Browse files
committed
chart: cnpg-cluster stable cron
1 parent 8b8580f commit 6192073

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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.7
18+
version: 0.1.8
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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ Schedule for automatic backups
181181
{{- define "cnpg-cluster.randomBackupSchedule" -}}
182182
{{- /* Deterministic pseudo-random schedule between 03:00–04:59 (UTC+8) */ -}}
183183
{{- /* Uses adler32 hash so it is stable across renders (good for GitOps) */ -}}
184-
{{- $seed := adler32sum (printf "%s-%s-%s" .Release.Name .Release.Namespace .Chart.Version) -}}
184+
{{- $seed := adler32sum (printf "%s-%s" .Release.Name .Release.Namespace) -}}
185185
{{- $offset := mod $seed 120 -}} {{/* 0..119 minutes in 2h window */}}
186186
{{- $hour := add 19 (div $offset 60) -}} {{/* 3 or 4 */}}
187187
{{- $minute := mod $offset 60 -}}

0 commit comments

Comments
 (0)