Merge pull request #2407 from lonelyCZ/pr-fix-agent
Fix it occur error when `karmada-agent` is restarted
This commit is contained in:
commit
15a2fbc403
|
@ -145,7 +145,7 @@ func run(ctx context.Context, karmadaConfig karmadactl.KarmadaConfig, opts *opti
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
if !ok {
|
if !ok && opts.ClusterName != name {
|
||||||
return fmt.Errorf("the same cluster has been registered with name %s", name)
|
return fmt.Errorf("the same cluster has been registered with name %s", name)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue