Skip to content

Commit

Permalink
Fix wrong restconfig reference when using a bootstrap kubeconfig (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
nitrocb authored Sep 10, 2024
1 parent 2d6f64e commit 49fbe45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/client/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ func (g *Getter) getAndBootstrapConfigIfNecessary(ctx context.Context, o *GetCon
return nil, nil, fmt.Errorf("error loading bootstrap kubeconfig: %w", err)
}
if bootstrapCfg != nil {
cfg.Dial = dialFunc
bootstrapCfg.Dial = dialFunc
}

if cfg == nil && bootstrapCfg == nil {
Expand Down

0 comments on commit 49fbe45

Please sign in to comment.