From 527ec07be81ab347409cc8840a1b2a0d3021eab8 Mon Sep 17 00:00:00 2001 From: Vladimir <26582191+SweetOps@users.noreply.github.com> Date: Thu, 14 Apr 2022 17:48:30 +0300 Subject: [PATCH] fix: sa creation in github-actions-runners (#22) --- charts/github-actions-runners/Chart.yaml | 2 +- charts/github-actions-runners/templates/serviceaccount.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/charts/github-actions-runners/Chart.yaml b/charts/github-actions-runners/Chart.yaml index 1da9404..7ba2b2d 100644 --- a/charts/github-actions-runners/Chart.yaml +++ b/charts/github-actions-runners/Chart.yaml @@ -2,6 +2,6 @@ apiVersion: v2 name: github-actions-runners description: A Helm chart for provisioning Github Actions runners type: application -version: 0.2.1 +version: 0.2.2 maintainers: - name: SweetOps diff --git a/charts/github-actions-runners/templates/serviceaccount.yaml b/charts/github-actions-runners/templates/serviceaccount.yaml index 392d165..4bbda6f 100644 --- a/charts/github-actions-runners/templates/serviceaccount.yaml +++ b/charts/github-actions-runners/templates/serviceaccount.yaml @@ -1,4 +1,5 @@ {{- range .Values.runnerDeployments }} +--- {{- $enabled := printf "%t" .enabled }} {{- if regexMatch "nil" $enabled }}{{- $enabled = "true" }}{{- end }} {{- if (eq $enabled "true") }} @@ -6,7 +7,6 @@ {{- $create := $serviceAccount.create | default $.Values.global.serviceAccount.create }} {{- $annotations := $serviceAccount.annotations | default $.Values.global.serviceAccount.annotations }} {{- if $create -}} ---- apiVersion: v1 kind: ServiceAccount metadata: