Skip to content

Commit db8cbf6

Browse files
authored
Add get_namespace to GKEPodHook (#31397)
In next major release of CNCF this method will be used by KPO instead of _get_namespace so best to add it to GKE as soon as possible.
1 parent 955e949 commit db8cbf6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

β€Žairflow/providers/google/cloud/hooks/kubernetes_engine.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,9 @@ def core_v1_client(self) -> client.CoreV1Api:
373373
def is_in_cluster(self) -> bool:
374374
return False
375375

376+
def get_namespace(self):
377+
"""Get the namespace configured by the Airflow connection."""
378+
376379
def _get_namespace(self):
377380
"""Implemented for compatibility with KubernetesHook. Deprecated; do not use."""
378381

0 commit comments

Comments
 (0)