Skip to content

Commit

Permalink
Treat unset KUBERNETES_PROVIDER as gce.
Browse files Browse the repository at this point in the history
Should fix jenkins failure.
  • Loading branch information
erictune committed Nov 18, 2014
1 parent d1768cc commit 057d78e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions cmd/e2e/e2e.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 057d78e

Please sign in to comment.