nuclearpinguin commented on a change in pull request #7738: [AIRFLOW-7073]
GKEStartPodOperator always use user credentials
URL: https://github.com/apache/airflow/pull/7738#discussion_r393468067
##########
File path: airflow/utils/process_utils.py
##########
@@ -184,3 +185,26 @@ def kill_child_processes_by_pids(pids_to_kill: List[int],
timeout: int = 5) -> N
log.info("Killing child PID: %s", child.pid)
child.kill()
child.wait()
+
+
+@contextmanager
+def patch_environ(new_env_variables: Dict[str, str]):
Review comment:
We already have `temporary_environment_variable` in
`google.utils.credentials_provider`. Let's decide to use only one function.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services