Skip to content

# Namespace: K8sApi

Renderer.K8sApi

## Table of contents

### Enumerations

- KubeObjectStatusLevel

### Classes

- CRDResourceStore
- CRDStore
- ClusterRole
- ClusterRoleBinding
- ConfigMap
- ConfigMapsStore
- CronJob
- CronJobStore
- CustomResourceDefinition
- DaemonSet
- DaemonSetStore
- Deployment
- DeploymentApi
- DeploymentStore
- Endpoint
- EndpointStore
- EventStore
- HPAStore
- HorizontalPodAutoscaler
- Ingress
- IngressApi
- IngressStore
- Job
- JobStore
- KubeApi
- KubeEvent
- KubeObject
- KubeObjectStore
- LimitRange
- LimitRangesStore
- Namespace
- NamespaceStore
- NetworkPolicy
- NetworkPolicyStore
- Node
- NodesApi
- NodesStore
- PersistentVolume
- PersistentVolumeClaim
- PersistentVolumeClaimsApi
- PersistentVolumesStore
- Pod
- PodDisruptionBudget
- PodDisruptionBudgetsStore
- PodsApi
- PodsStore
- ReplicaSet
- ReplicaSetStore
- ResourceQuota
- ResourceQuotasStore
- ResourceStack
- Role
- RoleBinding
- RoleBindingsStore
- RolesStore
- Secret
- SecretsStore
- Service
- ServiceAccount
- ServiceAccountsStore
- ServiceStore
- StatefulSet
- StatefulSetStore
- StorageClass
- StorageClassStore
- VolumeClaimStore

### Interfaces

- IKubeApiCluster
- IPodContainer
- IPodContainerStatus
- ISecretRef

### Type aliases

- KubeObjectStatus

### Variables

- apiManager
- clusterRoleApi
- clusterRoleBindingApi
- configMapApi
- crdApi
- cronJobApi
- daemonSetApi
- deploymentApi
- endpointApi
- eventApi
- hpaApi
- ingressApi
- jobApi
- limitRangeApi
- namespacesApi
- networkPolicyApi
- nodesApi
- pdbApi
- persistentVolumeApi
- podsApi
- pvcApi
- replicaSetApi
- resourceQuotaApi
- roleApi
- roleBindingApi
- secretsApi
- serviceAccountsApi
- serviceApi
- statefulSetApi
- storageClassApi

### Functions

- forCluster
- isAllowedResource

## Type aliases

### KubeObjectStatus

Ƭ KubeObjectStatus: `Object`

Copyright (c) 2021 OpenLens Authors

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

#### Type declaration

Name | Type
--- | ---
`level` | KubeObjectStatusLevel
`text` | `string`
`timestamp?` | `string`

## Variables

### apiManager

• `Const` apiManager: `ApiManager`

### clusterRoleApi

• `Const` clusterRoleApi: KubeApi<ClusterRole>

### clusterRoleBindingApi

• `Const` clusterRoleBindingApi: KubeApi<ClusterRoleBinding>

### configMapApi

• `Const` configMapApi: KubeApi<ConfigMap>

### crdApi

• `Const` crdApi: KubeApi<CustomResourceDefinition>

### cronJobApi

• `Const` cronJobApi: `CronJobApi`

### daemonSetApi

• `Const` daemonSetApi: KubeApi<DaemonSet>

### deploymentApi

• `Const` deploymentApi: DeploymentApi

### endpointApi

• `Const` endpointApi: KubeApi<Endpoint>

### eventApi

• `Const` eventApi: KubeApi<KubeEvent>

### hpaApi

• `Const` hpaApi: KubeApi<HorizontalPodAutoscaler>

### ingressApi

• `Const` ingressApi: IngressApi

### jobApi

• `Const` jobApi: KubeApi<Job>

### limitRangeApi

• `Const` limitRangeApi: KubeApi<LimitRange>

### namespacesApi

• `Const` namespacesApi: KubeApi<Namespace>

### networkPolicyApi

• `Const` networkPolicyApi: KubeApi<NetworkPolicy>

### nodesApi

• `Const` nodesApi: NodesApi

### pdbApi

• `Const` pdbApi: KubeApi<PodDisruptionBudget>

### persistentVolumeApi

• `Const` persistentVolumeApi: KubeApi<PersistentVolume>

### podsApi

• `Const` podsApi: PodsApi

### pvcApi

• `Const` pvcApi: PersistentVolumeClaimsApi

### replicaSetApi

• `Const` replicaSetApi: `ReplicaSetApi`

### resourceQuotaApi

• `Const` resourceQuotaApi: KubeApi<ResourceQuota>

### roleApi

• `Const` roleApi: KubeApi<Role>

### roleBindingApi

• `Const` roleBindingApi: KubeApi<RoleBinding>

### secretsApi

• `Const` secretsApi: KubeApi<Secret>

### serviceAccountsApi

• `Const` serviceAccountsApi: KubeApi<ServiceAccount>

### serviceApi

• `Const` serviceApi: KubeApi<Service>

### statefulSetApi

• `Const` statefulSetApi: `StatefulSetApi`

### storageClassApi

• `Const` storageClassApi: KubeApi<StorageClass>

## Functions

### forCluster

▸ forCluster<T>(`cluster`, `kubeClass`): KubeApi<T>

#### Type parameters

Name | Type
--- | ---
`T` | `T`: KubeObject<IKubeObjectMetadata, any, any, T>

#### Parameters

Name | Type
--- | ---
`cluster` | IKubeApiCluster
`kubeClass` | `IKubeObjectConstructor`<T>

#### Returns

KubeApi<T>

### isAllowedResource

▸ isAllowedResource(`resources`): `boolean`

#### Parameters

Name | Type
--- | ---
`resources` | `KubeResource` | `KubeResource`[]

#### Returns

`boolean`