mirror of
https://github.com/cloudnativelabs/kube-router.git
synced 2025-10-18 05:11:06 +02:00
* Use libnetwork/ipvs alternative * PR image tag simplification * Remove nested vendor directories
11 lines
290 B
Go
11 lines
290 B
Go
package testutils
|
|
|
|
import "flag"
|
|
|
|
var runningInContainer = flag.Bool("incontainer", false, "Indicates if the test is running in a container")
|
|
|
|
// IsRunningInContainer returns whether the test is running inside a container.
|
|
func IsRunningInContainer() bool {
|
|
return (*runningInContainer)
|
|
}
|