Skip to content

Commit

Permalink
fail if crd.cleanup.image.tag is not string
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewChubatiuk committed Oct 9, 2024
1 parent f176663 commit e201311
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
{{- if empty ($app.image).tag }}
{{- $tag := (printf "%s.%s" .Capabilities.KubeVersion.Major .Capabilities.KubeVersion.Minor) | replace "+" "" -}}
{{- $_ := set $app.image "tag" $tag }}
{{- else if not (kindIs "string" ($app.image).tag) }}
{{- fail "`crd.cleanup.image.tag` is not string, most probably you need to enquote provided value" -}}
{{- end }}
---
apiVersion: batch/v1
Expand Down

0 comments on commit e201311

Please sign in to comment.