Skip to content

Commit

Permalink
Update utils.go (#965)
Browse files Browse the repository at this point in the history
  • Loading branch information
zeoxisca authored Oct 27, 2023
1 parent 3522cb9 commit b234eb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ var TestEnvs = map[string]string{
}

// InContainer will be true if is inside container environment, such as docker
var InContainer = FileExists("/.dockerenv") || FileExists("/.containerenv")
var InContainer = FileExists("/.dockerenv") || FileExists("/.containerenv") || os.Getenv("KUBERNETES_SERVICE_HOST") != ""

// Noop does nothing
func Noop() {}
Expand Down

0 comments on commit b234eb0

Please sign in to comment.