Optional override of runner image in chart (#666)
* Optional override of runner image in chart
This commit adds the option to override the actions runner image. This
allows running the controller in environments where access to Dockerhub
is restricted.
It uses the parameter [--runner-image](https://github.com/actions-runner-controller/actions-runner-controller/blob/master/main.go#L89) from the controller.
The default value is set as a constant
[here](acb906164b/main.go (L40)).
The default value for the chart is the same.
* Fixing actionsRunner name
... to actionsRunnerRepositoryAndTag for consistency.
* Bumping chart to v0.12.5
			
			
This commit is contained in:
		
							parent
							
								
									c78116b0f9
								
							
						
					
					
						commit
						b1bfa8787f
					
				|  | @ -15,7 +15,7 @@ type: application | ||||||
| # This is the chart version. This version number should be incremented each time you make changes | # This is the chart version. This version number should be incremented each time you make changes | ||||||
| # to the chart and its templates, including the app version. | # to the chart and its templates, including the app version. | ||||||
| # Versions are expected to follow Semantic Versioning (https://semver.org/) | # Versions are expected to follow Semantic Versioning (https://semver.org/) | ||||||
| version: 0.12.4 | version: 0.12.5 | ||||||
| 
 | 
 | ||||||
| # Used as the default manager tag value when no tag property is provided in the values.yaml | # Used as the default manager tag value when no tag property is provided in the values.yaml | ||||||
| appVersion: 0.19.0 | appVersion: 0.19.0 | ||||||
|  |  | ||||||
|  | @ -24,6 +24,7 @@ _Default values are the defaults set in the charts values.yaml, some properties | ||||||
| | `authSecret.github_token`                                | Your chosen GitHub PAT token. **This can't be set at the same time as the `authSecret.github_app_*`**                      |                                                                      | | | `authSecret.github_token`                                | Your chosen GitHub PAT token. **This can't be set at the same time as the `authSecret.github_app_*`**                      |                                                                      | | ||||||
| | `image.repository`                                       | The "repository/image" of the controller container                                                                         | summerwind/actions-runner-controller                                 | | | `image.repository`                                       | The "repository/image" of the controller container                                                                         | summerwind/actions-runner-controller                                 | | ||||||
| | `image.tag`                                              | The tag of the controller container                                                                                        |                                                                      | | | `image.tag`                                              | The tag of the controller container                                                                                        |                                                                      | | ||||||
|  | | `image.actionsRunnerRepositoryAndTag`                    | The "repository/image" of the actions runner container                                                                     | summerwind/actions-runner:latest                                     | | ||||||
| | `image.dindSidecarRepositoryAndTag`                      | The "repository/image" of the dind sidecar container                                                                       | docker:dind                                                          | | | `image.dindSidecarRepositoryAndTag`                      | The "repository/image" of the dind sidecar container                                                                       | docker:dind                                                          | | ||||||
| | `image.pullPolicy`                                       | The pull policy of the controller image                                                                                    | IfNotPresent                                                         | | | `image.pullPolicy`                                       | The pull policy of the controller image                                                                                    | IfNotPresent                                                         | | ||||||
| | `metrics.serviceMonitor`                                 | Deploy serviceMonitor kind for for use with prometheus-operator CRDs                                                       | false                                                                | | | `metrics.serviceMonitor`                                 | Deploy serviceMonitor kind for for use with prometheus-operator CRDs                                                       | false                                                                | | ||||||
|  |  | ||||||
|  | @ -40,6 +40,7 @@ spec: | ||||||
|         - "--enable-leader-election" |         - "--enable-leader-election" | ||||||
|         - "--sync-period={{ .Values.syncPeriod }}" |         - "--sync-period={{ .Values.syncPeriod }}" | ||||||
|         - "--docker-image={{ .Values.image.dindSidecarRepositoryAndTag }}" |         - "--docker-image={{ .Values.image.dindSidecarRepositoryAndTag }}" | ||||||
|  |         - "--runner-image={{ .Values.image.actionsRunnerRepositoryAndTag }}" | ||||||
|         {{- if .Values.scope.singleNamespace }} |         {{- if .Values.scope.singleNamespace }} | ||||||
|         - "--watch-namespace={{ default .Release.Namespace .Values.scope.watchNamespace }}" |         - "--watch-namespace={{ default .Release.Namespace .Values.scope.watchNamespace }}" | ||||||
|         {{- end }} |         {{- end }} | ||||||
|  |  | ||||||
|  | @ -29,7 +29,8 @@ authSecret: | ||||||
|   #github_token: "" |   #github_token: "" | ||||||
| 
 | 
 | ||||||
| image: | image: | ||||||
|   repository: summerwind/actions-runner-controller |   repository: "summerwind/actions-runner-controller" | ||||||
|  |   actionsRunnerRepositoryAndTag: "summerwind/actions-runner:latest" | ||||||
|   dindSidecarRepositoryAndTag: "docker:dind" |   dindSidecarRepositoryAndTag: "docker:dind" | ||||||
|   pullPolicy: IfNotPresent |   pullPolicy: IfNotPresent | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue