mirror of https://github.com/kubernetes/kops.git
Set validation interval only when higher than 10s
This commit is contained in:
parent
212f0e84aa
commit
b8a52fd36e
|
|
@ -292,9 +292,11 @@ func (d *deployer) IsUp() (bool, error) {
|
|||
d.KopsBinaryPath, "validate", "cluster",
|
||||
"--name", d.ClusterName,
|
||||
"--count", strconv.Itoa(d.ValidationCount),
|
||||
"--interval", d.ValidationInterval.String(),
|
||||
"--wait", wait.String(),
|
||||
}
|
||||
if d.ValidationInterval > 10*time.Second {
|
||||
args = append(args, "--interval", d.ValidationInterval.String())
|
||||
}
|
||||
klog.Info(strings.Join(args, " "))
|
||||
|
||||
cmd := exec.Command(args[0], args[1:]...)
|
||||
|
|
|
|||
Loading…
Reference in New Issue