Explorar el Código

added comment

Stefan McShane hace 3 años
padre
commit
6bb56c1081
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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.
 // 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
 // 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
 // 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 {
 func getNamespace() string {
 	if ns, ok := os.LookupEnv("PORTER_NAMESPACE"); ok {
 	if ns, ok := os.LookupEnv("PORTER_NAMESPACE"); ok {
 		return ns
 		return ns