Skip to content

Commit 0363b82

Browse files
committed
add dedicated resources to kaniko
1 parent efb78b1 commit 0363b82

File tree

4 files changed

+11
-9
lines changed

4 files changed

+11
-9
lines changed

charts/github-actions-runner/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: A Helm chart for Kubernetes
44

55
type: application
66

7-
version: 0.7.7
7+
version: 0.7.8
88
appVersion: 0.13.3
99

1010
kubeVersion: ">=1.19.0"

charts/github-actions-runner/README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# github-actions-runner
22

3-
![Version: 0.7.7](https://img.shields.io/badge/Version-0.7.7-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.13.3](https://img.shields.io/badge/AppVersion-0.13.3-informational?style=flat-square)
3+
![Version: 0.7.8](https://img.shields.io/badge/Version-0.7.8-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.13.3](https://img.shields.io/badge/AppVersion-0.13.3-informational?style=flat-square)
44

55
A Helm chart for Kubernetes
66

@@ -100,6 +100,7 @@ helm install github-actions-runner fs-devops/github-actions-runner -f values.yam
100100
| runner.kaniko.enabled | bool | `false` | |
101101
| runner.kaniko.image.repository | string | `""` | |
102102
| runner.kaniko.mountedSecret | string | `""` | |
103+
| runner.kaniko.resources | object | `{}` | |
103104
| runner.labels | string | `""` | |
104105
| runner.proxy.enabled | bool | `false` | |
105106
| runner.proxy.ntlmCreds | string | `""` | |
@@ -112,5 +113,3 @@ helm install github-actions-runner fs-devops/github-actions-runner -f values.yam
112113
| serviceAccount.name | string | `""` | |
113114
| tolerations | list | `[]` | |
114115

115-
----------------------------------------------
116-
Autogenerated from chart metadata using [helm-docs v1.11.0](https://github.com/norwoodj/helm-docs/releases/v1.11.0)

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ spec:
1111
selector:
1212
matchLabels:
1313
{{- include "github-actions-runner.selectorLabels" . | nindent 6 }}
14+
strategy:
15+
type: Recreate
1416
template:
1517
metadata:
1618
{{- with .Values.podAnnotations }}
@@ -57,7 +59,11 @@ spec:
5759
readOnlyRootFilesystem: false
5860
image: {{ include "github-actions-runner.runner-image-kaniko" . }}
5961
resources:
60-
{{- toYaml .Values.resources | nindent 12 }}
62+
{{- if .Values.runner.kaniko.resources }}
63+
{{- toYaml .Values.runner.kaniko.resources | nindent 12 }}
64+
{{- else }}
65+
{{- toYaml .Values.resources | nindent 12 }}
66+
{{- end }}
6167
volumeMounts:
6268
- name: workspace-volume
6369
mountPath: /kaniko/workspace/

charts/github-actions-runner/values.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ runner:
2929
image:
3030
repository: ""
3131
mountedSecret: ""
32+
resources: {}
3233
github:
3334
# if enterpriseUrl and enterpriseApiUrl github.com will be used
3435
enterpriseUrl: ""
@@ -104,10 +105,6 @@ securityContext:
104105

105106
resources:
106107
{}
107-
# We usually recommend not to specify default resources and to leave this as a conscious
108-
# choice for the user. This also increases chances charts run on environments with little
109-
# resources, such as Minikube. If you do want to specify resources, uncomment the following
110-
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
111108
# limits:
112109
# cpu: 100m
113110
# memory: 128Mi

0 commit comments

Comments
 (0)