Skip to content

[ST] Avoid disrupting error: the server doesn't have a resource type "certificate" messages #12778

@scholzj

Description

@scholzj

Currently, the ST logs seem to be full of error messages like this:

2026-05-29 12:31:45 [T-914] WARN  [LogCollector:570] Failed to list resources of type: certificate in Namespace: test-suite-namespace, due to: `kubectl --namespace test-suite-namespace get certificate -o jsonpath={range .items[*]}{.metadata.name} ` got status code 1 and stderr:
------
error: the server doesn't have a resource type "certificate"

------
and stdout:
------

------

They seem to come from the collection of resources at the end of each test, where it tries to collect certificates but CErt Manager is probably not installed. While they don't fail anything, they are pretty annoying when reading the ST logs and looking for problems as they are not really a problem perse. We should try to avoid these either by checking if the resource is present in the cluster or by suppressing the error for the certificate kind where it seems expected.

Metadata

Metadata

Assignees

No one assigned

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions