Retrieve kubeconfig from gitlab api
What does this MR do and why?
In gitlab-ci.yml by default each jobs will download the artifacts from all the previous stages or download the artifacts from the jobs in needs: . In our case the only relevant file that we want to pass from one job to another is the kubeconfig.
This MR remove the downloading of the artifacts and use gitlap api instead to download only the kubeconfig file
another option is to delete the artifact at the begin of the job: !2098 (closed)
As this feature can be useful in other places, I've created a function for it. As we start to have multiple functions I've create an umbrella reference to import all of them. Keeping the function in separate reference allow to override them one by one if needed
Related reference(s)
Test coverage
Edited by Loic Nicolle