Skip to content

Commit

Permalink
limit cronjob name size to 52
Browse files Browse the repository at this point in the history
  • Loading branch information
nitzanzuler committed Nov 6, 2024
1 parent 7ac3279 commit 633d74a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wiz-admission-controller/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ If release name contains chart name it will be used as a full name.
{{- else }}
{{- $name := "wiz-admission-controller-manager" }}
{{- if contains $name .Release.Name }}
{{- .Release.Name | trunc 63 | trimSuffix "-" }}
{{- .Release.Name | trunc 52 | trimSuffix "-" }}
{{- else }}
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }}
{{- printf "%s-%s" .Release.Name $name | trunc 52 | trimSuffix "-" }}
{{- end }}
{{- end }}
{{- end }}
Expand Down

0 comments on commit 633d74a

Please sign in to comment.