Package io.fabric8.kubernetes.client.dsl
Interface MetadataListable
-
- All Known Subinterfaces:
AnyNamespaceOperation<T,L,R>,FilterWatchListDeletable<T,L,R>,MixedOperation<T,L,R>,NonNamespaceOperation<T,L,R>,ParameterMixedOperation<T,L,R>
public interface MetadataListableProvides operations to list resources with server-side content negotiation returning only resource metadata (omitting spec and status), which significantly reduces response sizes when only metadata is needed.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PartialObjectMetadataListlistAsPartialObjectMetadata()List resources returning only their metadata (no spec or status).PartialObjectMetadataListlistAsPartialObjectMetadata(ListOptions options)List resources returning only their metadata (no spec or status), with the given options.
-
-
-
Method Detail
-
listAsPartialObjectMetadata
PartialObjectMetadataList listAsPartialObjectMetadata()
List resources returning only their metadata (no spec or status). Sends a multi-value Accept header with v1, v1beta1, and plain JSON fallbacks (matching kubectl behavior) so aggregated apiservers fall back gracefully.- Returns:
- a
PartialObjectMetadataListcontaining only resource metadata
-
listAsPartialObjectMetadata
PartialObjectMetadataList listAsPartialObjectMetadata(ListOptions options)
List resources returning only their metadata (no spec or status), with the given options. Sends a multi-value Accept header with v1, v1beta1, and plain JSON fallbacks (matching kubectl behavior) so aggregated apiservers fall back gracefully.- Parameters:
options- list options (label selectors, field selectors, pagination, etc.)- Returns:
- a
PartialObjectMetadataListcontaining only resource metadata
-
-