From 65e543c3e1a0f194e522824d1f6cc3ee156edd3a Mon Sep 17 00:00:00 2001 From: Bobbins228 Date: Thu, 22 Feb 2024 10:52:56 +0000 Subject: [PATCH] Addressed comments --- torchx/schedulers/kubernetes_mcad_scheduler.py | 2 +- torchx/schedulers/test/kubernetes_mcad_scheduler_test.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/torchx/schedulers/kubernetes_mcad_scheduler.py b/torchx/schedulers/kubernetes_mcad_scheduler.py index 07d7a675d..63e8da519 100644 --- a/torchx/schedulers/kubernetes_mcad_scheduler.py +++ b/torchx/schedulers/kubernetes_mcad_scheduler.py @@ -240,7 +240,7 @@ def role_to_pod( config_map=V1ConfigMapVolumeSource( name="odh-trusted-ca-bundle", items=[ - V1KeyToPath(key="ca-bundle.crt", path="odh-custom-ca-bundle.crt") + V1KeyToPath(key="ca-bundle.crt", path="odh-trusted-ca-bundle.crt") ], optional=True, ), diff --git a/torchx/schedulers/test/kubernetes_mcad_scheduler_test.py b/torchx/schedulers/test/kubernetes_mcad_scheduler_test.py index 6c4952239..eb614a018 100644 --- a/torchx/schedulers/test/kubernetes_mcad_scheduler_test.py +++ b/torchx/schedulers/test/kubernetes_mcad_scheduler_test.py @@ -365,7 +365,7 @@ def test_role_to_pod(self) -> None: name="odh-trusted-ca-bundle", items=[ V1KeyToPath( - key="ca-bundle.crt", path="odh-custom-ca-bundle.crt" + key="ca-bundle.crt", path="odh-trusted-ca-bundle.crt" ) ], optional=True, @@ -702,7 +702,7 @@ def test_submit_dryrun(self) -> None: - configMap: items: - key: ca-bundle.crt - path: odh-custom-ca-bundle.crt + path: odh-trusted-ca-bundle.crt name: odh-trusted-ca-bundle optional: true name: odh-trusted-ca-cert @@ -1371,7 +1371,7 @@ def test_volume_mounts(self) -> None: name="odh-trusted-ca-bundle", items=[ V1KeyToPath( - key="ca-bundle.crt", path="odh-custom-ca-bundle.crt" + key="ca-bundle.crt", path="odh-trusted-ca-bundle.crt" ) ], optional=True, @@ -1470,7 +1470,7 @@ def test_device_mounts(self) -> None: name="odh-trusted-ca-bundle", items=[ V1KeyToPath( - key="ca-bundle.crt", path="odh-custom-ca-bundle.crt" + key="ca-bundle.crt", path="odh-trusted-ca-bundle.crt" ) ], optional=True,