瀏覽代碼

add custom repo support to preview environments

Alexander Belanger 4 年之前
父節點
當前提交
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)