From eafa424760133c81742ddf8b08682a3a7378ce9d Mon Sep 17 00:00:00 2001 From: Ludovic Cleroux Date: Tue, 7 Nov 2023 15:23:54 +0100 Subject: [PATCH] Fix observability operator resources (#1449) --- .../templates/01-operator-05-subscription.yaml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/dp-terraform/helm/rhacs-terraform/charts/observability/templates/01-operator-05-subscription.yaml b/dp-terraform/helm/rhacs-terraform/charts/observability/templates/01-operator-05-subscription.yaml index 26f9c6a19d..6f30ac1c3e 100644 --- a/dp-terraform/helm/rhacs-terraform/charts/observability/templates/01-operator-05-subscription.yaml +++ b/dp-terraform/helm/rhacs-terraform/charts/observability/templates/01-operator-05-subscription.yaml @@ -13,10 +13,8 @@ spec: sourceNamespace: {{ include "observability.namespace" . }} startingCSV: observability-operator.{{ .Values.observabilityOperatorVersion }} config: + # set the resources if they are provided + {{- if ((.Values.observabilityOperator).resources) }} resources: - requests: - cpu: {{ .Values.observabilityOperator.resources.requests.cpu | quote }} - memory: {{ .Values.observabilityOperator.resources.requests.memory | quote }} - limits: - cpu: {{ .Values.observabilityOperator.resources.limits.cpu | quote }} - memory: {{ .Values.observabilityOperator.resources.limits.memory | quote }} + {{ .Values.observabilityOperator.resources | toYaml | nindent 6 }} + {{- end }}