diff --git a/.github/workflows/ci-test-ginkgo.yml b/.github/workflows/ci-test-ginkgo.yml index 53bf273d71..a3bc80c1a5 100644 --- a/.github/workflows/ci-test-ginkgo.yml +++ b/.github/workflows/ci-test-ginkgo.yml @@ -173,6 +173,11 @@ jobs: echo "Pod: $POD_NAME" echo "POD_NAME=$POD_NAME" >> $GITHUB_ENV + sleep 15 + + kubectl get pods -A + kubectl describe ns nginx + - name: Test KubeArmor using Ginkgo run: | go install -mod=mod github.com/onsi/ginkgo/v2/ginkgo diff --git a/tests/k8s_env/ksp/ksp_test.go b/tests/k8s_env/ksp/ksp_test.go index a172fcdfd2..4ae6bb8ec2 100644 --- a/tests/k8s_env/ksp/ksp_test.go +++ b/tests/k8s_env/ksp/ksp_test.go @@ -68,9 +68,10 @@ var _ = Describe("Ksp", func() { fmt.Printf(" No pods with label pre-run-pod-test=true found ") return } - + fmt.Println(pods) for _, item := range pods.Items { annotated := false + fmt.Printf("annotations: %s status= %s , condition: %s", item.Annotations, item.Status.Phase, &item.Status.Conditions) for key, value := range item.Annotations { fmt.Printf("K8sGetPods pod=%s ns=%s Annotation Key=%v value=%s", item.Name, "nginx", key, value) if key == "kubearmor-policy" {