only hardcode SYSTEM_NAMESPACE if not set (#1655)

This commit is contained in:
Ville Aikas 2020-08-27 13:32:06 -07:00 committed by GitHub
parent 34838c4559
commit 67d950c438
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -23,5 +23,8 @@ import (
)
func init() {
if ns := os.Getenv(system.NamespaceEnvKey); ns != "" {
return
}
os.Setenv(system.NamespaceEnvKey, "knative-testing")
}