From c13704d7e2623bfc73d3a5ce68c0eda4c15a307b Mon Sep 17 00:00:00 2001 From: callum-tait-pbx <52924845+callum-tait-pbx@users.noreply.github.com> Date: Sat, 12 Dec 2020 23:33:04 +0000 Subject: [PATCH] feat: custom labels (#231) Co-authored-by: Callum Tait --- charts/actions-runner-controller/templates/_helpers.tpl | 3 +++ charts/actions-runner-controller/values.yaml | 2 ++ 2 files changed, 5 insertions(+) diff --git a/charts/actions-runner-controller/templates/_helpers.tpl b/charts/actions-runner-controller/templates/_helpers.tpl index 26c8dfea..baa8c6e0 100644 --- a/charts/actions-runner-controller/templates/_helpers.tpl +++ b/charts/actions-runner-controller/templates/_helpers.tpl @@ -40,6 +40,9 @@ helm.sh/chart: {{ include "actions-runner-controller.chart" . }} app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} {{- end }} app.kubernetes.io/managed-by: {{ .Release.Service }} +{{- range $k, $v := .Values.labels }} +{{ $k }}: {{ $v }} +{{- end }} {{- end }} {{/* diff --git a/charts/actions-runner-controller/values.yaml b/charts/actions-runner-controller/values.yaml index af983810..3203d2b5 100644 --- a/charts/actions-runner-controller/values.yaml +++ b/charts/actions-runner-controller/values.yaml @@ -2,6 +2,8 @@ # This is a YAML-formatted file. # Declare variables to be passed into your templates. +labels: {} + replicaCount: 1 syncPeriod: 10m