mirror of
https://github.com/fluxcd/flux2.git
synced 2026-04-29 06:38:50 +00:00
make tests for notifications provider agnostic
Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com>
This commit is contained in:
parent
7c1b897919
commit
e63ddb99de
18 changed files with 515 additions and 287 deletions
|
|
@ -381,12 +381,12 @@ func pushImagesFromURL(repoURL, imgURL string, tags []string) error {
|
|||
return nil
|
||||
}
|
||||
|
||||
func getTransportURL(repoCfg repoConfig) string {
|
||||
func getTransportURL(urls gitUrl) string {
|
||||
if cfg.defaultGitTransport == git.SSH {
|
||||
return repoCfg.ssh
|
||||
return urls.ssh
|
||||
}
|
||||
|
||||
return repoCfg.http
|
||||
return urls.http
|
||||
}
|
||||
|
||||
func authOpts(repoURL string, authData map[string][]byte) (*git.AuthOptions, error) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue