From f926aeee8948921c7c74093f32fec57df9f7e042 Mon Sep 17 00:00:00 2001 From: Angel Kafazov Date: Mon, 25 Nov 2024 18:27:58 +0200 Subject: [PATCH] fix: update resource limits and requests in deployment tests for account and extension manager operators On-behalf-of: @SAP angel.kafazov@sap.com Signed-off-by: Angel Kafazov --- charts/account-operator/tests/deployment_test.yaml | 9 +++++++++ .../tests/__snapshot__/deployment_test.yaml.snap | 1 + .../tests/deployment_test.yaml | 8 ++++++++ 3 files changed, 18 insertions(+) diff --git a/charts/account-operator/tests/deployment_test.yaml b/charts/account-operator/tests/deployment_test.yaml index ee47d7634..7ff11014e 100644 --- a/charts/account-operator/tests/deployment_test.yaml +++ b/charts/account-operator/tests/deployment_test.yaml @@ -5,6 +5,15 @@ release: name: account-operator tests: - it: operator match the snapshot + set: + deployment: + resources: + limits: + cpu: 260m + memory: 512Mi + requests: + cpu: 150m + memory: 128Mi asserts: - matchSnapshot: {} - it: operator match the snapshot (with kubeconfigSecret) diff --git a/charts/extension-manager-operator/tests/__snapshot__/deployment_test.yaml.snap b/charts/extension-manager-operator/tests/__snapshot__/deployment_test.yaml.snap index ccb8ea7b1..b57a1ec8b 100644 --- a/charts/extension-manager-operator/tests/__snapshot__/deployment_test.yaml.snap +++ b/charts/extension-manager-operator/tests/__snapshot__/deployment_test.yaml.snap @@ -111,6 +111,7 @@ operator match the snapshot: periodSeconds: 10 resources: limits: + cpu: 260m memory: 512Mi requests: cpu: 40m diff --git a/charts/extension-manager-operator/tests/deployment_test.yaml b/charts/extension-manager-operator/tests/deployment_test.yaml index 00132a888..acaa6d748 100644 --- a/charts/extension-manager-operator/tests/deployment_test.yaml +++ b/charts/extension-manager-operator/tests/deployment_test.yaml @@ -24,6 +24,14 @@ tests: path: /readyz metrics: port: 8080 + deployment: + resources: + limits: + cpu: 260m + memory: 512Mi + requests: + cpu: 40m + memory: 50Mi - it: deployment with metrics probes template: deployment.yaml set: