Skip to content

Commit

Permalink
Merge pull request kosmos-io#308 from ONE7live/main
Browse files Browse the repository at this point in the history
fix: Single cluster network check problem
  • Loading branch information
kosmos-robot authored Nov 29, 2023
2 parents 56f1258 + bb29eb9 commit ac00d7e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions pkg/kosmosctl/floater/check.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,13 @@ func (o *CommandCheckOptions) Complete() error {
}
o.SrcFloater = srcFloater

dstFloater := NewCheckFloater(o, true)
if err := dstFloater.completeFromKubeConfigPath(o.DstKubeConfig); err != nil {
return err
if o.DstKubeConfig != "" {
dstFloater := NewCheckFloater(o, true)
if err := dstFloater.completeFromKubeConfigPath(o.DstKubeConfig); err != nil {
return err
}
o.DstFloater = dstFloater
}
o.DstFloater = dstFloater

return nil
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/kosmosctl/floater/floater.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ func (f *Floater) applyDaemonSet() error {

floaterLabel := map[string]string{"app": f.Name}
if err = util.WaitPodReady(f.Client, f.Namespace, util.MapToString(floaterLabel), f.PodWaitTime); err != nil {
return err
klog.Warningf("exist cluster node startup floater timeout, error: %v", err)
}

return nil
Expand Down

0 comments on commit ac00d7e

Please sign in to comment.