Treat unset KUBERNETES_PROVIDER as gce.

Should fix jenkins failure.
pull/6/head
Eric Tune 2014-11-18 10:13:45 -08:00
parent d1768cc8da
commit 057d78e471
1 changed files with 3 additions and 4 deletions

View File

@ -172,14 +172,13 @@ func TestPodUpdate(c *client.Client) bool {
// TestKubeletSendsEvent checks that kubelets and scheduler send events about pods scheduling and running.
func TestKubeletSendsEvent(c *client.Client) bool {
provider := os.Getenv("KUBERNETES_PROVIDER")
if provider == "" {
glog.Errorf("unable to detect cloud type.")
return false
}
if provider != "gce" {
glog.Infof("skipping TestKubeletSendsEvent on cloud provider %s", provider)
return true
}
if provider == "" {
glog.Info("KUBERNETES_PROVIDER is unset assuming \"gce\"")
}
podClient := c.Pods(api.NamespaceDefault)