Set app-intel-device-plugins memory request to 0

All platform pods are supposed to have no memory resource requests.
In this commit, memory request are set to 0 for all the plugins of
app-intel-device-plugins.

TEST PLANS:

PASSED: Verify upload, apply, remove and delete app
PASSED: Check the description of the node using below command
        "kubectl describe node controller-0" and check at the
        "Memory Requests" column in the table for
        "Non-terminated Pods", which should show 0 cpu request for
        all the plugins.
PASSED: Verify requests.memory is 0 in the pod description after
        deleting the pod.
PASSED: Verify requests.memory is 0 in the pod description after
        lock/unlock.

Story: 2011407
Task: 52809

Change-Id: Ieafaf03b93dd9df32495393239fad754ee3a11a8
Signed-off-by: Md Irshad Sheikh <mdirshad.sheikh@windriver.com>
This commit is contained in:
Md Irshad Sheikh
2025-09-15 05:41:37 -04:00
parent e87e789aee
commit 811c6932a2
2 changed files with 4 additions and 3 deletions

View File

@@ -281,8 +281,8 @@ class IntelDevicePluginsAppLifecycleOperator(base.AppLifecycleOperator):
"""
LOG.info(f"Running {app.name} post apply to {app.version} version")
patch = '[{"op":"replace",' \
'"path":"/spec/template/spec/containers/0/resources/requests/cpu",' \
'"value":"0"}]'
'"path":"/spec/template/spec/containers/0/resources/requests",' \
'"value":{"cpu":"0m","memory":"0Mi"}}]'
try:
# Get all daemonsets in the intel-device-plugins-operator namespace