Skip to content

Commit 1d97022

Browse files
committed
fix: handle lazy init correctly
Signed-off-by: Calum Murray <[email protected]>
1 parent 2c9fd82 commit 1d97022

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/kubernetes/cluster.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ func (k *kubeConfigClusterProvider) GetClusters(ctx context.Context) ([]string,
8989

9090
func (k *kubeConfigClusterProvider) GetClusterManager(ctx context.Context, cluster string) (*Manager, error) {
9191
m, ok := k.managers[cluster]
92-
if ok {
92+
if ok && m != nil {
9393
return m, nil
9494
}
9595

0 commit comments

Comments
 (0)