Skip to content

Module: "renderer-api/k8s-api"#

Index#

Enumerations#

Classes#

Interfaces#

Type aliases#

Variables#

Functions#

Type aliases#

KubeObjectStatus#

Ƭ KubeObjectStatus: object

Defined in src/extensions/renderer-api/kube-object-status.ts:1

Type declaration:#

Variables#

Const apiManager#

apiManager: ApiManager‹› = new ApiManager()

Defined in src/renderer/api/api-manager.ts:64


Const clusterRoleApi#

clusterRoleApi: KubeApiClusterRole‹›› = new KubeApi({ objectConstructor: ClusterRole, })

Defined in src/renderer/api/endpoints/cluster-role.api.ts:12


Const clusterRoleBindingApi#

clusterRoleBindingApi: KubeApiClusterRoleBinding‹›› = new KubeApi({ objectConstructor: ClusterRoleBinding, })

Defined in src/renderer/api/endpoints/cluster-role-binding.api.ts:10


Const configMapApi#

configMapApi: KubeApiConfigMap‹›› = new KubeApi({ objectConstructor: ConfigMap, })

Defined in src/renderer/api/endpoints/configmap.api.ts:26


Const crdApi#

crdApi: KubeApiCustomResourceDefinition‹›› = new KubeApi({ objectConstructor: CustomResourceDefinition, checkPreferredVersion: true, })

Defined in src/renderer/api/endpoints/crd.api.ts:154


Const cronJobApi#

cronJobApi: CronJobApi‹› = new CronJobApi({ objectConstructor: CronJob, })

Defined in src/renderer/api/endpoints/cron-job.api.ts:131


Const daemonSetApi#

daemonSetApi: KubeApiDaemonSet‹›› = new KubeApi({ objectConstructor: DaemonSet, })

Defined in src/renderer/api/endpoints/daemon-set.api.ts:74


Const deploymentApi#

deploymentApi: DeploymentApi‹› = new DeploymentApi({ objectConstructor: Deployment, })

Defined in src/renderer/api/endpoints/deployment.api.ts:192


Const endpointApi#

endpointApi: KubeApiEndpoint‹›› = new KubeApi({ objectConstructor: Endpoint, })

Defined in src/renderer/api/endpoints/endpoint.api.ts:127


Const eventApi#

eventApi: KubeApiKubeEvent‹›› = new KubeApi({ objectConstructor: KubeEvent, })

Defined in src/renderer/api/endpoints/events.api.ts:59


Const hpaApi#

hpaApi: KubeApiHorizontalPodAutoscaler‹›› = new KubeApi({ objectConstructor: HorizontalPodAutoscaler, })

Defined in src/renderer/api/endpoints/hpa.api.ts:143


Const ingressApi#

ingressApi: IngressApi‹› = new IngressApi({ objectConstructor: Ingress, // Add fallback for Kubernetes <1.19 checkPreferredVersion: true, fallbackApiBases: ["/apis/extensions/v1beta1/ingresses"], logStuff: true } as any)

Defined in src/renderer/api/endpoints/ingress.api.ts:177


Const jobApi#

jobApi: KubeApiJob‹›› = new KubeApi({ objectConstructor: Job, })

Defined in src/renderer/api/endpoints/job.api.ts:110


Const limitRangeApi#

limitRangeApi: KubeApiLimitRange‹›› = new KubeApi({ objectConstructor: LimitRange, })

Defined in src/renderer/api/endpoints/limit-range.api.ts:55


Const namespacesApi#

namespacesApi: KubeApiNamespace‹›› = new KubeApi({ objectConstructor: Namespace, })

Defined in src/renderer/api/endpoints/namespaces.api.ts:25


Const networkPolicyApi#

networkPolicyApi: KubeApiNetworkPolicy‹›› = new KubeApi({ objectConstructor: NetworkPolicy, })

Defined in src/renderer/api/endpoints/network-policy.api.ts:71


Const nodesApi#

nodesApi: NodesApi‹› = new NodesApi({ objectConstructor: Node, })

Defined in src/renderer/api/endpoints/nodes.api.ts:169


Const pdbApi#

pdbApi: KubeApiPodDisruptionBudget‹›› = new KubeApi({ objectConstructor: PodDisruptionBudget, })

Defined in src/renderer/api/endpoints/poddisruptionbudget.api.ts:47


Const persistentVolumeApi#

persistentVolumeApi: KubeApiPersistentVolume‹›› = new KubeApi({ objectConstructor: PersistentVolume, })

Defined in src/renderer/api/endpoints/persistent-volume.api.ts:79


Const podsApi#

podsApi: PodsApi‹› = new PodsApi({ objectConstructor: Pod, })

Defined in src/renderer/api/endpoints/pods.api.ts:469


Const pvcApi#

pvcApi: PersistentVolumeClaimsApi‹› = new PersistentVolumeClaimsApi({ objectConstructor: PersistentVolumeClaim, })

Defined in src/renderer/api/endpoints/persistent-volume-claims.api.ts:90


Const replicaSetApi#

replicaSetApi: ReplicaSetApi‹› = new ReplicaSetApi({ objectConstructor: ReplicaSet, })

Defined in src/renderer/api/endpoints/replica-set.api.ts:83


Const resourceQuotaApi#

resourceQuotaApi: KubeApiResourceQuota‹›› = new KubeApi({ objectConstructor: ResourceQuota, })

Defined in src/renderer/api/endpoints/resource-quota.api.ts:66


Const roleApi#

roleApi: KubeApiRole‹›› = new KubeApi({ objectConstructor: Role, })

Defined in src/renderer/api/endpoints/role.api.ts:21


Const roleBindingApi#

roleBindingApi: KubeApiRoleBinding‹›› = new KubeApi({ objectConstructor: RoleBinding, })

Defined in src/renderer/api/endpoints/role-binding.api.ts:34


Const secretsApi#

secretsApi: KubeApiSecret‹›› = new KubeApi({ objectConstructor: Secret, })

Defined in src/renderer/api/endpoints/secret.api.ts:48


Const serviceAccountsApi#

serviceAccountsApi: KubeApiServiceAccount‹›› = new KubeApi({ objectConstructor: ServiceAccount, })

Defined in src/renderer/api/endpoints/service-accounts.api.ts:27


Const serviceApi#

serviceApi: KubeApiService‹›› = new KubeApi({ objectConstructor: Service, })

Defined in src/renderer/api/endpoints/service.api.ts:101


Const statefulSetApi#

statefulSetApi: StatefulSetApi‹› = new StatefulSetApi({ objectConstructor: StatefulSet, })

Defined in src/renderer/api/endpoints/stateful-set.api.ts:110


Const storageClassApi#

storageClassApi: KubeApiStorageClass‹›› = new KubeApi({ objectConstructor: StorageClass, })

Defined in src/renderer/api/endpoints/storage-class.api.ts:37

Functions#

forCluster#

forClusterT›(cluster: IKubeApiCluster, kubeClass: IKubeObjectConstructor‹T›): KubeApi‹T›

Defined in src/renderer/api/kube-api.ts:74

Type parameters:

T: KubeObject

Parameters:

Name Type
cluster IKubeApiCluster
kubeClass IKubeObjectConstructor‹T›

Returns: KubeApi‹T›


isAllowedResource#

isAllowedResource(resources: KubeResource | KubeResource[]): boolean

Defined in src/common/rbac.ts:44

Parameters:

Name Type
resources KubeResource | KubeResource[]

Returns: boolean