Merge pull request #12270 from hakman/break_for_non-placeholder_ip

Try to bootstrap when at least one IP is available
This commit is contained in:
Kubernetes Prow Robot 2021-09-04 10:19:20 -07:00 committed by GitHub
commit 943c40bf38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -168,7 +168,9 @@ func (b *KopsBootstrapClient) QueryBootstrap(ctx context.Context, req *nodeup.Bo
return nil, err
} else {
for _, ip := range ips {
if ip.String() == cloudup.PlaceholderIP {
if ip.String() != cloudup.PlaceholderIP {
break
} else {
return nil, fi.NewTryAgainLaterError(fmt.Sprintf("kops-controller DNS not setup yet (placeholder IP found: %v)", ips))
}
}