def METHOD_NAME(k8s_client: CoreV1Api) -> str:
    """
    Query all namespaces of a given cluster to find the airflow sql proxy pod
    based on the composer / airflow naming pattern. Note: The sql proxy pod
    can be listed under the default namespace and not necessarily under the
    airflow namespace itself in the GKE cluster.
    """
    pods = k8s_client.list_pod_for_all_namespaces()
    sql_proxy_pod_pattern = r'airflow-sqlproxy-([A-Za-z0-9]+)-([A-Za-z0-9]+)'
    for pod in pods.items:
        if re.match(sql_proxy_pod_pattern, pod.metadata.name):
            return pod.status.pod_ip
    raise ValueError('Airflow SQL proxy pod not found')