Просмотр исходного кода

add custom repo support to preview environments

Alexander Belanger 4 лет назад
Родитель
Сommit
9c4f90b1d5
1 измененных файлов с 8 добавлено и 0 удалено
  1. 8 0
      cli/cmd/apply.go

+ 8 - 0
cli/cmd/apply.go

@@ -634,6 +634,14 @@ func getSource(input map[string]interface{}, output *Source) error {
 		}
 
 		return fmt.Errorf("source does not exist in any repo")
+	} else {
+		// we look in the passed-in repo
+		values, err := existsInRepo(output.Name, output.Version, output.Repo)
+
+		if err == nil {
+			output.SourceValues = values
+			return nil
+		}
 	}
 
 	return fmt.Errorf("source '%s' does not exist in repo '%s'", output.Name, output.Repo)