Skip to content

Commit

Permalink
feature: added namespace helper
Browse files Browse the repository at this point in the history
- simplified

Signed-off-by: Bugs5382 <[email protected]>
  • Loading branch information
Bugs5382 committed Nov 9, 2024
1 parent 328158a commit af621b7
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,7 @@ We truncate at 63 chars because some Kubernetes name fields are limited to this
Preserve the default behavior of the Release namespace if no override is provided
*/}}
{{- define "harbor.namespace" -}}
{{- if .Values.namespaceOverride -}}
{{- .Values.namespaceOverride | trunc 63 | trimSuffix "-" -}}
{{- else -}}
{{- .Release.Namespace -}}
{{- end -}}
{{- default .Release.Namespace .Values.namespaceOverride | trunc 63 | trimSuffix "-" -}}
{{- end -}}

{{/* Helm required labels: legacy */}}
Expand Down

0 comments on commit af621b7

Please sign in to comment.