Skip to content

Commit aaf9dd0

Browse files
committed
fix(etcd): cast backup history limits to int in template
Address review feedback from gemini-code-assist on packages/extra/etcd/templates/etcd-backup-schedule.yaml:20-21: explicitly coerce successfulJobsHistoryLimit and failedJobsHistoryLimit to int so string values passed via helm --set do not produce a type mismatch in the EtcdBackupSchedule spec. Assisted-By: Claude <[email protected]> Signed-off-by: Aleksei Sviridkin <[email protected]>
1 parent 4d7b4bb commit aaf9dd0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎packages/extra/etcd/templates/etcd-backup-schedule.yaml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ spec:
1717
clusterRef:
1818
name: etcd
1919
schedule: {{ .Values.backup.schedule | quote }}
20-
successfulJobsHistoryLimit: {{ .Values.backup.successfulJobsHistoryLimit }}
21-
failedJobsHistoryLimit: {{ .Values.backup.failedJobsHistoryLimit }}
20+
successfulJobsHistoryLimit: {{ .Values.backup.successfulJobsHistoryLimit | int }}
21+
failedJobsHistoryLimit: {{ .Values.backup.failedJobsHistoryLimit | int }}
2222
destination:
2323
s3:
2424
endpoint: {{ $endpointURL | quote }}

0 commit comments

Comments
 (0)