-
Notifications
You must be signed in to change notification settings - Fork 789
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Creating dev env repo should come from GitHub, even with differe…
…nt target providers The default upstream boot config repo that's used as the basis for creating the dev env repo for a new cluster is, at least as of now, always on github.com, but `DuplicateGitRepoFromCommitish` only uses a single `GitProvider`, meaning that if you're using GitHub Enterprise, or Gitlab, etc, the attempt to get information needed about the upstream repo in order to create the dev env repo tries to look for the upstream repo's org/name in the provider that will have the dev env repo in it. Which is bad. So instead, let's check if the provider we'll be creating in is not github.com and the upstream boot config repo we're going to use as the basis for the dev env repo *is* on github.com, and if so, use a different provider to get the required information. fixes #6315 Signed-off-by: Andrew Bayer <[email protected]>
- Loading branch information
1 parent
654f3c4
commit fdb7576
Showing
5 changed files
with
187 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters