New env var to control public IP detection
What does this MR do and why?
Directly related to (requested in review of) https://gitlab.com/gitlab-org/gitlab/-/merge_requests/93150. To recap:
gitlab-qa can be run in places other than CI that need to use an API to find the public IP address; this adds the environment variable QA_USE_PUBLIC_IP_API to allow that behavior to be explicitly requested, rather than just implicitly by detecting that the runtime env is CI.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.