Skip to content

Commit

Permalink
Call IsUp to validate cluster after creating it
Browse files Browse the repository at this point in the history
  • Loading branch information
rifelpet committed Oct 27, 2020
1 parent e503cc5 commit c8f2f8e
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion tests/e2e/kubetest2-kops/deployer/up.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,21 @@ func (d *deployer) Up() error {
cmd.SetEnv(d.env()...)

exec.InheritOutput(cmd)
return cmd.Run()
err = cmd.Run()
if err != nil {
return err
}

isUp, err := d.IsUp()
if err != nil {
return err
} else if isUp {
klog.V(1).Infof("cluster reported as up")
} else {
klog.Errorf("cluster reported as down")
}

return nil
}

func (d *deployer) IsUp() (bool, error) {
Expand Down

0 comments on commit c8f2f8e

Please sign in to comment.