From 4f130d6ac9420e74110d28956bed8dc0d56f6e5f Mon Sep 17 00:00:00 2001 From: Bartosz Fenski Date: Mon, 12 Feb 2024 19:20:23 +0100 Subject: [PATCH] adding resources --- stable/democratic-csi/templates/node.yaml | 5 +++++ stable/democratic-csi/values.yaml | 1 + 2 files changed, 6 insertions(+) diff --git a/stable/democratic-csi/templates/node.yaml b/stable/democratic-csi/templates/node.yaml index d9bbb30..a27eb4f 100644 --- a/stable/democratic-csi/templates/node.yaml +++ b/stable/democratic-csi/templates/node.yaml @@ -243,6 +243,11 @@ spec: - "-c" - "--" args: [ "while true; do sleep 2; done;" ] + {{- if .Values.node.driver.resources }} + resources: +{{ toYaml .Values.node.cleanup.resources | indent 10 }} + {{- end }} + lifecycle: # note this runs *before* other containers are terminated diff --git a/stable/democratic-csi/values.yaml b/stable/democratic-csi/values.yaml index d7deae2..29532e7 100644 --- a/stable/democratic-csi/values.yaml +++ b/stable/democratic-csi/values.yaml @@ -226,6 +226,7 @@ node: cleanup: image: docker.io/busybox:1.32.0 + resources: # democratic-csi node driver: