From 1e0329902acfe84e085fb455815ef46d00e01d7b Mon Sep 17 00:00:00 2001 From: Alex Siegman Date: Fri, 14 Aug 2020 03:25:38 +0900 Subject: [PATCH] Fixes bad check for serviceAccountName (#257) --- incubator/monochart/Chart.yaml | 4 ++-- incubator/monochart/templates/cronjob.yaml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/incubator/monochart/Chart.yaml b/incubator/monochart/Chart.yaml index e06eadcb..4a8fb452 100644 --- a/incubator/monochart/Chart.yaml +++ b/incubator/monochart/Chart.yaml @@ -1,8 +1,8 @@ apiVersion: v1 description: A declarative helm chart for deploying common types of services on Kubernetes name: monochart -version: 0.23.0 -appVersion: 0.23.0 +version: 0.23.1 +appVersion: 0.23.1 home: https://github.com/cloudposse/charts/tree/master/incubator/monochart icon: https://raw.githubusercontent.com/cloudposse/charts/master/incubator/monochart/logo.png maintainers: diff --git a/incubator/monochart/templates/cronjob.yaml b/incubator/monochart/templates/cronjob.yaml index eebe4d9d..9a68cf5e 100644 --- a/incubator/monochart/templates/cronjob.yaml +++ b/incubator/monochart/templates/cronjob.yaml @@ -37,8 +37,8 @@ spec: {{ toYaml .| indent 12 }} {{- end }} spec: -{{- if index .Values "serviceAccountName" }} - serviceAccountName: {{ .Values.serviceAccountName }} +{{- if index $root.Values "serviceAccountName" }} + serviceAccountName: {{ $root.Values.serviceAccountName }} {{- end }} restartPolicy: '{{ default "Never" $cron.restartPolicy }}' containers: