Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

Commit

Permalink
Quote backup and cleanup schedules
Browse files Browse the repository at this point in the history
To be honest, it is a bit of an obscure use-case to run this each minute.
But if the schedule starts with an * helm fails with
"error converting YAML to JSON: yaml: line 11: did not find expected alphabetic or numeric character".
This is solved by always quoting the schedule.
  • Loading branch information
ekeih authored and morremeyer committed Aug 8, 2021
1 parent e9121fe commit 849f44e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/backup/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ apiVersion: v2
name: backup
description: Chart to back up PVCs with restic and regularly clean up the snapshots.
type: application
version: 1.0.2
version: 1.0.3
2 changes: 1 addition & 1 deletion charts/backup/templates/cronjob-backup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
labels:
{{- include "backup.labels" . | nindent 4 }}
spec:
schedule: {{ .Values.backupJob.schedule }}
schedule: {{ .Values.backupJob.schedule | quote }}
jobTemplate:
spec:
template:
Expand Down
2 changes: 1 addition & 1 deletion charts/backup/templates/cronjob-cleanup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
labels:
{{- include "backup.labels" . | nindent 4 }}
spec:
schedule: {{ .Values.cleanupJob.schedule }}
schedule: {{ .Values.cleanupJob.schedule | quote }}
jobTemplate:
spec:
template:
Expand Down

0 comments on commit 849f44e

Please sign in to comment.