Class: CustomResourceDefinition
Extends
Constructors
new CustomResourceDefinition()
new CustomResourceDefinition(json: KubeCRD, cluster?: string): CustomResourceDefinition
Parameters
| Parameter | Type | 
|---|---|
| json | KubeCRD | 
| cluster? | string | 
Returns
Inherited from
Defined in
Properties
| Property | Modifier | Type | Default value | Description | Overrides | Inherited from | Defined in | 
|---|---|---|---|---|---|---|---|
| _clusterName | public | string | undefined | - | - | KubeObject._clusterName | src/lib/k8s/KubeObject.ts:50 | 
| jsonData | public | KubeCRD | undefined | - | - | KubeObject.jsonData | src/lib/k8s/KubeObject.ts:47 | 
| _internalApiEndpoint? | static | ApiClient<KubeObjectInterface> |ApiWithNamespaceClient<KubeObjectInterface> | undefined | - | - | KubeObject._internalApiEndpoint | src/lib/k8s/KubeObject.ts:64 | 
| apiName | static | string | 'customresourcedefinitions' | Name of the resource, plural, used in API | KubeObject.apiName | - | src/lib/k8s/crd.ts:69 | 
| apiVersion | static | string[] | undefined | Group and version of the resource formatted as "GROUP/VERSION", e.g. "policy.k8s.io/v1". | KubeObject.apiVersion | - | src/lib/k8s/crd.ts:70 | 
| isNamespaced | static | boolean | false | Whether the object is namespaced. | KubeObject.isNamespaced | - | src/lib/k8s/crd.ts:71 | 
| kind | static | string | 'CustomResourceDefinition' | The kind of the object. Corresponding to the resource kind in Kubernetes. | KubeObject.kind | - | src/lib/k8s/crd.ts:68 | 
| readOnlyFields | static | string[] | undefined | Readonly field defined as JSONPath paths | KubeObject.readOnlyFields | - | src/lib/k8s/crd.ts:73 | 
Accessors
cluster
get cluster(): string
set cluster(cluster: string): void
Parameters
| Parameter | Type | 
|---|---|
| cluster | string |