From 5f608430dc5f1bf6070034469e099a4557a5b991 Mon Sep 17 00:00:00 2001 From: Anthony Lin Date: Wed, 16 May 2018 01:45:17 +0000 Subject: [PATCH] Add Labels for Application/Component - CoreDNS Add application and component labels for CoreDNS Change-Id: I05372334cd769528648a1453a8ced23e7bf968da --- charts/coredns/templates/deployment.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/charts/coredns/templates/deployment.yaml b/charts/coredns/templates/deployment.yaml index 3c623796..b831aacc 100644 --- a/charts/coredns/templates/deployment.yaml +++ b/charts/coredns/templates/deployment.yaml @@ -13,6 +13,8 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */}} + +{{- $envAll := . }} --- apiVersion: extensions/v1beta1 kind: Deployment @@ -33,6 +35,7 @@ spec: template: metadata: labels: +{{ tuple $envAll "kubernetes" "coredns" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 8 }} {{ .Values.service.name }}: enabled annotations: configmap-etc-hash: {{ tuple "configmap-etc.yaml" . | include "helm-toolkit.utils.hash" }} @@ -59,7 +62,7 @@ spec: - name: coredns image: {{ .Values.images.tags.coredns | quote }} imagePullPolicy: {{ .Values.images.pull_policy | quote }} -{{ tuple . .Values.pod.resources.coredns | include "helm-toolkit.snippets.kubernetes_resources" | indent 8 }} +{{ tuple $envAll $envAll.Values.pod.resources.coredns | include "helm-toolkit.snippets.kubernetes_resources" | indent 8 }} args: [ "-conf", "/etc/coredns/Corefile" ] volumeMounts: - name: config-volume