From 0f78d5344a44bb6be491c47db87be35b034864a5 Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Wed, 24 Jul 2019 02:02:15 -0500 Subject: [PATCH] [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 --- stable/cluster-autoscaler/Chart.yaml | 2 +- stable/cluster-autoscaler/templates/secret.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/stable/cluster-autoscaler/Chart.yaml b/stable/cluster-autoscaler/Chart.yaml index c54bf340eb..bcf87569ae 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.14.3 +version: 0.14.4 appVersion: 1.13.1 home: https://github.com/kubernetes/autoscaler sources: diff --git a/stable/cluster-autoscaler/templates/secret.yaml b/stable/cluster-autoscaler/templates/secret.yaml index fd8343dd61..3f0ef09e2b 100644 --- a/stable/cluster-autoscaler/templates/secret.yaml +++ b/stable/cluster-autoscaler/templates/secret.yaml @@ -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: