瀏覽代碼

added comment

Stefan McShane 3 年之前
父節點
當前提交
6bb56c1081
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      cli/cmd/preview/utils.go

+ 1 - 0
cli/cmd/preview/utils.go

@@ -207,6 +207,7 @@ func DefaultPreviewEnvironmentNamespace(branch, owner, name string) string {
 // getNamespace does a best-guess effort to find the namespace for the preview environment target.
 // It currently relies on only environment variables, but will need refactored in future
 // if we choose to support non-environment based directives such as cmd flags or porter.yaml values
+// PORTER_NAMESPACE gets set in the `porter apply` pre-apply step for DeploymentHooks
 func getNamespace() string {
 	if ns, ok := os.LookupEnv("PORTER_NAMESPACE"); ok {
 		return ns