From d16898c92ab376cddc5b0723d3fbf1b62ecbba2d Mon Sep 17 00:00:00 2001 From: Michael Goodness Date: Fri, 1 Sep 2017 17:42:54 -0500 Subject: [PATCH] Add podLabels (#1917) --- stable/cluster-autoscaler/Chart.yaml | 2 +- stable/cluster-autoscaler/templates/deployment.yaml | 3 +++ stable/cluster-autoscaler/values.yaml | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/stable/cluster-autoscaler/Chart.yaml b/stable/cluster-autoscaler/Chart.yaml index 9e114fc592..d602d216b2 100644 --- a/stable/cluster-autoscaler/Chart.yaml +++ b/stable/cluster-autoscaler/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v1 description: Scales worker nodes within autoscaling groups. icon: https://github.com/kubernetes/kubernetes/blob/master/logo/logo.png name: cluster-autoscaler -version: 0.1.2 +version: 0.1.3 sources: - https://github.com/kubernetes/autoscaler/tree/master/cluster-autoscaler - https://github.com/spotinst/kubernetes-autoscaler/tree/master/cluster-autoscaler diff --git a/stable/cluster-autoscaler/templates/deployment.yaml b/stable/cluster-autoscaler/templates/deployment.yaml index 945b9f362e..6f4eed8811 100644 --- a/stable/cluster-autoscaler/templates/deployment.yaml +++ b/stable/cluster-autoscaler/templates/deployment.yaml @@ -18,6 +18,9 @@ spec: labels: app: {{ template "name" . }} release: {{ .Release.Name }} + {{- if .Values.podLabels }} +{{ toYaml .Values.podLabels | indent 8 }} + {{- end }} spec: containers: - name: {{ template "name" . }} diff --git a/stable/cluster-autoscaler/values.yaml b/stable/cluster-autoscaler/values.yaml index 13738d1bb1..cb35fd05bb 100644 --- a/stable/cluster-autoscaler/values.yaml +++ b/stable/cluster-autoscaler/values.yaml @@ -28,6 +28,7 @@ extraArgs: {} nodeSelector: {} podAnnotations: {} +podLabels: {} replicaCount: 1 rbac: