mirror of
https://github.com/fluxcd/flux2.git
synced 2025-10-29 07:19:07 +08:00
make tests for notifications provider agnostic
Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com>
This commit is contained in:
committed by
Sunny
parent
7c1b897919
commit
e63ddb99de
@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user