Skip to content

Commit

Permalink
fix: nil pointer in ensure namespace
Browse files Browse the repository at this point in the history
Signed-off-by: Fabian Kramm <[email protected]>
  • Loading branch information
FabianKramm committed Dec 1, 2023
1 parent 6c1e41e commit 712a513
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 712a513

Please sign in to comment.