From bca2ae7285ddcee0f0aebc0b41b7ea2e1443f01f Mon Sep 17 00:00:00 2001 From: Shubhag Saxena Date: Tue, 9 Jul 2024 05:52:42 +0530 Subject: [PATCH] Add analyzer to check for default storage class (#4733) --- pkg/supportbundle/defaultspec/spec.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkg/supportbundle/defaultspec/spec.yaml b/pkg/supportbundle/defaultspec/spec.yaml index e671b4b930..a016ccdf74 100644 --- a/pkg/supportbundle/defaultspec/spec.yaml +++ b/pkg/supportbundle/defaultspec/spec.yaml @@ -282,3 +282,10 @@ spec: - fail: when: "!= Healthy" # Catch all unhealthy pods. A pod is considered healthy if it has a status of Completed, or Running and all of its containers are ready. message: A Contour pod, {{ .Name }}, is unhealthy with a status of {{ .Status.Reason }}. Restarting the pod may fix the issue. + - storageClass: + checkName: Check for default storage class + outcomes: + - fail: + message: No default storage class found + - pass: + message: Default storage class found