Ver código fonte

add custom repo support to preview environments

Alexander Belanger 4 anos atrás
pai
commit
9c4f90b1d5
1 arquivos alterados com 8 adições e 0 exclusões
  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)