Skip to content

Commit 5354da4

Browse files
committed
add dedicated resources to kaniko
1 parent efb78b1 commit 5354da4

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
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/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)