[stable/cluster-autoscaler] Fix secret template (#15815)

Don't generate a secret when provider is AWS and credentials are not given.

Signed-off-by: Eric Bailey <e.bailey@sportradar.com>
This commit is contained in:
Eric Bailey
2019-07-24 00:02:15 -07:00
committed by Kubernetes Prow Robot
parent 0771fc7e4c
commit 0f78d5344a
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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.14.3
version: 0.14.4
appVersion: 1.13.1
home: https://github.com/kubernetes/autoscaler
sources:
@@ -1,4 +1,4 @@
{{- if or (eq .Values.cloudProvider "azure") (eq .Values.cloudProvider "aws") }}
{{- if or (eq .Values.cloudProvider "azure") (and (eq .Values.cloudProvider "aws") (not (has "" (list .Values.awsAccessKeyID .Values.awsSecretAccessKey)))) }}
apiVersion: v1
kind: Secret
metadata: