Selaa lähdekoodia

Merge pull request #2576 from porter-dev/nafees/hotfix-preview-env

[hotfix] Fix porter env app
Mohammed Nafees 3 vuotta sitten
vanhempi
sitoutus
907742c0f8
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      cli/cmd/preview/utils.go

+ 2 - 2
cli/cmd/preview/utils.go

@@ -79,7 +79,7 @@ func GetSource(projectID uint, resourceName string, input map[string]interface{}
 
 		if err == nil {
 			output.SourceValues = values
-			output.IsApplication = output.Repo == "https://charts.getporter.dev"
+			output.IsApplication = true
 
 			return output, nil
 		}
@@ -106,7 +106,7 @@ func GetSource(projectID uint, resourceName string, input map[string]interface{}
 
 		if err == nil {
 			output.SourceValues = values
-			output.IsApplication = output.Repo == "https://charts.getporter.dev"
+			output.IsApplication = output.Repo == serverMetadata.DefaultAppHelmRepoURL || output.Repo == "https://charts.getporter.dev"
 
 			return output, nil
 		}