mirror of
https://github.com/truenas/charts.git
synced 2026-06-15 06:28:46 +08:00
Allow overriding service name
This commit is contained in:
@@ -5,6 +5,9 @@ within the common library.
|
||||
{{- define "common.classes.service" -}}
|
||||
{{- $values := .commonService -}}
|
||||
{{- $serviceName := include "common.names.fullname" . -}}
|
||||
{{- if hasKey $values "nameSuffix" -}}
|
||||
{{- $serviceName = (printf "%v-%v" $serviceName $values.nameSuffix) -}}
|
||||
{{ end -}}
|
||||
{{- $svcType := $values.type | default "" -}}
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
|
||||
Reference in New Issue
Block a user