Lint and Test Charts / lint-test (push) Has been cancelled
* Add chart workflows (#1) * Add chart workflows * Fix publishing step in CI Signed-off-by: David Young <[email protected]> * Update CI on push-to-master (#3) * Put helm installation step in the correct CI job Signed-off-by: David Young <[email protected]> * Put helm installation step in the correct CI job (#4) * Update on-push-master-publish-chart.yml * Remove references to certmanager dependency Signed-off-by: David Young <[email protected]> * Add ability to customize kube-rbac-proxy image Signed-off-by: David Young <[email protected]> * Only install cert-manager if we're going to spin up KinD Signed-off-by: David Young <[email protected]>
102 lines
3.2 KiB
Smarty
102 lines
3.2 KiB
Smarty
{{/*
|
|
Expand the name of the chart.
|
|
*/}}
|
|
{{- define "actions-runner-controller.name" -}}
|
|
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
|
|
{{- end }}
|
|
|
|
{{/*
|
|
Create a default fully qualified app name.
|
|
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
|
|
If release name contains chart name it will be used as a full name.
|
|
*/}}
|
|
{{- define "actions-runner-controller.fullname" -}}
|
|
{{- if .Values.fullnameOverride }}
|
|
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
|
|
{{- else }}
|
|
{{- $name := default .Chart.Name .Values.nameOverride }}
|
|
{{- if contains $name .Release.Name }}
|
|
{{- .Release.Name | trunc 63 | trimSuffix "-" }}
|
|
{{- else }}
|
|
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- end }}
|
|
|
|
{{/*
|
|
Create chart name and version as used by the chart label.
|
|
*/}}
|
|
{{- define "actions-runner-controller.chart" -}}
|
|
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
|
|
{{- end }}
|
|
|
|
{{/*
|
|
Common labels
|
|
*/}}
|
|
{{- define "actions-runner-controller.labels" -}}
|
|
helm.sh/chart: {{ include "actions-runner-controller.chart" . }}
|
|
{{ include "actions-runner-controller.selectorLabels" . }}
|
|
{{- if .Chart.AppVersion }}
|
|
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
|
|
{{- end }}
|
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
|
{{- range $k, $v := .Values.labels }}
|
|
{{ $k }}: {{ $v }}
|
|
{{- end }}
|
|
{{- end }}
|
|
|
|
{{/*
|
|
Selector labels
|
|
*/}}
|
|
{{- define "actions-runner-controller.selectorLabels" -}}
|
|
app.kubernetes.io/name: {{ include "actions-runner-controller.name" . }}
|
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
|
{{- end }}
|
|
|
|
{{/*
|
|
Create the name of the service account to use
|
|
*/}}
|
|
{{- define "actions-runner-controller.serviceAccountName" -}}
|
|
{{- if .Values.serviceAccount.create }}
|
|
{{- default (include "actions-runner-controller.fullname" .) .Values.serviceAccount.name }}
|
|
{{- else }}
|
|
{{- default "default" .Values.serviceAccount.name }}
|
|
{{- end }}
|
|
{{- end }}
|
|
|
|
{{- define "actions-runner-controller.leaderElectionRoleName" -}}
|
|
{{- include "actions-runner-controller.fullname" . }}-leader-election
|
|
{{- end }}
|
|
|
|
{{- define "actions-runner-controller.authProxyRoleName" -}}
|
|
{{- include "actions-runner-controller.fullname" . }}-proxy
|
|
{{- end }}
|
|
|
|
{{- define "actions-runner-controller.managerRoleName" -}}
|
|
{{- include "actions-runner-controller.fullname" . }}-manager
|
|
{{- end }}
|
|
|
|
{{- define "actions-runner-controller.runnerEditorRoleName" -}}
|
|
{{- include "actions-runner-controller.fullname" . }}-runner-editor
|
|
{{- end }}
|
|
|
|
{{- define "actions-runner-controller.runnerViewerRoleName" -}}
|
|
{{- include "actions-runner-controller.fullname" . }}-runner-viewer
|
|
{{- end }}
|
|
|
|
{{- define "actions-runner-controller.webhookServiceName" -}}
|
|
{{- include "actions-runner-controller.fullname" . }}-webhook
|
|
{{- end }}
|
|
|
|
{{- define "actions-runner-controller.authProxyServiceName" -}}
|
|
{{- include "actions-runner-controller.fullname" . }}-metrics-service
|
|
{{- end }}
|
|
|
|
{{- define "actions-runner-controller.selfsignedIssuerName" -}}
|
|
{{- include "actions-runner-controller.fullname" . }}-selfsigned-issuer
|
|
{{- end }}
|
|
|
|
{{- define "actions-runner-controller.servingCertName" -}}
|
|
{{- include "actions-runner-controller.fullname" . }}-serving-cert
|
|
{{- end }}
|