From 4f57009b4398226cbcfc16de508fadfa07bfdf6a Mon Sep 17 00:00:00 2001 From: thomas Date: Wed, 21 Jan 2026 10:48:39 -0500 Subject: [PATCH] Add resources configuration for operator pods --- helm/mysql-operator/templates/deployment.yaml | 3 +++ helm/mysql-operator/values.yaml | 10 ++++++++++ 2 files changed, 13 insertions(+) diff --git a/helm/mysql-operator/templates/deployment.yaml b/helm/mysql-operator/templates/deployment.yaml index 9c3a789d..23bdbec6 100644 --- a/helm/mysql-operator/templates/deployment.yaml +++ b/helm/mysql-operator/templates/deployment.yaml @@ -75,6 +75,9 @@ spec: mountPath: /mysqlsh - name: tmpdir mountPath: /tmp + {{- if .Values.resources }} + resources: {{ toYaml .Values.resources | nindent 12 }} + {{- end }} securityContext: capabilities: drop: diff --git a/helm/mysql-operator/values.yaml b/helm/mysql-operator/values.yaml index a412c504..7cef3b9a 100644 --- a/helm/mysql-operator/values.yaml +++ b/helm/mysql-operator/values.yaml @@ -17,6 +17,16 @@ envs: replicas: 1 +## Resource limits and requests for the operator pods +#resources: +# limits: +# cpu: 500m +# memory: 512Mi +# requests: +# cpu: 100m +# memory: 128Mi +resources: {} + ## An example of using affinity for scheduling the operator pods #affinity: # podAntiAffinity: