Skip to content

Commit c4d8faf

Browse files
committed
rename manager and audit log - use fullname as a prefix
1 parent 4759a87 commit c4d8faf

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

wiz-admission-controller/templates/_helpers.tpl

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -31,25 +31,15 @@ If release name contains chart name it will be used as a full name.
3131
{{- if .Values.kubernetesAuditLogsWebhook.nameOverride }}
3232
{{- .Values.kubernetesAuditLogsWebhook.nameOverride | trunc 63 | trimSuffix "-" }}
3333
{{- else }}
34-
{{- $name := "wiz-audit-logs-collector" }}
35-
{{- if contains $name .Release.Name }}
36-
{{- .Release.Name | trunc 63 | trimSuffix "-" }}
37-
{{- else }}
38-
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }}
39-
{{- end }}
34+
{{- printf "%s-audit-log-collector" (include "wiz-admission-controller.fullname" .) | trunc 63 | trimSuffix "-" }}
4035
{{- end }}
4136
{{- end }}
4237

4338
{{- define "wiz-admission-controller-manager.name" -}}
4439
{{- if .Values.wizManager.nameOverride }}
4540
{{- .Values.wizManager.nameOverride | trunc 63 | trimSuffix "-" }}
4641
{{- else }}
47-
{{- $name := "wiz-admission-controller-manager" }}
48-
{{- if contains $name .Release.Name }}
49-
{{- .Release.Name | trunc 52 | trimSuffix "-" }}
50-
{{- else }}
51-
{{- printf "%s-%s" .Release.Name $name | trunc 52 | trimSuffix "-" }}
52-
{{- end }}
42+
{{- printf "%s-manager" (include "wiz-admission-controller.fullname" .) | trunc 52 | trimSuffix "-" }}
5343
{{- end }}
5444
{{- end }}
5545

0 commit comments

Comments
 (0)