mirror of https://github.com/kubernetes/kops.git
Merge pull request #12273 from hakman/break_for_non-placeholder_ip
Fix bootstrap when at least one IP is available
This commit is contained in:
commit
543e9c40e1
|
|
@ -166,14 +166,8 @@ func (b *KopsBootstrapClient) QueryBootstrap(ctx context.Context, req *nodeup.Bo
|
|||
return nil, fi.NewTryAgainLaterError(fmt.Sprintf("kops-controller DNS not setup yet (not found: %v)", dnsErr))
|
||||
}
|
||||
return nil, err
|
||||
} else {
|
||||
for _, ip := range ips {
|
||||
if ip.String() != cloudup.PlaceholderIP {
|
||||
break
|
||||
} else {
|
||||
return nil, fi.NewTryAgainLaterError(fmt.Sprintf("kops-controller DNS not setup yet (placeholder IP found: %v)", ips))
|
||||
}
|
||||
}
|
||||
} else if len(ips) == 1 && ips[0].String() == cloudup.PlaceholderIP {
|
||||
return nil, fi.NewTryAgainLaterError(fmt.Sprintf("kops-controller DNS not setup yet (placeholder IP found: %v)", ips))
|
||||
}
|
||||
|
||||
reqBytes, err := json.Marshal(req)
|
||||
|
|
|
|||
Loading…
Reference in New Issue