You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adding a jsonschema allows user to fail early as the user configuration in the is validated at installation time already. For that reason, there has been added additional validation that couldn't be performed using jsonschema in the helm helper file. Moreover, as we now have our dear conny in artifacthub we can enhance our artifacthub page by adding a jsonschema as artifacthub parses the file and shows its content in a nice format.
{{- fail (printf "The value of the alert template must be chosen such that <template>.json matches one of the file names in the ./alert_payload_templates directory, but there is no %s.json file in that directory or the file is empty."$filename) }}
198
+
{{- end }}
199
+
{{- end }}
200
+
{{- end }}
201
+
{{- end }}
202
+
{{- if .Values.alerting.reject_request }}
203
+
{{- if .Values.alerting.reject_request.templates }}
204
+
{{- range .Values.alerting.reject_request.templates }}
{{- fail (printf "The value of the alert template must be chosen such that <template>.json matches one of the file names in the ./alert_payload_templates directory, but there is no %s.json file in that directory or the file is empty."$filename) }}
{{- if has $policy.with.trust_root $validtrustroots}}
242
+
{{- elseifeq$policy.with.trust_root "default"}}
243
+
{{- else}}
244
+
{{- fail (printf "Validator %s has no %s trust root defined."$policy.validator $policy.with.trust_root)}}
245
+
{{- end }}
246
+
{{- end}}
247
+
{{- else}}
248
+
{{- if has "default"$validatornames}}
249
+
{{- else}}
250
+
{{- fail (printf "Policy for images matching '%s' has no explicit validator defined such that the validator named 'default' is going to be used, but there is no validator named 'default' defined."$policy.pattern)}}
0 commit comments