Remove CertificateDirectory global
What does this MR do?
Use normal fields to hold certificate directory rather than the package-level var.
Why was this MR needed?
- The package-level var was initialized in an
init()in another package. This is very fragile due to howinit()executions are ordered. - It's much simpler to just have normal local variables rather than globals.
What's the best way to test this MR?
Tests in CI?
What are the relevant issue numbers?
Relates to Implement Runner job proxying (gitlab-org/cluster-integration/gitlab-agent#771 - closed).