mirror of https://github.com/k3s-io/k3s
Merge pull request #2446 from erictune/secure_port_on
Treat unset KUBERNETES_PROVIDER as gce.pull/6/head
commit
218c5fb93c
|
@ -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