You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by di...@apache.org on 2020/06/15 17:29:57 UTC
[airflow] branch master updated: Get all pod logs on k8s launching
failure (#9317)
This is an automated email from the ASF dual-hosted git repository.
dimberman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/master by this push:
new 8b0073d Get all pod logs on k8s launching failure (#9317)
8b0073d is described below
commit 8b0073d8fba1fdfdec31b2df729c230ccafeef2a
Author: Daniel Imberman <da...@gmail.com>
AuthorDate: Mon Jun 15 10:29:28 2020 -0700
Get all pod logs on k8s launching failure (#9317)
Co-authored-by: Daniel Imberman <da...@astronomer.io>
---
scripts/ci/libraries/_kind.sh | 12 ++----------
1 file changed, 2 insertions(+), 10 deletions(-)
diff --git a/scripts/ci/libraries/_kind.sh b/scripts/ci/libraries/_kind.sh
index 487d6fa..b89ea90 100644
--- a/scripts/ci/libraries/_kind.sh
+++ b/scripts/ci/libraries/_kind.sh
@@ -379,16 +379,8 @@ function dump_kubernetes_logs() {
--cluster "${KUBECTL_CLUSTER_NAME}" | grep airflow | head -1)
echo "------- pod description -------"
kubectl describe pod "${POD}" --cluster "${KUBECTL_CLUSTER_NAME}"
- echo "------- webserver init container logs - init -------"
- kubectl logs "${POD}" -c init --cluster "${KUBECTL_CLUSTER_NAME}" || true
- if [[ "${KUBERNETES_MODE}" == "git" ]]; then
- echo "------- webserver init container logs - git-sync-clone -------"
- kubectl logs "${POD}" -c git-sync-clone --cluster "${KUBECTL_CLUSTER_NAME}" || true
- fi
- echo "------- webserver logs -------"
- kubectl logs "${POD}" -c webserver --cluster "${KUBECTL_CLUSTER_NAME}" || true
- echo "------- scheduler logs -------"
- kubectl logs "${POD}" -c scheduler --cluster "${KUBECTL_CLUSTER_NAME}" || true
+ echo "------- airflow pod logs -------"
+ kubectl logs "${POD}" --all-containers=true || true
echo "--------------"
}