Commit d0ae3981 authored by Will JALLET's avatar Will JALLET 💸

adjust & fix template site.labels

parent 5fc16338
......@@ -6,9 +6,9 @@
{{- end -}}
{{- end -}}
{{/* Generate basic labels */}}
{{- define "site.labels" -}}
{{- define "site.labels" }}
labels:
generator: helm
app: {{ .Release.Name }}-app
chart: {{ .Chart.Name }}-{{ .Chart.Version }}
{{- end -}}
\ No newline at end of file
{{- end }}
\ No newline at end of file
......@@ -4,7 +4,7 @@ kind: Deployment
metadata:
name: {{ .Release.Name }}
{{ template "site.namespace" . }}
{{ template "site.labels" . }}
{{- template "site.labels" . }}
annotations:
flux.weave.works/automated: 'true'
spec:
......@@ -16,7 +16,7 @@ spec:
type: RollingUpdate
template:
metadata:
{{ template "site.labels" . }}
{{- template "site.labels" . }}
spec:
containers:
- image: {{ required "The Docker image repo must be specified!" .Values.image.repository }}
......
......@@ -6,7 +6,7 @@ kind: Ingress
metadata:
name: {{ .Release.Name }}
{{ template "site.namespace" . }}
{{ template "site.labels" . }}
{{- template "site.labels" . }}
spec:
rules:
{{- range $host := .Values.ingress.hosts }}
......
......@@ -3,7 +3,7 @@ kind: Service
metadata:
name: {{ .Release.Name }}
{{ template "site.namespace" . }}
{{ template "site.labels" . }}
{{- template "site.labels" . }}
spec:
type: NodePort
ports:
......
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