From 9574aef7e97236944dbf9a34ee8cffa84519da84 Mon Sep 17 00:00:00 2001 From: Erik Godding Boye Date: Mon, 16 Jan 2023 10:11:14 +0100 Subject: [PATCH 1/3] test(e2e): try out kuttl collectors --- .../scenario/vulnerability-overflow/00-assert.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/test/e2e/scenario/vulnerability-overflow/00-assert.yaml b/test/e2e/scenario/vulnerability-overflow/00-assert.yaml index 277ac03b..058a1e67 100644 --- a/test/e2e/scenario/vulnerability-overflow/00-assert.yaml +++ b/test/e2e/scenario/vulnerability-overflow/00-assert.yaml @@ -10,3 +10,15 @@ spec: status: vulnerabilitySummary: severityCount: {} +--- +apiVersion: kuttl.dev/v1beta1 +kind: TestAssert +collectors: + - type: events + namespace: image-scanner-jobs + - type: pod + namespace: image-scanner + pod: trivy-0 + - type: pod + namespace: image-scanner + selector: control-plane=image-scanner From b4876fd97ecaf2c1dd293d4ef26499b2227c6ff3 Mon Sep 17 00:00:00 2001 From: Erik Godding Boye Date: Mon, 16 Jan 2023 10:32:11 +0100 Subject: [PATCH 2/3] add descibe node Co-authored-by: Bendik Paulsrud --- test/e2e/scenario/vulnerability-overflow/00-assert.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/e2e/scenario/vulnerability-overflow/00-assert.yaml b/test/e2e/scenario/vulnerability-overflow/00-assert.yaml index 058a1e67..bc895490 100644 --- a/test/e2e/scenario/vulnerability-overflow/00-assert.yaml +++ b/test/e2e/scenario/vulnerability-overflow/00-assert.yaml @@ -22,3 +22,5 @@ collectors: - type: pod namespace: image-scanner selector: control-plane=image-scanner + - type: command + command: kubectl describe node From 27f659acd15176b238d7a88961f7ec96533dfd07 Mon Sep 17 00:00:00 2001 From: Erik Godding Boye Date: Mon, 16 Jan 2023 10:47:49 +0100 Subject: [PATCH 3/3] add disk debug Co-authored-by: Sunil Shivanand --- test/e2e/scenario/vulnerability-overflow/00-assert.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/e2e/scenario/vulnerability-overflow/00-assert.yaml b/test/e2e/scenario/vulnerability-overflow/00-assert.yaml index bc895490..9d972dce 100644 --- a/test/e2e/scenario/vulnerability-overflow/00-assert.yaml +++ b/test/e2e/scenario/vulnerability-overflow/00-assert.yaml @@ -14,6 +14,8 @@ status: apiVersion: kuttl.dev/v1beta1 kind: TestAssert collectors: + - type: command + command: df -h - type: events namespace: image-scanner-jobs - type: pod