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 }}