From 08c52770a9eb86b305c58db10fc204c2f5183485 Mon Sep 17 00:00:00 2001 From: GraysonNull Date: Mon, 13 Jul 2020 22:06:37 +0000 Subject: [PATCH 1/3] fix invalid analyzer in sample support-bundle --- examples/support-bundle/sample-supportbundle.yaml | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/examples/support-bundle/sample-supportbundle.yaml b/examples/support-bundle/sample-supportbundle.yaml index 06f670413..6ba9f9e58 100644 --- a/examples/support-bundle/sample-supportbundle.yaml +++ b/examples/support-bundle/sample-supportbundle.yaml @@ -89,12 +89,4 @@ spec: when: "= 1" message: The API deployment has only a single ready replica. - pass: - message: There are multiple replicas of the API deployment ready. - - logs: - selector: - - app=example - - component=nginx - namespace: repl{{ Namespace }} - limits: - maxAge: 30d - maxLines: 10000 \ No newline at end of file + message: There are multiple replicas of the API deployment ready. \ No newline at end of file From a70843cd6947eb8aa13fdaed972c97178621d423 Mon Sep 17 00:00:00 2001 From: GraysonNull Date: Mon, 13 Jul 2020 22:07:37 +0000 Subject: [PATCH 2/3] add space --- examples/support-bundle/sample-supportbundle.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/support-bundle/sample-supportbundle.yaml b/examples/support-bundle/sample-supportbundle.yaml index 6ba9f9e58..92456e0af 100644 --- a/examples/support-bundle/sample-supportbundle.yaml +++ b/examples/support-bundle/sample-supportbundle.yaml @@ -89,4 +89,5 @@ spec: when: "= 1" message: The API deployment has only a single ready replica. - pass: - message: There are multiple replicas of the API deployment ready. \ No newline at end of file + message: There are multiple replicas of the API deployment ready. + \ No newline at end of file From cc9d3aedecade4f3ca7324855a44219edbb4d6c9 Mon Sep 17 00:00:00 2001 From: GraysonNull Date: Mon, 13 Jul 2020 22:26:17 +0000 Subject: [PATCH 3/3] move logs to collectors array --- examples/support-bundle/sample-supportbundle.yaml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/examples/support-bundle/sample-supportbundle.yaml b/examples/support-bundle/sample-supportbundle.yaml index 92456e0af..812a3619d 100644 --- a/examples/support-bundle/sample-supportbundle.yaml +++ b/examples/support-bundle/sample-supportbundle.yaml @@ -3,6 +3,15 @@ kind: SupportBundle metadata: name: example spec: + collectors: + - logs: + selector: + - app=example + - component=nginx + namespace: repl{{ Namespace }} + limits: + maxAge: 30d + maxLines: 10000 analyzers: - clusterVersion: outcomes: @@ -90,4 +99,3 @@ spec: message: The API deployment has only a single ready replica. - pass: message: There are multiple replicas of the API deployment ready. - \ No newline at end of file