Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for MESOS_CONTAINER_NAME (0.1 sec)

  1. cmd/update_test.go

    	}
    }
    
    // Tests if the environment we are running is in DCOS.
    func TestIsDCOS(t *testing.T) {
    	t.Setenv("MESOS_CONTAINER_NAME", "mesos-1111")
    	dcos := IsDCOS()
    	if !dcos {
    		t.Fatalf("Expected %t, got %t", true, dcos)
    	}
    	os.Unsetenv("MESOS_CONTAINER_NAME")
    	dcos = IsDCOS()
    	if dcos {
    		t.Fatalf("Expected %t, got %t", false, dcos)
    	}
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 14 17:11:51 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  2. cmd/update.go

    }
    
    // IsDCOS returns true if minio is running in DCOS.
    func IsDCOS() bool {
    	// http://mesos.apache.org/documentation/latest/docker-containerizer/
    	// Mesos docker containerizer sets this value
    	return env.Get("MESOS_CONTAINER_NAME", "") != ""
    }
    
    // IsKubernetes returns true if minio is running in kubernetes.
    func IsKubernetes() bool {
    	// Kubernetes env used to validate if we are
    	// indeed running inside a kubernetes pod
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 18.7K bytes
    - Viewed (0)
Back to top