clean-up github release asset download code in github repository client's downloadFilesFromRelease
#7942
Labels
area/clusterctl
Issues or PRs related to clusterctl
kind/cleanup
Categorizes issue or PR as related to cleaning up code, process, or technical debt.
triage/accepted
Indicates an issue or PR is ready to be actively worked on.
Detailed Description:
The code to download a github release asset can be clean-up a bit.
Code:
cluster-api/cmd/clusterctl/client/repository/repository_github.go
Lines 379 to 405 in 62cd2b6
The above pice of code has sections in it that handle the
redirect
result returned byclient.Repositories.DownloadReleaseAsset()
. According to github documentation passing afollowRedirectsClient
(which we already do) should take care of redirects.This issue is to test that it is okay to drop the redirection handling logic and drop it if it is safe to do so.
Ref: #7453 (comment) for more context.
/kind cleanup
/area clusterctl
[One or more /area label. See https://github.com/kubernetes-sigs/cluster-api/labels?q=area for the list of labels]
The text was updated successfully, but these errors were encountered: