romsharon98 commented on code in PR #39325: URL: https://github.com/apache/airflow/pull/39325#discussion_r1586029052
########## airflow/providers/cncf/kubernetes/operators/pod.py: ########## @@ -98,6 +99,12 @@ KUBE_CONFIG_ENV_VAR = "KUBECONFIG" +def check_exception_is_kubernetes_api_unauthorized(exc: BaseException): + return ( + isinstance(exc, kubernetes.client.exceptions.ApiException) and exc.status and str(exc.status) == "401" + ) Review Comment: a nitpicking can you add please a return type too? -- 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. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
