Describe¶
Describing resources present in the cluster can help understand what happened and troubleshoot test failures.
Configuration¶
Reference documentation
- The full structure of the
Describe
resource is documented here.
Deprecated syntax
You can specify the resource
directly instead of using apiVersion
and kind
.
This is a deprecated syntax though and will be removed in a future version.
Clustered resources¶
When used with a clustered resource, the namespace
is ignored and is not added to the corresponding kubectl
command.
All namespaces¶
When used with a namespaced resource, it is possible to consider all namespaces in the cluster by setting namespace: '*'
.
Usage examples¶
Describe pods¶
If a name
is specified, Chainsaw will describe resources that have a name starting with the provided name
in the test namespace (or in the cluster if it is a clustered-level resource).
Describe pods in the test namespace
If a namespace
is specified, Chainsaw will describe resources in the specified namespace.
Describe pods in a specific namespace
Label selector¶
An optional label selector can be configured to refine the resources to be described.
Describe pods using a label selector in the test namespace
If a namespace
is specified, Chainsaw will describe resources in the specified namespace.
Describe pods using a label selector in a specific namespace
Show events¶
The showEvents
field can be used to enable or disable showing events when describing resources.
Default
By default, showEvents
is true
.