Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

Commit

Permalink
demo: use default namespace if unset (#4304)
Browse files Browse the repository at this point in the history
Uses the default namespaces if unset. This removes
the need for the environment variables in demo
manifests when using the defaults.

Signed-off-by: Shashank Ram <[email protected]>
  • Loading branch information
shashankram authored Oct 22, 2021
1 parent 31f70a9 commit 43cd0fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions demo/cmd/common/books.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ var (
maxIterationsStr = utils.GetEnv("CI_MAX_ITERATIONS_THRESHOLD", "0") // 0 for unlimited
bookstoreServiceName = utils.GetEnv("BOOKSTORE_SVC", "bookstore")
warehouseServiceName = utils.GetEnv("WAREHOUSE_SVC", "bookwarehouse")
bookstoreNamespace = os.Getenv(BookstoreNamespaceEnvVar)
bookwarehouseNamespace = os.Getenv(BookwarehouseNamespaceEnvVar)
bookstoreNamespace = utils.GetEnv(BookstoreNamespaceEnvVar, "bookstore")
bookwarehouseNamespace = utils.GetEnv(BookwarehouseNamespaceEnvVar, "bookwarehouse")

// Due to a limitation on kubernetes on Windows we need to use the FQDN
// otherwise DNS will not be able to resolve it.
Expand Down

0 comments on commit 43cd0fe

Please sign in to comment.