Commit 24045b30 authored by Waqar Ahmed's avatar Waqar Ahmed

Properly render services in common chart

parent af075c5e
{{-/*
{{/*
Common service account
*/-}}
*/}}
{{- define "common.serviceaccount" -}}
apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ include "common.names.serviceAccountName" . | quote }}
namespace: {{ .Release.Namespace | quote }}
labels: {{- include "common.labels.selectorLabels" | nindent 4 -}}
labels: {{- include "common.labels.selectorLabels" . | nindent 4 -}}
{{- end -}}
......@@ -3,7 +3,7 @@ This template serves as a blueprint for all Service objects that are created
within the common library.
*/}}
{{- define "common.classes.service" -}}
{{- $values := . -}}
{{- $values := .service -}}
{{- $serviceName := include "common.names.fullname" . -}}
{{- if hasKey $values "nameSuffix" -}}
{{- $serviceName = printf "%v-%v" $serviceName $values.nameSuffix -}}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment