From f44bcc6d037597b4fdc8e8be19595356ad2a8290 Mon Sep 17 00:00:00 2001 From: "Ferran A. Castell" Date: Fri, 21 Jan 2022 08:47:27 +0000 Subject: [PATCH] Pass resources map to CR --- charts/ondat-operator/templates/storageoscluster_cr.yaml | 3 +++ charts/ondat-operator/values.yaml | 8 ++++++++ 2 files changed, 11 insertions(+) diff --git a/charts/ondat-operator/templates/storageoscluster_cr.yaml b/charts/ondat-operator/templates/storageoscluster_cr.yaml index fb2ca44..182e793 100644 --- a/charts/ondat-operator/templates/storageoscluster_cr.yaml +++ b/charts/ondat-operator/templates/storageoscluster_cr.yaml @@ -29,6 +29,9 @@ spec: tlsEtcdSecretRefNamespace: {{ .Values.cluster.kvBackend.tlsSecretNamespace }} {{- end }} + resources: +{{ toYaml .Values.cluster.resources | indent 4 }} + {{- if .Values.cluster.nodeSelectorTerm.key }} nodeSelectorTerms: - matchExpressions: diff --git a/charts/ondat-operator/values.yaml b/charts/ondat-operator/values.yaml index a411967..28def28 100644 --- a/charts/ondat-operator/values.yaml +++ b/charts/ondat-operator/values.yaml @@ -70,6 +70,14 @@ cluster: tlsSecretName: tlsSecretNamespace: + # Resource requessts and limits for the node container + resources: {} +# requests: +# cpu: 1 +# memory: 2Gi +# limits: +# cpu: +# memory: # Node selector terms to install StorageOS on. nodeSelectorTerm: key: