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

Properly render services in common chart

parent af075c5e
{{-/* {{/*
Common service account Common service account
*/-}} */}}
{{- define "common.serviceaccount" -}} {{- define "common.serviceaccount" -}}
apiVersion: v1 apiVersion: v1
kind: ServiceAccount kind: ServiceAccount
metadata: metadata:
name: {{ include "common.names.serviceAccountName" . | quote }} name: {{ include "common.names.serviceAccountName" . | quote }}
namespace: {{ .Release.Namespace | quote }} namespace: {{ .Release.Namespace | quote }}
labels: {{- include "common.labels.selectorLabels" | nindent 4 -}} labels: {{- include "common.labels.selectorLabels" . | nindent 4 -}}
{{- end -}} {{- end -}}
...@@ -3,7 +3,7 @@ This template serves as a blueprint for all Service objects that are created ...@@ -3,7 +3,7 @@ This template serves as a blueprint for all Service objects that are created
within the common library. within the common library.
*/}} */}}
{{- define "common.classes.service" -}} {{- define "common.classes.service" -}}
{{- $values := . -}} {{- $values := .service -}}
{{- $serviceName := include "common.names.fullname" . -}} {{- $serviceName := include "common.names.fullname" . -}}
{{- if hasKey $values "nameSuffix" -}} {{- if hasKey $values "nameSuffix" -}}
{{- $serviceName = printf "%v-%v" $serviceName $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