File tree Expand file tree Collapse file tree 6 files changed +69
-4
lines changed
charts/github-actions-runner Expand file tree Collapse file tree 6 files changed +69
-4
lines changed Original file line number Diff line number Diff 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.15
18+ version : 0.3.0
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
Original file line number Diff line number Diff line change @@ -61,6 +61,17 @@ Create the name of the service account to use
6161{ {- end } }
6262{ {- end } }
6363
64+ { {/*
65+ Create the image deployment string of init-runner
66+ */} }
67+ { {- define " github-actions-runner.init" -} }
68+ { {- if not .Values.runner.flavor.override } }
69+ { {- printf " %s:%s-%s" .Values.image.repository (.Values.image.tag | default .Chart.AppVersion) " init" } }
70+ { {- else } }
71+ { {- printf " %s:%s" .Values.image.repository (.Values.image.tag | default .Chart.AppVersion) } }
72+ { {- end } }
73+ { {- end } }
74+
6475{ {/*
6576Create the image deployment string of runner
6677*/} }
Original file line number Diff line number Diff line change 11apiVersion : v1
22kind : ConfigMap
33metadata :
4- name : {{ .Release.Name }}-configmap
4+ name : {{ .Release.Name }}-configmap-env
55 labels :
66 {{- include "github-actions-runner.labels" . | nindent 4 }}
77data :
Original file line number Diff line number Diff line change 1+ apiVersion : v1
2+ kind : ConfigMap
3+ metadata :
4+ name : {{ .Release.Name }}-configmap-files
5+ labels :
6+ {{- include "github-actions-runner.labels" . | nindent 4 }}
7+ data :
8+ {{- if .Values.runner.additionalFiles.maven.settingsXml }}
9+ settings.xml : |- {{ .Values.runner.additionalFiles.maven.settingsXml | nindent 4 }}
10+ {{- end }}
Original file line number Diff line number Diff line change 3434 - name : workspace-volume
3535 emptyDir : {}
3636 {{- end }}
37+ - name : ca-certificates.crt
38+ configMap :
39+ name : " {{ .Values.runner.customCerts.caCertificatesCrt }}"
3740 {{- with .Values.imagePullSecrets }}
3841 imagePullSecrets :
3942 {{- toYaml . | nindent 8 }}
5356 volumeMounts :
5457 - name : workspace-volume
5558 mountPath : /kaniko/workspace/
59+ {{- if .Values.runner.customCerts.caCertificatesCrt }}
60+ - name : ca-certificates.crt
61+ mountPath : /kaniko/ssl/certs/ca-certificates.crt
62+ {{- end }}
5663 {{- if .Values.runner.kaniko.mountedSecret }}
5764 - name : pull-secret
5865 readOnly : true
6673 image : {{ include "github-actions-runner.runner-image" . }}
6774 imagePullPolicy : {{ .Values.image.pullPolicy }}
6875 volumeMounts :
76+ {{- if .Values.runner.customCerts.caCertificatesCrt }}
77+ - name : ca-certificates.crt
78+ mountPath : /etc/ssl/certs/ca-certificates.crt
79+ {{- end }}
6980 {{- if .Values.runner.kaniko.enabled }}
7081 - name : workspace-volume
7182 mountPath : /kaniko/workspace/
8192 - secretRef :
8293 name : {{ .Release.Name }}-secret
8394 - configMapRef :
84- name : {{ .Release.Name }}-configmap
95+ name : {{ .Release.Name }}-configmap-env
8596 {{- with .Values.nodeSelector }}
8697 nodeSelector :
8798 {{- toYaml . | nindent 8 }}
Original file line number Diff line number Diff line change @@ -17,7 +17,10 @@ runner:
1717 override : false
1818 labels : " "
1919 # inject the runner custom env variables
20- env : []
20+ env :
21+ []
22+ # - name: TEST_ENV
23+ # value: "some value"
2124 kaniko :
2225 enabled : true
2326 image :
@@ -30,6 +33,36 @@ runner:
3033 organisation : " fullstack-devpos"
3134 repository : " "
3235 accessToken : " "
36+ # custom certs will be used in the runner and kaniko, as well in java (if you using it)
37+ customCerts :
38+ # Paste your custom ca-certificates.crt:
39+ configMapRef : " "
40+ additionalFiles :
41+ maven :
42+ # example settings.xml, will be placed in global .m2 folder
43+ settingsXml :
44+ " "
45+ # <settings xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/settings-1.1.0.xsd">
46+ # <mirrors>
47+ # <mirror>
48+ # <id>custom-nexus</id>
49+ # <mirrorOf>*</mirrorOf>
50+ # <url>https://example.intra.com/repository/maven-public/</url>
51+ # </mirror>
52+ # </mirrors>
53+ # <servers>
54+ # <server>
55+ # <id>custom-maven-releases</id>
56+ # <username>${maven.username}</username>
57+ # <password>${maven.password}</password>
58+ # </server>
59+ # <server>
60+ # <id>custom-maven-snapshots</id>
61+ # <username>${maven.username}</username>
62+ # <password>${maven.password}</password>
63+ # </server>
64+ # </servers>
65+ # </settings>
3366
3467imagePullSecrets : []
3568nameOverride : " "
You can’t perform that action at this time.
0 commit comments