Skip to content

Commit

Permalink
🐛 fix: (helm/v1alpha1): Remove extra closing brackets in _helpers.tpl
Browse files Browse the repository at this point in the history
  • Loading branch information
monteiro-renato committed Nov 26, 2024
1 parent c32f971 commit ef8f01d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,9 @@ Helper to check if mutating webhooks exist in the services.
{{` + "`" + `{{- $hasMutating := false }}` + "`" + `}}
{{` + "`" + `{{- range . }}` + "`" + `}}
{{` + "`" + `{{- if eq .type "mutating" }}` + "`" + `}}
{{` + "`" + `$hasMutating = true }}{{- end }}` + "`" + `}}
{{` + "`" + `$hasMutating = true {{- end }}` + "`" + `}}
{{` + "`" + `{{- end }}` + "`" + `}}
{{` + "`" + `{{ $hasMutating }}}}{{- end }}` + "`" + `}}
{{` + "`" + `{{ $hasMutating }}{{- end }}` + "`" + `}}
{{/*
Helper to check if validating webhooks exist in the services.
Expand All @@ -99,7 +99,7 @@ Helper to check if validating webhooks exist in the services.
{{` + "`" + `{{- $hasValidating := false }}` + "`" + `}}
{{` + "`" + `{{- range . }}` + "`" + `}}
{{` + "`" + `{{- if eq .type "validating" }}` + "`" + `}}
{{` + "`" + `$hasValidating = true }}{{- end }}` + "`" + `}}
{{` + "`" + `$hasValidating = true {{- end }}` + "`" + `}}
{{` + "`" + `{{- end }}` + "`" + `}}
{{` + "`" + `{{ $hasValidating }}}}{{- end }}` + "`" + `}}
{{` + "`" + `{{ $hasValidating }}{{- end }}` + "`" + `}}
`
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@ app.kubernetes.io/instance: {{ .Release.Name }}
{{- $hasMutating := false }}
{{- range . }}
{{- if eq .type "mutating" }}
$hasMutating = true }}{{- end }}
$hasMutating = true {{- end }}
{{- end }}
{{ $hasMutating }}}}{{- end }}
{{ $hasMutating }}{{- end }}


{{- define "chart.hasValidatingWebhooks" -}}
{{- $hasValidating := false }}
{{- range . }}
{{- if eq .type "validating" }}
$hasValidating = true }}{{- end }}
$hasValidating = true {{- end }}
{{- end }}
{{ $hasValidating }}}}{{- end }}
{{ $hasValidating }}{{- end }}

0 comments on commit ef8f01d

Please sign in to comment.