diff --git a/controllers/imageupdateautomation_controller.go b/controllers/imageupdateautomation_controller.go index 03fbbb32..e47cfe9b 100644 --- a/controllers/imageupdateautomation_controller.go +++ b/controllers/imageupdateautomation_controller.go @@ -647,6 +647,9 @@ func fetch(ctx context.Context, path string, branch string, access repoAccess) e []string{refspec}, &libgit2.FetchOptions{ RemoteCallbacks: access.remoteCallbacks(ctx), + ProxyOptions: libgit2.ProxyOptions{ + Type: libgit2.ProxyTypeAuto, + }, }, "", ) if err != nil && libgit2.IsErrorCode(err, libgit2.ErrorCodeNotFound) { @@ -684,6 +687,9 @@ func push(ctx context.Context, path, branch string, access repoAccess) error { } err = origin.Push([]string{fmt.Sprintf("refs/heads/%s:refs/heads/%s", branch, branch)}, &libgit2.PushOptions{ RemoteCallbacks: callbacks, + ProxyOptions: libgit2.ProxyOptions{ + Type: libgit2.ProxyTypeAuto, + }, }) if err != nil { return libgit2PushError(err)