Skip to main content

Class: PDB

Extends

  • any

Constructors

new PDB()

new PDB(json: KubePDB): PDB

Parameters

ParameterType
jsonKubePDB

Returns

PDB

Inherited from

makeKubeObject<KubePDB>('podDisruptionBudget').constructor

Defined in

src/lib/k8s/cluster.ts:337

Properties

PropertyModifierTypeInherited fromDefined in
apiEndpointstaticApiWithNamespaceClient<KubeObjectInterface>-src/lib/k8s/podDisruptionBudget.ts:40
apiListstatic(onList: (arg: any[]) => void, onError?: (err: ApiError) => void, opts?: ApiListSingleNamespaceOptions) => anymakeKubeObject<KubePDB>('podDisruptionBudget').apiListsrc/lib/k8s/cluster.ts:311
classNamestaticstringmakeKubeObject<KubePDB>('podDisruptionBudget').classNamesrc/lib/k8s/cluster.ts:338
getAuthorization?static(arg: string, resourceAttrs?: AuthRequestResourceAttrs) => anymakeKubeObject<KubePDB>('podDisruptionBudget').getAuthorizationsrc/lib/k8s/cluster.ts:340
getErrorMessagestatic(err?: null | ApiError) => null | stringmakeKubeObject<KubePDB>('podDisruptionBudget').getErrorMessagesrc/lib/k8s/cluster.ts:336
useApiGetstatic(onGet: (...args: any) => void, name: string, namespace?: string, onError?: (err: ApiError) => void) => voidmakeKubeObject<KubePDB>('podDisruptionBudget').useApiGetsrc/lib/k8s/cluster.ts:321
useApiListstatic(onList: (arg: any[]) => void, onError?: (err: ApiError) => void, opts?: ApiListOptions) => anymakeKubeObject<KubePDB>('podDisruptionBudget').useApiListsrc/lib/k8s/cluster.ts:316
useGetstatic(name: string, namespace?: string, opts?: object) => [any, null | ApiError] & QueryResponse<any, ApiError>makeKubeObject<KubePDB>('podDisruptionBudget').useGetsrc/lib/k8s/cluster.ts:328

Accessors

selectors

get selectors(): string[]

Returns

string[]

Defined in

src/lib/k8s/podDisruptionBudget.ts:50


spec

get spec(): object

Returns

object

maxUnavailable?
optional maxUnavailable: number;
minAvailable?
optional minAvailable: number;
selector
selector: object;
selector.matchExpressions?
optional matchExpressions: object;
selector.matchExpressions.key
key: string;
selector.matchExpressions.operator
operator: string;
selector.matchExpressions.values
values: string[];
selector.matchLabels
matchLabels: object;
Index Signature

[key: string]: string

Defined in

src/lib/k8s/podDisruptionBudget.ts:42


status

get status(): object

Returns

object

conditions
conditions: object[];
currentHealthy
currentHealthy: number;
desiredHealthy
desiredHealthy: number;
disruptedPods?
optional disruptedPods: object;
Index Signature

[key: string]: string

disruptionsAllowed
disruptionsAllowed: number;
expectedPods
expectedPods: number;
observedGeneration
observedGeneration: number;

Defined in

src/lib/k8s/podDisruptionBudget.ts:46

Methods

useList()

static useList(options?: ApiListOptions): [null | any[], null | ApiError] & QueryListResponse<KubeList<any>, any, ApiError>

Parameters

ParameterType
options?ApiListOptions

Returns

[null | any[], null | ApiError] & QueryListResponse<KubeList<any>, any, ApiError>

Inherited from

makeKubeObject<KubePDB>('podDisruptionBudget').useList

Defined in

src/lib/k8s/cluster.ts:327