Skip to content

Commit

Permalink
chore: logs error pod
Browse files Browse the repository at this point in the history
  • Loading branch information
JashBook committed Nov 28, 2024
1 parent d61e3dd commit ca3b0af
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/test-cloud-k3d-self.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,15 @@ jobs:
if [[ $check_status -eq 0 ]]; then
echo "KB Cloud is not ready"
installer_pods=$(kubectl get pods -n kb-cloud | grep "kb-cloud-installer" )
echo "installer pod: $installer_pods"
installer_pod_names="$(echo "${installer_pods}" | awk '{print $1}')"
for installer_pod_name in $(echo "${installer_pod_names}"); do
echo "==================== pod ${installer_pod_name} logs ===================="
kubectl logs -n kb-cloud ${installer_pod_name}
done
exit 1
fi
Expand Down Expand Up @@ -171,6 +180,15 @@ jobs:
if [[ $check_status -eq 0 ]]; then
echo "KB Cloud Env is not ready"
deployer_pods=$(kubectl get pods -n kb-system | grep "kb-cloud-deployer" )
echo "deployer pod: $deployer_pods"
deployer_pod_names="$(echo "${deployer_pods}" | awk '{print $1}')"
for deployer_pod_name in $(echo "${deployer_pod_names}"); do
echo "==================== pod ${deployer_pod_name} logs ===================="
kubectl logs -n kb-system ${deployer_pod_name}
done
exit 1
fi
Expand Down
18 changes: 18 additions & 0 deletions .github/workflows/test-cloud-k3d.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,15 @@ jobs:
if [[ $check_status -eq 0 ]]; then
echo "KB Cloud is not ready"
installer_pods=$(kubectl get pods -n kb-cloud | grep "kb-cloud-installer" )
echo "installer pod: $installer_pods"
installer_pod_names="$(echo "${installer_pods}" | awk '{print $1}')"
for installer_pod_name in $(echo "${installer_pod_names}"); do
echo "==================== pod ${installer_pod_name} logs ===================="
kubectl logs -n kb-cloud ${installer_pod_name}
done
exit 1
fi
Expand Down Expand Up @@ -175,6 +184,15 @@ jobs:
if [[ $check_status -eq 0 ]]; then
echo "KB Cloud Env is not ready"
deployer_pods=$(kubectl get pods -n kb-system | grep "kb-cloud-deployer" )
echo "deployer pod: $deployer_pods"
deployer_pod_names="$(echo "${deployer_pods}" | awk '{print $1}')"
for deployer_pod_name in $(echo "${deployer_pod_names}"); do
echo "==================== pod ${deployer_pod_name} logs ===================="
kubectl logs -n kb-system ${deployer_pod_name}
done
exit 1
fi

0 comments on commit ca3b0af

Please sign in to comment.