Skip to content

Commit

Permalink
Add get_namespace to GKEPodHook (#31397)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
dstandish committed May 18, 2023
1 parent 955e949 commit db8cbf6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions airflow/providers/google/cloud/hooks/kubernetes_engine.py
Expand Up @@ -373,6 +373,9 @@ def core_v1_client(self) -> client.CoreV1Api:
def is_in_cluster(self) -> bool:
return False

def get_namespace(self):
"""Get the namespace configured by the Airflow connection."""

def _get_namespace(self):
"""Implemented for compatibility with KubernetesHook. Deprecated; do not use."""

Expand Down

0 comments on commit db8cbf6

Please sign in to comment.