Skip to content

Commit

Permalink
adding logs for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
smritidahal653 committed Jan 24, 2024
1 parent e06fdf7 commit cf93e09
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions e2e/confidential_container_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,16 @@ func TestPodWithInitConfidentialContainer(t *testing.T) {
cmd = kubectl("get", "--raw", "/apis/metrics.k8s.io/v1beta1/namespaces/vk-test/pods/confidential-container-sevsnp")
out, err := cmd.CombinedOutput()
if time.Now().After(deadline) {
t.Log("ACI Pod logs:")
c := kubectl("logs", "-l", "app=aci-connector-linux", "--namespace=kube-system", "--tail=20")
l, _ := c.CombinedOutput()
t.Log(string(l))

t.Log("Confidential Container Pod logs:")
c = kubectl("logs", "confidential-container-sevsnp", "--namespace=vk-test", "--tail=20")
l, _ = c.CombinedOutput()
t.Log(string(l))

t.Fatal("failed to query pod's stats from metrics server API")
}
if err == nil {
Expand Down

0 comments on commit cf93e09

Please sign in to comment.