mirror of https://github.com/k3s-io/k3s
parent
d1768cc8da
commit
057d78e471
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue