From b8d04d55cc385454d748fa695c184df30afe5bbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Nussbaumer?= Date: Fri, 27 Sep 2024 14:48:52 +0200 Subject: [PATCH] permit specifying trident-operator resources MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit closes https://github.com/NetApp/trident/issues/927 Signed-off-by: Clément Nussbaumer --- helm/trident-operator/templates/deployment.yaml | 7 +------ helm/trident-operator/values.yaml | 9 +++++++++ 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/helm/trident-operator/templates/deployment.yaml b/helm/trident-operator/templates/deployment.yaml index 8f4ba95a9..f0c40dd1d 100644 --- a/helm/trident-operator/templates/deployment.yaml +++ b/helm/trident-operator/templates/deployment.yaml @@ -68,12 +68,7 @@ spec: imagePullPolicy: {{ .Values.imagePullPolicy }} name: trident-operator resources: - requests: - cpu: "10m" - memory: "40Mi" - limits: - cpu: "20m" - memory: "80Mi" + {{- toYaml .Values.operatorResources | nindent 10 }} {{- if and (eq .Values.cloudProvider "Azure") (eq .Values.cloudIdentity "") }} volumes: - name: azure-cred diff --git a/helm/trident-operator/values.yaml b/helm/trident-operator/values.yaml index a7e8d2536..6e08388d0 100644 --- a/helm/trident-operator/values.yaml +++ b/helm/trident-operator/values.yaml @@ -74,6 +74,15 @@ operatorImage: "" # operatorImageTag allows overriding the tag of the trident-operator image. operatorImageTag: "" +# operatorResources permits configuring the trident-operator resources. +operatorResources: + requests: + cpu: "10m" + memory: "40Mi" + limits: + cpu: "20m" + memory: "80Mi" + # tridentIPv6 allows enabling Trident to work in IPv6 clusters. tridentIPv6: false