Skip to content

Commit

Permalink
Fix yaml parse error: @ cannot start a string (#80)
Browse files Browse the repository at this point in the history
* FIx yaml parse error: @ cannot start a string

Helm 3.5.0 (not tested with earlier versions)

The `schedule` var value is `@hourly`. The `@` produces this error:

> error converting YAML to JSON: yaml: line 47: found character that cannot start any token

Quoting the string fixes the issue.

* Update cronjob.yaml

Updated by PR comment

Co-authored-by: Øystein Bedin <oybed@users.noreply.github.com>
  • Loading branch information
vinzent and oybed authored Feb 2, 2022
1 parent a6af203 commit d8e5c56
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,5 @@ spec:
- name: ldap-bind-password
secret:
secretName: {{ .Values.ldap_bind_password_secret }}
schedule: {{ .Values.schedule }}
schedule: {{ .Values.schedule | quote }}
successfulJobsHistoryLimit: {{ .Values.success_jobs_history_limit }}

0 comments on commit d8e5c56

Please sign in to comment.