diff --git a/pkg/devspace/pipeline/pipeline.go b/pkg/devspace/pipeline/pipeline.go index 938206acb8..57f7392104 100644 --- a/pkg/devspace/pipeline/pipeline.go +++ b/pkg/devspace/pipeline/pipeline.go @@ -260,7 +260,7 @@ func (p *pipeline) StartNewDependencies(ctx devspacecontext.Context, dependencie func ensureNamespace(ctx devspacecontext.Context, namespace string) error { // If localregistry namespace is the same as devspace, we don't have // anything to do. - if namespace == ctx.KubeClient().Namespace() || namespace == "" { + if (ctx.KubeClient() != nil && namespace == ctx.KubeClient().Namespace()) || namespace == "" { ctx.Log().Debugf("Namespace %s is the default Devspace namespace", namespace) return nil }