Skip to content

Commit d43f82d

Browse files
authored
Merge pull request #411 from linode/csi-linode-resources-config
allow csi driver to have configurable container resources
2 parents 0dd82c2 + 7ccf402 commit d43f82d

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

helm-chart/csi-driver/templates/csi-linode-controller.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,10 @@ spec:
148148
{{- with .Values.csiLinodePlugin.volumeMounts }}
149149
{{- toYaml . | nindent 12 }}
150150
{{- end }}
151+
{{- with .Values.csiLinodePlugin.resources }}
152+
resources:
153+
{{- toYaml . | nindent 12 }}
154+
{{- end }}
151155
serviceAccount: csi-controller-sa
152156
{{- if .Values.controller.nodeSelector }}
153157
nodeSelector:

helm-chart/csi-driver/templates/daemonset.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,10 @@ spec:
9393
{{- with .Values.csiLinodePlugin.volumeMounts }}
9494
{{- toYaml . | nindent 8 }}
9595
{{- end }}
96+
{{- with .Values.csiLinodePlugin.resources }}
97+
resources:
98+
{{- toYaml . | nindent 8 }}
99+
{{- end }}
96100
hostNetwork: true
97101
priorityClassName: system-node-critical
98102
serviceAccount: csi-node-sa

helm-chart/csi-driver/values.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ csiLinodePlugin:
8181
volumeMounts:
8282
# - mountPath: /tmp/
8383
# name: test-volume
84+
# This section adds the ability to pass resources to the container
85+
resources:
8486

8587
kubectl:
8688
image: alpine/k8s # This needs to be alpine based and have both kubectl and curl installed.

0 commit comments

Comments
 (0)