[stable/external-dns] #1785 namespace defined templates with chart name (#2130)

This commit is contained in:
Kevin Schumacher
2017-09-19 15:28:58 +05:30
committed by Dhilip
parent 67e78678c2
commit 9638baafb8
5 changed files with 10 additions and 9 deletions
+4 -3
View File
@@ -1,9 +1,10 @@
apiVersion: v1
description: Configure external DNS servers (AWS Route53, Google CloudDNS and others) for Kubernetes Ingresses and Services
description: Configure external DNS servers (AWS Route53, Google CloudDNS and others)
for Kubernetes Ingresses and Services
name: external-dns
version: 0.1.3
version: 0.2.0
appVersion: 0.4.3
home: https://github.com/kubernetes-incubator/external-dns
sources:
- https://github.com/kubernetes-incubator/external-dns
- https://github.com/kubernetes-incubator/external-dns
engine: gotpl
+1 -1
View File
@@ -1,3 +1,3 @@
To verify that external-dns has started, run:
kubectl --namespace={{ .Release.Namespace }} get pods -l "app={{ template "name" . }},release={{ .Release.Name }}"
kubectl --namespace={{ .Release.Namespace }} get pods -l "app={{ template "external-dns.name" . }},release={{ .Release.Name }}"
+2 -2
View File
@@ -2,7 +2,7 @@
{{/*
Expand the name of the chart.
*/}}
{{- define "name" -}}
{{- define "external-dns.name" -}}
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
{{- end -}}
@@ -21,7 +21,7 @@ We truncate at 63 chars because some Kubernetes name fields are limited to this
{{/* Generate basic labels */}}
{{- define "external-dns.labels" }}
app: {{ template "name" . }}
app: {{ template "external-dns.name" . }}
heritage: {{.Release.Service }}
release: {{.Release.Name }}
{{- if .Values.podLabels}}
@@ -14,7 +14,7 @@ spec:
labels: {{ include "external-dns.labels" . | indent 8 }}
spec:
containers:
- name: {{ template "name" . }}
- name: {{ template "external-dns.name" . }}
image: "{{.Values.image.name}}:{{ .Values.image.tag }}"
imagePullPolicy: "{{ .Values.image.pullPolicy }}"
args:
+2 -2
View File
@@ -6,7 +6,7 @@ metadata:
{{ toYaml .Values.service.annotations | indent 4 }}
{{- end }}
labels:
app: {{ template "name" . }}
app: {{ template "external-dns.name" . }}
chart: {{ .Chart.Name }}-{{ .Chart.Version }}
heritage: {{ .Release.Service }}
release: {{ .Release.Name }}
@@ -29,6 +29,6 @@ spec:
protocol: TCP
targetPort: 7979
selector:
app: {{ template "name" . }}
app: {{ template "external-dns.name" . }}
release: {{ .Release.Name }}
type: "{{ .Values.service.type }}"