Skip to content

Commit

Permalink
Merge pull request #2762 from FabianKramm/main
Browse files Browse the repository at this point in the history
fix: nil pointer in ensure namespace
  • Loading branch information
FabianKramm authored Dec 1, 2023
2 parents 6c1e41e + 712a513 commit ebf5fd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/devspace/pipeline/pipeline.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit ebf5fd2

Please sign in to comment.