Wait 20 min for cluster validation

This commit is contained in:
Ciprian Hacman 2023-09-24 02:09:02 +02:00
parent 4945a8ea0c
commit 98f8ab7828
1 changed files with 2 additions and 8 deletions

View File

@ -261,14 +261,8 @@ func (d *deployer) updateCluster(yes bool) error {
func (d *deployer) IsUp() (bool, error) { func (d *deployer) IsUp() (bool, error) {
wait := d.ValidationWait wait := d.ValidationWait
if wait == 0 { if wait == 0 {
if d.TerraformVersion != "" || d.CloudProvider == "digitalocean" { // kOps is more likely to hit negative TTLs for API DNS during validation.
// `--target terraform` doesn't precreate the API DNS records,
// so kops is more likely to hit negative TTLs during validation.
// Digital Ocean also occasionally takes longer to validate.
wait = time.Duration(20) * time.Minute wait = time.Duration(20) * time.Minute
} else {
wait = time.Duration(15) * time.Minute
}
} }
args := []string{ args := []string{
d.KopsBinaryPath, "validate", "cluster", d.KopsBinaryPath, "validate", "cluster",