Skip to main content

Class: KubernetesResource

Defined in: kubernetesResourceInfo.d.ts:5

Represents a Kubernetes API resource, such as Pod, Deployment, Service, etc. It contains the API version, kind, and whether the resource is namespaced.

Constructors

Constructor

new KubernetesResource(
apiVersion,
kind,
isNamespaced): KubernetesResource;

Defined in: kubernetesResourceInfo.d.ts:6

Parameters

ParameterType
apiVersionstring
kindstring
isNamespacedboolean

Returns

KubernetesResource

Properties

PropertyTypeDescriptionDefined in
apiVersionstringThe API version of the resource, e.g. "v1", "apps/v1".kubernetesResourceInfo.d.ts:9
isNamespacedbooleanIndicates whether the resource is namespaced (true) or cluster-scoped (false).kubernetesResourceInfo.d.ts:15
kindstringThe kind of the resource, e.g. "Pod", "Deployment".kubernetesResourceInfo.d.ts:12