Project: Headlamp (Observability and Analysis / Observability)
File: lib_k8s_podDisruptionBudget.PDB.md

title: "Class: PDB" linkTitle: "PDB" slug: "libk8spodDisruptionBudget.PDB" .PDB `any` `PDB` new PDB(`json`) | Name | Type | | : | : | | `json` | | makeKubeObject<KubePDB\>('podDisruptionBudget').constructor `Static` apiEndpoint: `Object` | Name | Type | | : | : | | `scale?` | { `get`: (`namespace`: `string`, `name`: `string`, `clusterName?`: `string`) => `Promise`<`any`\> ; `put`: (`body`: { `metadata`: ; `spec`: { `replicas`: `number` } }, `clusterName?`: `string`) => `Promise`<`any`\> } | | `scale.get` | (`namespace`: `string`, `name`: `string`, `clusterName?`: `string`) => `Promise`<`any`\> | | `scale.put` | (`body`: { `metadata`: ; `spec`: { `replicas`: `number` } }, `clusterName?`: `string`) => `Promise`<`any`\> | _ `Static` className: `string` makeKubeObject<KubePDB\>('podDisruptionBudget').className `get` selectors(): `string`[] `string`[] _ `get` spec(): `Object` `Object` | Name | Type | | : | : | | `maxUnavailable?` | `number` | | `minAvailable?` | `number` | | `selector` | { `matchExpressions?`: { `key`: `string` ; `operator`: `string` ; `values`: `string`[] } ; `matchLabels`: { `[key: string]`: `string`; } } | | `selector.matchExpressions?` | { `key`: `string` ; `operator`: `string` ; `values`: `string`[] } | | `selector.matchExpressions.key` | `string` | | `selector.matchExpressions.operator` | `string` | | `selector.matchExpressions.values` | `string`[] | | `selector.matchLabels` | { `[key: string]`: `string`; } | _ `get` status(): `Object` `Object` | Name | Type | | : | : | | `conditions` | { `lastTransitionTime`: `string` ; `message`: `string` ; `observedGeneration`: `number` ; `reason`: `string` ; `status`: `string` ; `type`: `string` }[] | | `currentHealthy` | `number` | | `desiredHealthy` | `number` | | `disruptedPods?` | { `[key: string]`: `string`; } | | `disruptionsAllowed` | `number` | | `expectedPods` | `number` | | `observedGeneration` | `number` | `Static` apiList(`onList`, `onError?`, `opts?`): `any` | Name | Type | | : | : | | `onList` | (`arg`: `any`[]) => `void` | | `onError?` | (`err`: ) => `void` | | `opts?` | | `any` makeKubeObject<KubePDB\>('podDisruptionBudget').apiList _ `Static` `Optional` getAuthorization(`arg`, `resourceAttrs?`): `any` | Name | Type | | : | : | | `arg` | `string` | | `resourceAttrs?` | | `any` makeKubeObject<KubePDB\>('podDisruptionBudget').getAuthorization _ `Static` getErrorMessage(`err?`): ``null`` \| `string` | Name | Type | | : | : | | `err?` | ``null`` \| | ``null`` \| `string` makeKubeObject<KubePDB\>('podDisruptionBudget').getErrorMessage _ `Static` useApiGet(`onGet`, `name`, `namespace?`, `onError?`): `void` | Name | Type | | : | : | | `onGet` | (...`args`: `any`) => `void` | | `name` | `string` | | `namespace?` | `string` | | `onError?` | (`err`: ) => `void` | `void` makeKubeObject<KubePDB\>('podDisruptionBudget').useApiGet _ `Static` useApiList(`onList`, `onError?`, `opts?`): `any` | Name | Type | | : | : | | `onList` | (`arg`: `any`[]) => `void` | | `onError?` | (`err`: ) => `void` | | `opts?` | | `any` makeKubeObject<KubePDB\>('podDisruptionBudget').useApiList _ `Static` useGet(`name`, `namespace?`): , (`item`: `any`) => `void`, (`err`: ``null`` \| ) => `void`] | Name | Type | | : | : | | `name` | `string` | | `namespace?` | `string` | , (`item`: `any`) => `void`, (`err`: ``null`` \| ) => `void`] makeKubeObject<KubePDB\>('podDisruptionBudget').useGet _ `Static` useList(`opts?`): , (`items`: `any`) => `void`] | Name | Type | | : | : | | `opts?` | | , (`items`: `any`) => `void`] makeKubeObject<KubePDB\>('podDisruptionBudget').useList