Skip to main content

Class: ReplicaSet

Extends

  • any

Constructors

new ReplicaSet()

new ReplicaSet(json: KubeReplicaSet): ReplicaSet

Parameters

ParameterType
jsonKubeReplicaSet

Returns

ReplicaSet

Inherited from

makeKubeObject<KubeReplicaSet>('ReplicaSet').constructor

Defined in

src/lib/k8s/cluster.ts:337

Properties

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

Accessors

spec

get spec(): object

Returns

object

minReadySeconds
minReadySeconds: number;
replicas
replicas: number;
selector
selector: LabelSelector;
template
template: object;
template.metadata?
optional metadata: KubeMetadata;
template.spec
spec: KubePodSpec;

Defined in

src/lib/k8s/replicaSet.ts:36


status

get status(): object

Returns

object

availableReplicas
availableReplicas: number;
conditions
conditions: Omit<KubeCondition, "lastProbeTime" | "lastUpdateTime">[];
fullyLabeledReplicas
fullyLabeledReplicas: number;
observedGeneration
observedGeneration: number;
readyReplicas
readyReplicas: number;
replicas
replicas: number;

Defined in

src/lib/k8s/replicaSet.ts:40

Methods

getContainers()

getContainers(): KubeContainer[]

Returns

KubeContainer[]

Defined in

src/lib/k8s/replicaSet.ts:44


getMatchLabelsList()

getMatchLabelsList(): string[]

Returns

string[]

Defined in

src/lib/k8s/replicaSet.ts:48


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<KubeReplicaSet>('ReplicaSet').useList

Defined in

src/lib/k8s/cluster.ts:327