Skip to content

Commit db3a0e0

Browse files
authored
Check if explicit kubernetes namespace is used (#1805)
1 parent 179f892 commit db3a0e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/driver/kubernetes/driver.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ func NewKubernetesDriver(workspaceInfo *provider2.AgentWorkspaceInfo, log log.Lo
3030
return nil, fmt.Errorf("failed to create kubernetes client: %w", err)
3131
}
3232
// Namespace can be defined in many ways, we first check the kube config, then the provider options KUBERNETES_NAMESPACE, then failing that the default "devpod"
33-
if namespace == "" || namespace == "default" || options.KubernetesNamespace != "devpod" {
33+
if namespace == "" || namespace == "default" || options.KubernetesNamespace != "" {
3434
log.Debugf("Using Explicit Kubernetes Namespace")
3535
namespace = options.KubernetesNamespace
3636
}

0 commit comments

Comments
 (0)