diff --git a/helm/trident-operator/templates/deployment.yaml b/helm/trident-operator/templates/deployment.yaml index 8f4ba95a9..64cfac260 100644 --- a/helm/trident-operator/templates/deployment.yaml +++ b/helm/trident-operator/templates/deployment.yaml @@ -32,7 +32,7 @@ spec: spec: {{- if .Values.affinity }} affinity: -{{- toYaml .Values.affinity | nindent 8 }} +{{- toYaml .Values.affinity | nindent 8 }} {{- end }} {{- if .Values.nodeSelector }} nodeSelector: @@ -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..9a6b42f67 100644 --- a/helm/trident-operator/values.yaml +++ b/helm/trident-operator/values.yaml @@ -32,7 +32,7 @@ affinity: operator: In values: - linux - + # tridentControllerPluginNodeSelector additional nodeSelectors for the Pod running the Trident Controller CSI Plugin. # tridentControllerPluginNodeSelector : {} @@ -43,7 +43,7 @@ affinity: # tridentNodePluginNodeSelector additional nodeSelectors for Pods running the Trident Node CSI Plugin. # tridentNodePluginNodeSelector : {} -# tridentNodePluginTolerations overrides tolerations for Pods running the Trident Node CSI Plugin. +# tridentNodePluginTolerations overrides tolerations for Pods running the Trident Node CSI Plugin. # tridentNodePluginTolerations: [] @@ -61,7 +61,7 @@ imagePullSecrets: [] kubeletDir: "" -# operatorLogLevel allows the log level of the Trident operator to be set to one of these: +# operatorLogLevel allows the log level of the Trident operator to be set to one of these: # trace, debug, info, warn, error, fatal. # operatorLogLevel: "info" @@ -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 @@ -164,7 +173,7 @@ iscsiSelfHealingWaitTime: "7m0s" configuratorReconcileInterval: 30m0s # forceInstallRancherClusterRoles will install a Rancher specific ClusterRole and ClusterRoleBinding when set to true. -# When set to false, the ClusterRole and ClusterRoleBinding will be installed only when a Rancher cluster is detected. +# When set to false, the ClusterRole and ClusterRoleBinding will be installed only when a Rancher cluster is detected. forceInstallRancherClusterRoles: false # Auto generated ANF backend related fields consumed by the configurator controller.