From 4e47a1ee9cf394393b3fc841bc5858088e78f5f4 Mon Sep 17 00:00:00 2001 From: Saloni Gupta <131198887+salonig23@users.noreply.github.com> Date: Tue, 6 Aug 2024 13:59:02 -0700 Subject: [PATCH] chore: change the comment for defaultNamespace in values.yaml (#9793) --- docs/reference/deploy/master-config-reference.rst | 2 +- docs/setup-cluster/k8s/resource-caps.rst | 3 ++- helm/charts/determined/templates/master-config.yaml | 4 ++-- helm/charts/determined/values.yaml | 2 +- master/internal/config/resource_manager_config.go | 11 ----------- .../rm/kubernetesrm/kubernetes_resource_manager.go | 4 ---- 6 files changed, 6 insertions(+), 20 deletions(-) diff --git a/docs/reference/deploy/master-config-reference.rst b/docs/reference/deploy/master-config-reference.rst index 8f31fe679e9..b7184d1805c 100644 --- a/docs/reference/deploy/master-config-reference.rst +++ b/docs/reference/deploy/master-config-reference.rst @@ -376,7 +376,7 @@ on using Determined with Kubernetes, see the :ref:`documentation 0") } - var checkRMNamespace error - if len(k.DefaultNamespace) > 0 && len(k.Namespace) > 0 { - checkRMNamespace = errors.Errorf("Both ``namespace`` and ``default_namespace`` provided. " + - "Please provide only ``default_namespace`` as ``namespace`` has been deprecated.") - } else { - checkRMNamespace = nil - } - return []error{ checkSlotType, checkCPUResource, check.NotEmpty(k.ClusterName, "cluster_name is required"), - checkRMNamespace, } } diff --git a/master/internal/rm/kubernetesrm/kubernetes_resource_manager.go b/master/internal/rm/kubernetesrm/kubernetes_resource_manager.go index 51cfe2662f3..c89c9546a3d 100644 --- a/master/internal/rm/kubernetesrm/kubernetes_resource_manager.go +++ b/master/internal/rm/kubernetesrm/kubernetes_resource_manager.go @@ -86,10 +86,6 @@ func New( db: db, } - if len(k.config.Namespace) > 0 { - k.config.DefaultNamespace = k.config.Namespace - } - k.jobsService, err = newJobsService( k.config.DefaultNamespace, k.config.ClusterName,