Class: Lease
Defined in: lib/k8s/lease.ts:31
Extends
Constructors
Constructor
new Lease(json: KubeLease, cluster?: string): Lease;
Defined in: lib/k8s/KubeObject.ts:109
Parameters
| Parameter | Type |
|---|---|
json | KubeLease |
cluster? | string |
Returns
Lease
Inherited from
Properties
| Property | Modifier | Type | Default value | Description | Overrides | Inherited from | Defined in |
|---|---|---|---|---|---|---|---|
_clusterName | public | string | undefined | - | - | KubeObject._clusterName | lib/k8s/KubeObject.ts:59 |
jsonData | public | KubeLease | undefined | - | - | KubeObject.jsonData | lib/k8s/KubeObject.ts:56 |
_internalApiEndpoint? | static | | ApiClient<KubeObjectInterface> | ApiWithNamespaceClient<KubeObjectInterface> | undefined | - | - | KubeObject._internalApiEndpoint | lib/k8s/KubeObject.ts:76 |
apiName | static | string | 'leases' | Name of the resource, plural, used in API | KubeObject.apiName | - | lib/k8s/lease.ts:33 |
apiVersion | static | string | 'coordination.k8s.io/v1' | Group and version of the resource formatted as "GROUP/VERSION", e.g. "policy.k8s.io/v1". | KubeObject.apiVersion | - | lib/k8s/lease.ts:34 |
isNamespaced | static | boolean | true | Whether the object is namespaced. | KubeObject.isNamespaced | - | lib/k8s/lease.ts:35 |
isScalable | readonly | boolean | undefined | Whether the object is scalable, and should have a ScaleButton | - | KubeObject.isScalable | lib/k8s/KubeObject.ts:74 |
kind | static | string | 'Lease' | The kind of the object. Corresponding to the resource kind in Kubernetes. | KubeObject.kind | - | lib/k8s/lease.ts:32 |
readOnlyFields | static | string[] | [] | Readonly field defined as JSONPath paths | - | KubeObject.readOnlyFields | lib/k8s/KubeObject.ts:58 |
Accessors
cluster
Get Signature
get cluster(): string;
Defined in: lib/k8s/KubeObject.ts:114
Returns
string
Set Signature
set cluster(cluster: string): void;
Defined in: lib/k8s/KubeObject.ts:118
Parameters
| Parameter | Type |
|---|---|
cluster | string |
Returns
void
Inherited from
detailsRoute
Get Signature
get detailsRoute(): string;
Defined in: lib/k8s/KubeObject.ts:126
Returns
string
Inherited from
isNamespaced
Get Signature
get isNamespaced(): boolean;
Defined in: lib/k8s/KubeObject.ts:235
Returns
boolean
Inherited from
isScalable
Get Signature
get isScalable(): boolean;
Defined in: lib/k8s/KubeObject.ts:239
Returns
boolean
Inherited from
kind
Get Signature
get kind(): any;
Defined in: lib/k8s/KubeObject.ts:189
Returns
any
Inherited from
listRoute
Get Signature
get listRoute(): string;
Defined in: lib/k8s/KubeObject.ts:181
Returns
string
Inherited from
metadata
Get Signature
get metadata(): KubeMetadata;
Defined in: lib/k8s/KubeObject.ts:231
Returns
Inherited from
pluralName
Get Signature
get pluralName(): string;
Defined in: lib/k8s/KubeObject.ts:176
Returns
string
Inherited from
spec
Get Signature
get spec(): LeaseSpec;
Defined in: lib/k8s/lease.ts:48
Returns
apiEndpoint
Get Signature
get static apiEndpoint():
| ApiClient<KubeObjectInterface>
| ApiWithNamespaceClient<KubeObjectInterface>;
Defined in: lib/k8s/KubeObject.ts:78
Returns
| ApiClient<KubeObjectInterface>
| ApiWithNamespaceClient<KubeObjectInterface>
Set Signature
set static apiEndpoint(endpoint:
| ApiClient<KubeObjectInterface>
| ApiWithNamespaceClient<KubeObjectInterface>): void;
Defined in: lib/k8s/KubeObject.ts:105
Parameters
| Parameter | Type |
|---|---|
endpoint | | ApiClient<KubeObjectInterface> | ApiWithNamespaceClient<KubeObjectInterface> |
Returns
void
Inherited from
apiGroupName
Get Signature
get static apiGroupName(): string | undefined;
Defined in: lib/k8s/KubeObject.ts:142
Get name of the API group of this resource for example will return batch for CronJob
For core group, like Pods, it will return undefined
API group reference https://kubernetes.io/docs/reference/using-api/#api-groups
Returns
string | undefined
Inherited from
className
Get Signature
get static className(): string;
Defined in: lib/k8s/KubeObject.ts:122
Returns
string
Inherited from
detailsRoute
Get Signature
get static detailsRoute(): string;
Defined in: lib/k8s/KubeObject.ts:130
Returns
string