Skip to content
This repository was archived by the owner on May 11, 2026. It is now read-only.

Commit 90da2cd

Browse files
author
Eike Sören Haller
committed
fix kaniko pull secret + add env to runner
1 parent 833fa3b commit 90da2cd

3 files changed

Lines changed: 13 additions & 6 deletions

File tree

charts/github-actions-runner/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 0.2.7
18+
version: 0.2.8
1919

2020
# This is the version number of the application being deployed. This version number should be
2121
# incremented each time you make changes to the application. Versions are not expected to

charts/github-actions-runner/templates/deployment.yaml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,11 @@ spec:
5252
volumeMounts:
5353
- name: workspace-volume
5454
mountPath: /kaniko/workspace/
55+
{{- if .Values.runner.kaniko.mountedSecret }}
56+
- name: pull-secret
57+
readOnly: true
58+
mountPath: /kaniko/.docker
59+
{{- end }}
5560
imagePullPolicy: IfNotPresent
5661
{{- end }}
5762
- name: {{ .Chart.Name }}
@@ -64,13 +69,13 @@ spec:
6469
- name: workspace-volume
6570
mountPath: /kaniko/workspace/
6671
{{- end }}
67-
{{- if .Values.runner.kaniko.mountedSecret }}
68-
- name: pull-secret
69-
readOnly: true
70-
mountPath: /kaniko/.docker
71-
{{- end }}
7272
resources:
7373
{{- toYaml .Values.resources | nindent 12 }}
74+
env:
75+
{{- range $key, $val := .Values.runner.env }}
76+
- name: {{ $key }}
77+
value: {{ $val | quote }}
78+
{{- end }}
7479
envFrom:
7580
- secretRef:
7681
name: {{ .Release.Name }}-secret

charts/github-actions-runner/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ runner:
1616
# if override: true -> the runner.flavor will be ignored and image.repository and image.tag will be leading
1717
override: false
1818
labels: ""
19+
# inject the runner custom env variables
20+
env: []
1921
kaniko:
2022
enabled: true
2123
image:

0 commit comments

Comments
 (0)