Allow overriding service name

This commit is contained in:
Waqar Ahmed
2021-01-31 15:12:40 +05:00
parent e88f516fb4
commit c325524327

View File

@@ -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