mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
chore: extract kube-api from core
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
1 parent
a22229ba60
commit
1ab5323f68
216 files changed
+1776
-1537
No files matched your search
+1
-1
@@ -6,7 +6,7 @@ import { getInjectable } from "@ogre-tools/injectable";
|
||||
import { reaction } from "mobx";
|
||||
import { customResourceDefinitionApiInjectionToken } from "../../../common/k8s-api/api-manager/crd-api-token";
|
||||
import type { CustomResourceDefinition } from "@k8slens/kube-object";
|
||||
import { KubeApi } from "../../../common/k8s-api/kube-api";
|
||||
import { KubeApi } from "@k8slens/kube-api";
|
||||
import { KubeObject } from "@k8slens/kube-object";
|
||||
import maybeKubeApiInjectable from "../../../common/k8s-api/maybe-kube-api.injectable";
|
||||
import { loggerInjectionToken } from "@k8slens/logger";
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@
|
||||
import { getInjectable } from "@ogre-tools/injectable";
|
||||
import autoRegistrationEmitterInjectable from "../../../common/k8s-api/api-manager/auto-registration-emitter.injectable";
|
||||
import apiManagerInjectable from "../../../common/k8s-api/api-manager/manager.injectable";
|
||||
import type { KubeApi } from "../../../common/k8s-api/kube-api";
|
||||
import type { KubeApi } from "@k8slens/kube-api";
|
||||
import { beforeClusterFrameStartsSecondInjectionToken } from "../tokens";
|
||||
|
||||
const setupAutoRegistrationInjectable = getInjectable({
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*/
|
||||
|
||||
import { KubeObjectStore } from "../../../common/k8s-api/kube-object.store";
|
||||
import type { ClusterApi } from "../../../common/k8s-api/endpoints";
|
||||
import type { ClusterApi } from "@k8slens/kube-api";
|
||||
import type { Cluster } from "@k8slens/kube-object";
|
||||
|
||||
export class ClusterStore extends KubeObjectStore<Cluster, ClusterApi> {
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*/
|
||||
|
||||
import { KubeObjectStore } from "../../../common/k8s-api/kube-object.store";
|
||||
import type { HorizontalPodAutoscalerApi } from "../../../common/k8s-api/endpoints/horizontal-pod-autoscaler.api";
|
||||
import type { HorizontalPodAutoscalerApi } from "@k8slens/kube-api";
|
||||
import type { HorizontalPodAutoscaler } from "@k8slens/kube-object";
|
||||
|
||||
export class HorizontalPodAutoscalerStore extends KubeObjectStore<HorizontalPodAutoscaler, HorizontalPodAutoscalerApi> {
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*/
|
||||
|
||||
import { KubeObjectStore } from "../../../common/k8s-api/kube-object.store";
|
||||
import type { LeaseApi } from "../../../common/k8s-api/endpoints/lease.api";
|
||||
import type { LeaseApi } from "@k8slens/kube-api";
|
||||
import type { Lease } from "@k8slens/kube-object";
|
||||
|
||||
export class LeaseStore extends KubeObjectStore<Lease, LeaseApi> {
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*/
|
||||
|
||||
import { KubeObjectStore } from "../../../common/k8s-api/kube-object.store";
|
||||
import type { LimitRangeApi } from "../../../common/k8s-api/endpoints/limit-range.api";
|
||||
import type { LimitRangeApi } from "@k8slens/kube-api";
|
||||
import type { LimitRange } from "@k8slens/kube-object";
|
||||
|
||||
export class LimitRangeStore extends KubeObjectStore<LimitRange, LimitRangeApi> {
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
import { KubeObjectStore } from "../../../common/k8s-api/kube-object.store";
|
||||
import type { ConfigMap, ConfigMapData } from "@k8slens/kube-object";
|
||||
import type { ConfigMapApi } from "../../../common/k8s-api/endpoints";
|
||||
import type { ConfigMapApi } from "@k8slens/kube-api";
|
||||
|
||||
export class ConfigMapStore extends KubeObjectStore<ConfigMap, ConfigMapApi, ConfigMapData> {
|
||||
}
|
||||
+1
-1
@@ -3,7 +3,7 @@
|
||||
* Licensed under MIT License. See LICENSE in root directory for more information.
|
||||
*/
|
||||
import type { MutatingWebhookConfiguration } from "@k8slens/kube-object";
|
||||
import type { MutatingWebhookConfigurationApi } from "../../../common/k8s-api/endpoints";
|
||||
import type { MutatingWebhookConfigurationApi } from "@k8slens/kube-api";
|
||||
import { KubeObjectStore } from "../../../common/k8s-api/kube-object.store";
|
||||
|
||||
export class MutatingWebhookConfigurationStore extends KubeObjectStore<MutatingWebhookConfiguration, MutatingWebhookConfigurationApi> {
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*/
|
||||
|
||||
import { KubeObjectStore } from "../../../common/k8s-api/kube-object.store";
|
||||
import type { PodDisruptionBudgetApi } from "../../../common/k8s-api/endpoints/pod-disruption-budget.api";
|
||||
import type { PodDisruptionBudgetApi } from "@k8slens/kube-api";
|
||||
import type { PodDisruptionBudget } from "@k8slens/kube-object";
|
||||
|
||||
export class PodDisruptionBudgetStore extends KubeObjectStore<PodDisruptionBudget, PodDisruptionBudgetApi> {
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*/
|
||||
|
||||
import { KubeObjectStore } from "../../../common/k8s-api/kube-object.store";
|
||||
import type { PriorityClassApi } from "../../../common/k8s-api/endpoints/priority-class.api";
|
||||
import type { PriorityClassApi } from "@k8slens/kube-api";
|
||||
import type { PriorityClass } from "@k8slens/kube-object";
|
||||
|
||||
export class PriorityClassStore extends KubeObjectStore<PriorityClass, PriorityClassApi> {
|
||||
|
||||
@@ -15,7 +15,7 @@ import { Wizard, WizardStep } from "../../wizard";
|
||||
import { Input } from "../../input";
|
||||
import { systemName } from "../../input/input_validators";
|
||||
import type { ResourceQuotaValues } from "@k8slens/kube-object";
|
||||
import type { ResourceQuotaApi } from "../../../../common/k8s-api/endpoints";
|
||||
import type { ResourceQuotaApi } from "@k8slens/kube-api";
|
||||
import { Select } from "../../select";
|
||||
import { Icon } from "../../icon";
|
||||
import { Button } from "@k8slens/button";
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*/
|
||||
|
||||
import { KubeObjectStore } from "../../../common/k8s-api/kube-object.store";
|
||||
import type { ResourceQuotaApi } from "../../../common/k8s-api/endpoints/resource-quota.api";
|
||||
import type { ResourceQuotaApi } from "@k8slens/kube-api";
|
||||
import type { ResourceQuota } from "@k8slens/kube-object";
|
||||
|
||||
export class ResourceQuotaStore extends KubeObjectStore<ResourceQuota, ResourceQuotaApi> {
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*/
|
||||
|
||||
import { KubeObjectStore } from "../../../common/k8s-api/kube-object.store";
|
||||
import type { RuntimeClassApi } from "../../../common/k8s-api/endpoints/runtime-class.api";
|
||||
import type { RuntimeClassApi } from "@k8slens/kube-api";
|
||||
import type { RuntimeClass } from "@k8slens/kube-object";
|
||||
|
||||
export class RuntimeClassStore extends KubeObjectStore<RuntimeClass, RuntimeClassApi> {
|
||||
|
||||
@@ -14,7 +14,7 @@ import { Dialog } from "../../dialog";
|
||||
import { Wizard, WizardStep } from "../../wizard";
|
||||
import { Input } from "../../input";
|
||||
import { systemName } from "../../input/input_validators";
|
||||
import type { SecretApi } from "../../../../common/k8s-api/endpoints";
|
||||
import type { SecretApi } from "@k8slens/kube-api";
|
||||
import { reverseSecretTypeMap, SecretType } from "@k8slens/kube-object";
|
||||
import { SubTitle } from "../../layout/sub-title";
|
||||
import { NamespaceSelect } from "../../namespaces/namespace-select";
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*/
|
||||
|
||||
import { KubeObjectStore } from "../../../common/k8s-api/kube-object.store";
|
||||
import type { SecretApi } from "../../../common/k8s-api/endpoints";
|
||||
import type { SecretApi } from "@k8slens/kube-api";
|
||||
import type { Secret, SecretData } from "@k8slens/kube-object";
|
||||
|
||||
export class SecretStore extends KubeObjectStore<Secret, SecretApi, SecretData> {
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@
|
||||
* Licensed under MIT License. See LICENSE in root directory for more information.
|
||||
*/
|
||||
import type { ValidatingWebhookConfiguration } from "@k8slens/kube-object";
|
||||
import type { ValidatingWebhookConfigurationApi } from "../../../common/k8s-api/endpoints";
|
||||
import type { ValidatingWebhookConfigurationApi } from "@k8slens/kube-api";
|
||||
import { KubeObjectStore } from "../../../common/k8s-api/kube-object.store";
|
||||
|
||||
export class ValidatingWebhookConfigurationStore extends KubeObjectStore<ValidatingWebhookConfiguration, ValidatingWebhookConfigurationApi> {
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*/
|
||||
|
||||
import { KubeObjectStore } from "../../../common/k8s-api/kube-object.store";
|
||||
import type { VerticalPodAutoscalerApi } from "../../../common/k8s-api/endpoints/vertical-pod-autoscaler.api";
|
||||
import type { VerticalPodAutoscalerApi } from "@k8slens/kube-api";
|
||||
import type { VerticalPodAutoscaler } from "@k8slens/kube-object";
|
||||
|
||||
export class VerticalPodAutoscalerStore extends KubeObjectStore<VerticalPodAutoscaler, VerticalPodAutoscalerApi> {
|
||||
|
||||
@@ -8,7 +8,7 @@ import type { KubeObjectStoreDependencies, KubeObjectStoreOptions } from "../../
|
||||
import { KubeObjectStore } from "../../../common/k8s-api/kube-object.store";
|
||||
import type { CustomResourceDefinition, KubeObject } from "@k8slens/kube-object";
|
||||
import autoBind from "auto-bind";
|
||||
import type { CustomResourceDefinitionApi } from "../../../common/k8s-api/endpoints";
|
||||
import type { CustomResourceDefinitionApi } from "@k8slens/kube-api";
|
||||
|
||||
export class CustomResourceDefinitionStore extends KubeObjectStore<CustomResourceDefinition, CustomResourceDefinitionApi> {
|
||||
constructor(
|
||||
|
||||
+1
-1
@@ -19,7 +19,7 @@ import type { ShowNotification } from "../../../notifications";
|
||||
import showSuccessNotificationInjectable from "../../../notifications/show-success-notification.injectable";
|
||||
import React from "react";
|
||||
import showErrorNotificationInjectable from "../../../notifications/show-error-notification.injectable";
|
||||
import { createKubeApiURL, parseKubeApi } from "../../../../../common/k8s-api/kube-api-parse";
|
||||
import { createKubeApiURL, parseKubeApi } from "@k8slens/kube-api";
|
||||
|
||||
const editResourceModelInjectable = getInjectable({
|
||||
id: "edit-resource-model",
|
||||
|
||||
+1
-1
@@ -8,7 +8,7 @@ import { KubeObject } from "@k8slens/kube-object";
|
||||
import type { AsyncResult } from "@k8slens/utilities";
|
||||
import { getErrorMessage } from "../../../../../common/utils/get-error-message";
|
||||
import type { Writable } from "type-fest";
|
||||
import { parseKubeApi } from "../../../../../common/k8s-api/kube-api-parse";
|
||||
import { parseKubeApi } from "@k8slens/kube-api";
|
||||
import apiKubeGetInjectable from "../../../../k8s/api-kube-get.injectable";
|
||||
|
||||
export type RequestKubeResource = (selfLink: string) => AsyncResult<KubeObject | undefined>;
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@ import { getInjectable } from "@ogre-tools/injectable";
|
||||
import type { AsyncResult } from "@k8slens/utilities";
|
||||
import type { JsonPatch } from "../../../../../common/k8s-api/kube-object.store";
|
||||
import { getErrorMessage } from "../../../../../common/utils/get-error-message";
|
||||
import { patchTypeHeaders } from "../../../../../common/k8s-api/kube-api";
|
||||
import { patchTypeHeaders } from "@k8slens/kube-api";
|
||||
import apiKubePatchInjectable from "../../../../k8s/api-kube-patch.injectable";
|
||||
|
||||
export type RequestPatchKubeResource = (selfLink: string, patch: JsonPatch) => AsyncResult<{ name: string; kind: string }>;
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
import { getInjectable } from "@ogre-tools/injectable";
|
||||
import type { PodLogsQuery } from "@k8slens/kube-object";
|
||||
import podApiInjectable from "../../../../common/k8s-api/endpoints/pod.api.injectable";
|
||||
import type { ResourceDescriptor } from "../../../../common/k8s-api/kube-api";
|
||||
import type { ResourceDescriptor } from "@k8slens/kube-api";
|
||||
|
||||
export type CallForLogs = (params: ResourceDescriptor, query?: PodLogsQuery) => Promise<string>;
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*/
|
||||
import { getInjectable } from "@ogre-tools/injectable";
|
||||
import type { PodLogsQuery } from "@k8slens/kube-object";
|
||||
import type { ResourceDescriptor } from "../../../../common/k8s-api/kube-api";
|
||||
import type { ResourceDescriptor } from "@k8slens/kube-api";
|
||||
import { loggerInjectionToken } from "@k8slens/logger";
|
||||
import openSaveFileDialogInjectable from "../../../utils/save-file.injectable";
|
||||
import showErrorNotificationInjectable from "../../notifications/show-error-notification.injectable";
|
||||
|
||||
@@ -13,7 +13,7 @@ import assert from "assert";
|
||||
import type { GetPodById } from "../../workloads-pods/get-pod-by-id.injectable";
|
||||
import type { GetPodsByOwnerId } from "../../workloads-pods/get-pods-by-owner-id.injectable";
|
||||
import type { LoadLogs } from "./load-logs.injectable";
|
||||
import type { ResourceDescriptor } from "../../../../common/k8s-api/kube-api";
|
||||
import type { ResourceDescriptor } from "@k8slens/kube-api";
|
||||
|
||||
export interface LogTabViewModelDependencies {
|
||||
getLogs: (tabId: TabId) => string[];
|
||||
|
||||
@@ -31,7 +31,7 @@ import eventStoreInjectable from "./store.injectable";
|
||||
import type { GetDetailsUrl } from "../kube-detail-params/get-details-url.injectable";
|
||||
import getDetailsUrlInjectable from "../kube-detail-params/get-details-url.injectable";
|
||||
import { NamespaceSelectBadge } from "../namespaces/namespace-select-badge";
|
||||
import type { KubeEventApi } from "../../../common/k8s-api/endpoints";
|
||||
import type { KubeEventApi } from "@k8slens/kube-api";
|
||||
|
||||
enum columnId {
|
||||
message = "message",
|
||||
|
||||
@@ -11,7 +11,7 @@ import type { KubeEvent, KubeObject } from "@k8slens/kube-object";
|
||||
import { Pod } from "@k8slens/kube-object";
|
||||
import type { GetPodById } from "../workloads-pods/get-pod-by-id.injectable";
|
||||
import autoBind from "auto-bind";
|
||||
import type { KubeEventApi } from "../../../common/k8s-api/endpoints";
|
||||
import type { KubeEventApi } from "@k8slens/kube-api";
|
||||
|
||||
export interface EventStoreDependencies extends KubeObjectStoreDependencies {
|
||||
getPodById: GetPodById;
|
||||
|
||||
+1
-1
@@ -21,7 +21,7 @@ import { TooltipPosition } from "@k8slens/tooltip";
|
||||
import { withInjectables } from "@ogre-tools/injectable-react";
|
||||
import clusterFrameContextForNamespacedResourcesInjectable from "../../cluster-frame-context/for-namespaced-resources.injectable";
|
||||
import type { SubscribableStore, SubscribeStores } from "../../kube-watch-api/kube-watch-api";
|
||||
import type { KubeApi } from "../../../common/k8s-api/kube-api";
|
||||
import type { KubeApi } from "@k8slens/kube-api";
|
||||
import subscribeStoresInjectable from "../../kube-watch-api/subscribe-stores.injectable";
|
||||
import type { PageParam } from "../../navigation/page-param";
|
||||
import type { ToggleKubeDetailsPane } from "../kube-detail-params/toggle-details.injectable";
|
||||
|
||||
@@ -19,7 +19,7 @@ import { withInjectables } from "@ogre-tools/injectable-react";
|
||||
import getDetailsUrlInjectable from "../kube-detail-params/get-details-url.injectable";
|
||||
import apiManagerInjectable from "../../../common/k8s-api/api-manager/manager.injectable";
|
||||
import { loggerInjectionToken } from "@k8slens/logger";
|
||||
import type { NamespaceApi } from "../../../common/k8s-api/endpoints";
|
||||
import type { NamespaceApi } from "@k8slens/kube-api";
|
||||
import namespaceApiInjectable from "../../../common/k8s-api/endpoints/namespace.api.injectable";
|
||||
|
||||
export interface KubeObjectMetaProps {
|
||||
|
||||
@@ -9,7 +9,7 @@ import type { StorageLayer } from "../../utils/storage-helper";
|
||||
import { noop, toggle } from "@k8slens/utilities";
|
||||
import type { KubeObjectStoreDependencies, KubeObjectStoreLoadingParams } from "../../../common/k8s-api/kube-object.store";
|
||||
import { KubeObjectStore } from "../../../common/k8s-api/kube-object.store";
|
||||
import type { NamespaceApi } from "../../../common/k8s-api/endpoints/namespace.api";
|
||||
import type { NamespaceApi } from "@k8slens/kube-api";
|
||||
import { Namespace } from "@k8slens/kube-object";
|
||||
import autoBind from "auto-bind";
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*/
|
||||
|
||||
import type { Endpoints, EndpointsData } from "@k8slens/kube-object";
|
||||
import type { EndpointsApi } from "../../../common/k8s-api/endpoints";
|
||||
import type { EndpointsApi } from "@k8slens/kube-api";
|
||||
import { KubeObjectStore } from "../../../common/k8s-api/kube-object.store";
|
||||
|
||||
export class EndpointsStore extends KubeObjectStore<Endpoints, EndpointsApi, EndpointsData> {
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
* Licensed under MIT License. See LICENSE in root directory for more information.
|
||||
*/
|
||||
import { KubeObjectStore } from "../../../common/k8s-api/kube-object.store";
|
||||
import type { IngressClassApi } from "../../../common/k8s-api/endpoints/ingress-class.api";
|
||||
import type { IngressClassApi } from "@k8slens/kube-api";
|
||||
import type { IngressClass } from "@k8slens/kube-object";
|
||||
|
||||
export class IngressClassStore extends KubeObjectStore<IngressClass, IngressClassApi> {
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
* Licensed under MIT License. See LICENSE in root directory for more information.
|
||||
*/
|
||||
import type { Ingress } from "@k8slens/kube-object";
|
||||
import type { IngressApi } from "../../../common/k8s-api/endpoints";
|
||||
import type { IngressApi } from "@k8slens/kube-api";
|
||||
import { KubeObjectStore } from "../../../common/k8s-api/kube-object.store";
|
||||
|
||||
export class IngressStore extends KubeObjectStore<Ingress, IngressApi> {
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*/
|
||||
|
||||
import { KubeObjectStore } from "../../../common/k8s-api/kube-object.store";
|
||||
import type { NetworkPolicyApi } from "../../../common/k8s-api/endpoints/network-policy.api";
|
||||
import type { NetworkPolicyApi } from "@k8slens/kube-api";
|
||||
import type { NetworkPolicy } from "@k8slens/kube-object";
|
||||
|
||||
export class NetworkPolicyStore extends KubeObjectStore<NetworkPolicy, NetworkPolicyApi> {
|
||||
|
||||
+1
-1
@@ -11,7 +11,7 @@ import type { PortForwardItem } from "../../port-forward";
|
||||
import { portForwardAddress } from "../../port-forward";
|
||||
import { Drawer, DrawerItem } from "../drawer";
|
||||
import { cssNames } from "@k8slens/utilities";
|
||||
import type { PodApi, ServiceApi } from "../../../common/k8s-api/endpoints";
|
||||
import type { PodApi, ServiceApi } from "@k8slens/kube-api";
|
||||
import { PortForwardMenu } from "./port-forward-menu";
|
||||
import { withInjectables } from "@ogre-tools/injectable-react";
|
||||
import serviceApiInjectable from "../../../common/k8s-api/endpoints/service.api.injectable";
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*/
|
||||
|
||||
import { KubeObjectStore } from "../../../common/k8s-api/kube-object.store";
|
||||
import type { ServiceApi } from "../../../common/k8s-api/endpoints/service.api";
|
||||
import type { ServiceApi } from "@k8slens/kube-api";
|
||||
import type { Service } from "@k8slens/kube-object";
|
||||
|
||||
export class ServiceStore extends KubeObjectStore<Service, ServiceApi> {
|
||||
|
||||
@@ -6,7 +6,7 @@ import type { Node } from "@k8slens/kube-object";
|
||||
import autoBind from "auto-bind";
|
||||
import { sum } from "lodash";
|
||||
import { computed, makeObservable } from "mobx";
|
||||
import type { NodeApi } from "../../../common/k8s-api/endpoints";
|
||||
import type { NodeApi } from "@k8slens/kube-api";
|
||||
import type { KubeObjectStoreDependencies, KubeObjectStoreOptions } from "../../../common/k8s-api/kube-object.store";
|
||||
import { KubeObjectStore } from "../../../common/k8s-api/kube-object.store";
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*/
|
||||
|
||||
import type { PodSecurityPolicy } from "@k8slens/kube-object";
|
||||
import type { PodSecurityPolicyApi } from "../../../common/k8s-api/endpoints";
|
||||
import type { PodSecurityPolicyApi } from "@k8slens/kube-api";
|
||||
import { KubeObjectStore } from "../../../common/k8s-api/kube-object.store";
|
||||
|
||||
export class PodSecurityPolicyStore extends KubeObjectStore<PodSecurityPolicy, PodSecurityPolicyApi> {
|
||||
|
||||
@@ -7,7 +7,7 @@ import type { KubeObjectStoreDependencies, KubeObjectStoreOptions } from "../../
|
||||
import { KubeObjectStore } from "../../../common/k8s-api/kube-object.store";
|
||||
import type { StorageClass, StorageClassData } from "@k8slens/kube-object";
|
||||
import type { GetPersistentVolumesByStorageClass } from "../storage-volumes/get-persistent-volumes-by-storage-class.injectable";
|
||||
import type { StorageClassApi } from "../../../common/k8s-api/endpoints";
|
||||
import type { StorageClassApi } from "@k8slens/kube-api";
|
||||
|
||||
export interface StorageClassStoreDependencies extends KubeObjectStoreDependencies {
|
||||
getPersistentVolumesByStorageClass: GetPersistentVolumesByStorageClass;
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
* Licensed under MIT License. See LICENSE in root directory for more information.
|
||||
*/
|
||||
import type { PersistentVolumeClaim } from "@k8slens/kube-object";
|
||||
import type { PersistentVolumeClaimApi } from "../../../common/k8s-api/endpoints";
|
||||
import type { PersistentVolumeClaimApi } from "@k8slens/kube-api";
|
||||
import { KubeObjectStore } from "../../../common/k8s-api/kube-object.store";
|
||||
|
||||
export class PersistentVolumeClaimStore extends KubeObjectStore<PersistentVolumeClaim, PersistentVolumeClaimApi> {
|
||||
|
||||
+1
-1
@@ -11,7 +11,7 @@ import { DrawerItem, DrawerTitle } from "../drawer";
|
||||
import { Badge } from "../badge";
|
||||
import { Link } from "react-router-dom";
|
||||
import type { KubeObjectDetailsProps } from "../kube-object-details";
|
||||
import type { StorageClassApi } from "../../../common/k8s-api/endpoints";
|
||||
import type { StorageClassApi } from "@k8slens/kube-api";
|
||||
import { PersistentVolumeClaim } from "@k8slens/kube-object";
|
||||
import type { Logger } from "@k8slens/logger";
|
||||
import { withInjectables } from "@ogre-tools/injectable-react";
|
||||
|
||||
@@ -10,7 +10,7 @@ import { observer } from "mobx-react";
|
||||
import { Link } from "react-router-dom";
|
||||
import { KubeObjectListLayout } from "../kube-object-list-layout";
|
||||
import { unitsToBytes, stopPropagation } from "@k8slens/utilities";
|
||||
import type { StorageClassApi } from "../../../common/k8s-api/endpoints";
|
||||
import type { StorageClassApi } from "@k8slens/kube-api";
|
||||
import { KubeObjectStatusIcon } from "../kube-object-status-icon";
|
||||
import { SiblingsInTabLayout } from "../layout/siblings-in-tab-layout";
|
||||
import { KubeObjectAge } from "../kube-object/age";
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
import { KubeObjectStore } from "../../../common/k8s-api/kube-object.store";
|
||||
import type { PersistentVolume, StorageClass } from "@k8slens/kube-object";
|
||||
import type { PersistentVolumeApi } from "../../../common/k8s-api/endpoints";
|
||||
import type { PersistentVolumeApi } from "@k8slens/kube-api";
|
||||
|
||||
export class PersistentVolumeStore extends KubeObjectStore<PersistentVolume, PersistentVolumeApi> {
|
||||
getByStorageClass(storageClass: StorageClass): PersistentVolume[] {
|
||||
|
||||
@@ -11,7 +11,7 @@ import { Link } from "react-router-dom";
|
||||
import { observer } from "mobx-react";
|
||||
import { DrawerItem, DrawerTitle } from "../drawer";
|
||||
import { Badge } from "../badge";
|
||||
import type { PersistentVolumeClaimApi, StorageClassApi } from "../../../common/k8s-api/endpoints";
|
||||
import type { PersistentVolumeClaimApi, StorageClassApi } from "@k8slens/kube-api";
|
||||
import { PersistentVolume } from "@k8slens/kube-object";
|
||||
import type { KubeObjectDetailsProps } from "../kube-object-details";
|
||||
import type { Logger } from "@k8slens/logger";
|
||||
|
||||
@@ -10,7 +10,7 @@ import { observer } from "mobx-react";
|
||||
import { Link } from "react-router-dom";
|
||||
import { KubeObjectListLayout } from "../kube-object-list-layout";
|
||||
import { stopPropagation } from "@k8slens/utilities";
|
||||
import type { PersistentVolumeClaimApi, StorageClassApi } from "../../../common/k8s-api/endpoints";
|
||||
import type { PersistentVolumeClaimApi, StorageClassApi } from "@k8slens/kube-api";
|
||||
import { KubeObjectStatusIcon } from "../kube-object-status-icon";
|
||||
import { SiblingsInTabLayout } from "../layout/siblings-in-tab-layout";
|
||||
import { KubeObjectAge } from "../kube-object/age";
|
||||
|
||||
+1
-1
@@ -7,7 +7,7 @@ import type { Subject, ClusterRoleBinding, ClusterRoleBindingData } from "@k8sle
|
||||
import { KubeObjectStore } from "../../../../common/k8s-api/kube-object.store";
|
||||
import { HashSet } from "@k8slens/utilities";
|
||||
import { hashSubject } from "../hashers";
|
||||
import type { ClusterRoleBindingApi } from "../../../../common/k8s-api/endpoints";
|
||||
import type { ClusterRoleBindingApi } from "@k8slens/kube-api";
|
||||
|
||||
export class ClusterRoleBindingStore extends KubeObjectStore<ClusterRoleBinding, ClusterRoleBindingApi, ClusterRoleBindingData> {
|
||||
protected sortItems(items: ClusterRoleBinding[]) {
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
* Licensed under MIT License. See LICENSE in root directory for more information.
|
||||
*/
|
||||
import type { ClusterRole, ClusterRoleData } from "@k8slens/kube-object";
|
||||
import type { ClusterRoleApi } from "../../../../common/k8s-api/endpoints";
|
||||
import type { ClusterRoleApi } from "@k8slens/kube-api";
|
||||
import { KubeObjectStore } from "../../../../common/k8s-api/kube-object.store";
|
||||
|
||||
export class ClusterRoleStore extends KubeObjectStore<ClusterRole, ClusterRoleApi, ClusterRoleData> {
|
||||
|
||||
@@ -38,7 +38,7 @@ import serviceAccountStoreInjectable from "../../service-accounts/store.injectab
|
||||
import roleApiInjectable from "../../../../../common/k8s-api/endpoints/role.api.injectable";
|
||||
import type { ShowCheckedErrorNotification } from "../../../notifications/show-checked-error.injectable";
|
||||
import showCheckedErrorNotificationInjectable from "../../../notifications/show-checked-error.injectable";
|
||||
import type { RoleApi } from "../../../../../common/k8s-api/endpoints";
|
||||
import type { RoleApi } from "@k8slens/kube-api";
|
||||
|
||||
export interface RoleBindingDialogProps extends Partial<DialogProps> {
|
||||
}
|
||||
|
||||
@@ -7,7 +7,7 @@ import type { RoleBinding, RoleBindingData, Subject } from "@k8slens/kube-object
|
||||
import { KubeObjectStore } from "../../../../common/k8s-api/kube-object.store";
|
||||
import { HashSet } from "@k8slens/utilities";
|
||||
import { hashSubject } from "../hashers";
|
||||
import type { RoleBindingApi } from "../../../../common/k8s-api/endpoints";
|
||||
import type { RoleBindingApi } from "@k8slens/kube-api";
|
||||
|
||||
export class RoleBindingStore extends KubeObjectStore<RoleBinding, RoleBindingApi, RoleBindingData> {
|
||||
protected sortItems(items: RoleBinding[]) {
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
* Licensed under MIT License. See LICENSE in root directory for more information.
|
||||
*/
|
||||
import type { Role, RoleData } from "@k8slens/kube-object";
|
||||
import type { RoleApi } from "../../../../common/k8s-api/endpoints";
|
||||
import type { RoleApi } from "@k8slens/kube-api";
|
||||
import { KubeObjectStore } from "../../../../common/k8s-api/kube-object.store";
|
||||
|
||||
export class RoleStore extends KubeObjectStore<Role, RoleApi, RoleData> {
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*/
|
||||
|
||||
import type { ServiceAccount, ServiceAccountData } from "@k8slens/kube-object";
|
||||
import type { ServiceAccountApi } from "../../../../common/k8s-api/endpoints";
|
||||
import type { ServiceAccountApi } from "@k8slens/kube-api";
|
||||
import { KubeObjectStore } from "../../../../common/k8s-api/kube-object.store";
|
||||
|
||||
export class ServiceAccountStore extends KubeObjectStore<ServiceAccount, ServiceAccountApi, ServiceAccountData> {
|
||||
|
||||
@@ -15,7 +15,7 @@ import openCronJobTriggerDialogInjectable from "./trigger-dialog/open.injectable
|
||||
import cronJobApiInjectable from "../../../common/k8s-api/endpoints/cron-job.api.injectable";
|
||||
import type { ShowCheckedErrorNotification } from "../notifications/show-checked-error.injectable";
|
||||
import showCheckedErrorNotificationInjectable from "../notifications/show-checked-error.injectable";
|
||||
import type { CronJobApi } from "../../../common/k8s-api/endpoints";
|
||||
import type { CronJobApi } from "@k8slens/kube-api";
|
||||
|
||||
export interface CronJobMenuProps extends KubeObjectMenuProps<CronJob> {}
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ import type { KubeObjectStoreDependencies, KubeObjectStoreOptions } from "../../
|
||||
import { KubeObjectStore } from "../../../common/k8s-api/kube-object.store";
|
||||
import type { CronJob } from "@k8slens/kube-object";
|
||||
import type { GetJobsByOwner } from "../workloads-jobs/get-jobs-by-owner.injectable";
|
||||
import type { CronJobApi } from "../../../common/k8s-api/endpoints";
|
||||
import type { CronJobApi } from "@k8slens/kube-api";
|
||||
|
||||
interface Dependencies extends KubeObjectStoreDependencies {
|
||||
getJobsByOwner: GetJobsByOwner;
|
||||
|
||||
@@ -24,7 +24,7 @@ import cronJobTriggerDialogStateInjectable from "./state.injectable";
|
||||
import type { ShowCheckedErrorNotification } from "../../notifications/show-checked-error.injectable";
|
||||
import showCheckedErrorNotificationInjectable from "../../notifications/show-checked-error.injectable";
|
||||
import showErrorNotificationInjectable from "../../notifications/show-error-notification.injectable";
|
||||
import type { JobApi } from "../../../../common/k8s-api/endpoints";
|
||||
import type { JobApi } from "@k8slens/kube-api";
|
||||
|
||||
export interface CronJobTriggerDialogProps extends Partial<DialogProps> {
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ import type { OpenConfirmDialog } from "../confirm-dialog/open.injectable";
|
||||
import openConfirmDialogInjectable from "../confirm-dialog/open.injectable";
|
||||
import type { ShowCheckedErrorNotification } from "../notifications/show-checked-error.injectable";
|
||||
import showCheckedErrorNotificationInjectable from "../notifications/show-checked-error.injectable";
|
||||
import type { DaemonSetApi } from "../../../common/k8s-api/endpoints";
|
||||
import type { DaemonSetApi } from "@k8slens/kube-api";
|
||||
|
||||
export interface DaemonSetMenuProps extends KubeObjectMenuProps<DaemonSet> {}
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ import type { DaemonSet, Pod } from "@k8slens/kube-object";
|
||||
import { PodStatusPhase } from "@k8slens/kube-object";
|
||||
import type { KubeObjectStoreDependencies, KubeObjectStoreOptions } from "../../../common/k8s-api/kube-object.store";
|
||||
import { KubeObjectStore } from "../../../common/k8s-api/kube-object.store";
|
||||
import type { DaemonSetApi } from "../../../common/k8s-api/endpoints";
|
||||
import type { DaemonSetApi } from "@k8slens/kube-api";
|
||||
|
||||
export interface DaemonSetStoreDependencies extends KubeObjectStoreDependencies {
|
||||
readonly getPodsByOwnerId: GetPodsByOwnerId;
|
||||
|
||||
@@ -15,7 +15,7 @@ import type { OpenConfirmDialog } from "../confirm-dialog/open.injectable";
|
||||
import openConfirmDialogInjectable from "../confirm-dialog/open.injectable";
|
||||
import type { ShowCheckedErrorNotification } from "../notifications/show-checked-error.injectable";
|
||||
import showCheckedErrorNotificationInjectable from "../notifications/show-checked-error.injectable";
|
||||
import type { DeploymentApi } from "../../../common/k8s-api/endpoints";
|
||||
import type { DeploymentApi } from "@k8slens/kube-api";
|
||||
|
||||
export interface DeploymentMenuProps extends KubeObjectMenuProps<Deployment> {}
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
import React from "react";
|
||||
import { waitFor, fireEvent } from "@testing-library/react";
|
||||
import { DeploymentScaleDialog } from "./dialog";
|
||||
import type { DeploymentApi } from "../../../../common/k8s-api/endpoints/deployment.api";
|
||||
import type { DeploymentApi } from "@k8slens/kube-api";
|
||||
import { Deployment } from "@k8slens/kube-object";
|
||||
import { getDiForUnitTesting } from "../../../getDiForUnitTesting";
|
||||
import deploymentApiInjectable from "../../../../common/k8s-api/endpoints/deployment.api.injectable";
|
||||
|
||||
@@ -21,7 +21,7 @@ import deploymentApiInjectable from "../../../../common/k8s-api/endpoints/deploy
|
||||
import deploymentScaleDialogStateInjectable from "./dialog-state.injectable";
|
||||
import type { ShowCheckedErrorNotification } from "../../notifications/show-checked-error.injectable";
|
||||
import showCheckedErrorNotificationInjectable from "../../notifications/show-checked-error.injectable";
|
||||
import type { DeploymentApi } from "../../../../common/k8s-api/endpoints";
|
||||
import type { DeploymentApi } from "@k8slens/kube-api";
|
||||
|
||||
export interface DeploymentScaleDialogProps extends Partial<DialogProps> {
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@ import type { Deployment } from "@k8slens/kube-object";
|
||||
import { PodStatusPhase } from "@k8slens/kube-object";
|
||||
import type { KubeObjectStoreDependencies, KubeObjectStoreOptions } from "../../../common/k8s-api/kube-object.store";
|
||||
import { KubeObjectStore } from "../../../common/k8s-api/kube-object.store";
|
||||
import type { DeploymentApi } from "../../../common/k8s-api/endpoints";
|
||||
import type { DeploymentApi } from "@k8slens/kube-api";
|
||||
|
||||
// This needs to be disables because of https://github.com/microsoft/TypeScript/issues/15300
|
||||
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
import type { KubeObjectStoreDependencies, KubeObjectStoreOptions } from "../../../common/k8s-api/kube-object.store";
|
||||
import { KubeObjectStore } from "../../../common/k8s-api/kube-object.store";
|
||||
import type { JobApi } from "../../../common/k8s-api/endpoints/job.api";
|
||||
import type { JobApi } from "@k8slens/kube-api";
|
||||
import type { CronJob, Job, Pod } from "@k8slens/kube-object";
|
||||
import { PodStatusPhase } from "@k8slens/kube-object";
|
||||
import type { GetPodsByOwnerId } from "../workloads-pods/get-pods-by-owner-id.injectable";
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@ import { withInjectables } from "@ogre-tools/injectable-react";
|
||||
import React from "react";
|
||||
import { Link } from "react-router-dom";
|
||||
import type { PodVolumeVariants, Pod, SecretReference, LocalObjectReference } from "@k8slens/kube-object";
|
||||
import type { KubeApiQueryParams, ResourceDescriptor } from "../../../../../common/k8s-api/kube-api";
|
||||
import type { KubeApiQueryParams, ResourceDescriptor } from "@k8slens/kube-api";
|
||||
import { DrawerItem } from "../../../drawer";
|
||||
import type { GetDetailsUrl } from "../../../kube-detail-params/get-details-url.injectable";
|
||||
import getDetailsUrlInjectable from "../../../kube-detail-params/get-details-url.injectable";
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@
|
||||
|
||||
import { withInjectables } from "@ogre-tools/injectable-react";
|
||||
import React from "react";
|
||||
import type { SecretApi } from "../../../../../../common/k8s-api/endpoints";
|
||||
import type { SecretApi } from "@k8slens/kube-api";
|
||||
import secretApiInjectable from "../../../../../../common/k8s-api/endpoints/secret.api.injectable";
|
||||
import { DrawerItem } from "../../../../drawer";
|
||||
import type { PodVolumeVariantSpecificProps } from "../variant-helpers";
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@
|
||||
|
||||
import { withInjectables } from "@ogre-tools/injectable-react";
|
||||
import React from "react";
|
||||
import type { ConfigMapApi } from "../../../../../../common/k8s-api/endpoints";
|
||||
import type { ConfigMapApi } from "@k8slens/kube-api";
|
||||
import configMapApiInjectable from "../../../../../../common/k8s-api/endpoints/config-map.api.injectable";
|
||||
import type { PodVolumeVariantSpecificProps } from "../variant-helpers";
|
||||
import { LocalRef } from "../variant-helpers";
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@
|
||||
|
||||
import { withInjectables } from "@ogre-tools/injectable-react";
|
||||
import React from "react";
|
||||
import type { SecretApi } from "../../../../../../common/k8s-api/endpoints";
|
||||
import type { SecretApi } from "@k8slens/kube-api";
|
||||
import secretApiInjectable from "../../../../../../common/k8s-api/endpoints/secret.api.injectable";
|
||||
import { DrawerItem } from "../../../../drawer";
|
||||
import type { PodVolumeVariantSpecificProps } from "../variant-helpers";
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@
|
||||
|
||||
import { withInjectables } from "@ogre-tools/injectable-react";
|
||||
import React from "react";
|
||||
import type { SecretApi } from "../../../../../../common/k8s-api/endpoints";
|
||||
import type { SecretApi } from "@k8slens/kube-api";
|
||||
import secretApiInjectable from "../../../../../../common/k8s-api/endpoints/secret.api.injectable";
|
||||
import { DrawerItem } from "../../../../drawer";
|
||||
import type { PodVolumeVariantSpecificProps } from "../variant-helpers";
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@
|
||||
|
||||
import { withInjectables } from "@ogre-tools/injectable-react";
|
||||
import React from "react";
|
||||
import type { PersistentVolumeClaimApi } from "../../../../../../common/k8s-api/endpoints";
|
||||
import type { PersistentVolumeClaimApi } from "@k8slens/kube-api";
|
||||
import persistentVolumeClaimApiInjectable from "../../../../../../common/k8s-api/endpoints/persistent-volume-claim.api.injectable";
|
||||
import type { PodVolumeVariantSpecificProps } from "../variant-helpers";
|
||||
import { LocalRef } from "../variant-helpers";
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@
|
||||
|
||||
import { withInjectables } from "@ogre-tools/injectable-react";
|
||||
import React from "react";
|
||||
import type { SecretApi } from "../../../../../../common/k8s-api/endpoints";
|
||||
import type { SecretApi } from "@k8slens/kube-api";
|
||||
import secretApiInjectable from "../../../../../../common/k8s-api/endpoints/secret.api.injectable";
|
||||
import { DrawerItem } from "../../../../drawer";
|
||||
import type { PodVolumeVariantSpecificProps } from "../variant-helpers";
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@
|
||||
|
||||
import { withInjectables } from "@ogre-tools/injectable-react";
|
||||
import React from "react";
|
||||
import type { SecretApi } from "../../../../../../common/k8s-api/endpoints";
|
||||
import type { SecretApi } from "@k8slens/kube-api";
|
||||
import secretApiInjectable from "../../../../../../common/k8s-api/endpoints/secret.api.injectable";
|
||||
import { DrawerItem } from "../../../../drawer";
|
||||
import type { PodVolumeVariantSpecificProps } from "../variant-helpers";
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@
|
||||
|
||||
import { withInjectables } from "@ogre-tools/injectable-react";
|
||||
import React from "react";
|
||||
import type { SecretApi } from "../../../../../../common/k8s-api/endpoints";
|
||||
import type { SecretApi } from "@k8slens/kube-api";
|
||||
import secretApiInjectable from "../../../../../../common/k8s-api/endpoints/secret.api.injectable";
|
||||
import { DrawerItem } from "../../../../drawer";
|
||||
import type { PodVolumeVariantSpecificProps } from "../variant-helpers";
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@
|
||||
|
||||
import { withInjectables } from "@ogre-tools/injectable-react";
|
||||
import React from "react";
|
||||
import type { SecretApi } from "../../../../../../common/k8s-api/endpoints";
|
||||
import type { SecretApi } from "@k8slens/kube-api";
|
||||
import secretApiInjectable from "../../../../../../common/k8s-api/endpoints/secret.api.injectable";
|
||||
import { DrawerItem } from "../../../../drawer";
|
||||
import type { PodVolumeVariantSpecificProps } from "../variant-helpers";
|
||||
|
||||
@@ -14,7 +14,7 @@ import { withInjectables } from "@ogre-tools/injectable-react";
|
||||
import secretApiInjectable from "../../../common/k8s-api/endpoints/secret.api.injectable";
|
||||
import type { GetDetailsUrl } from "../kube-detail-params/get-details-url.injectable";
|
||||
import getDetailsUrlInjectable from "../kube-detail-params/get-details-url.injectable";
|
||||
import type { SecretApi } from "../../../common/k8s-api/endpoints";
|
||||
import type { SecretApi } from "@k8slens/kube-api";
|
||||
|
||||
export interface PodDetailsSecretsProps {
|
||||
pod: Pod;
|
||||
|
||||
@@ -10,7 +10,7 @@ import kebabCase from "lodash/kebabCase";
|
||||
import { observer } from "mobx-react";
|
||||
import { Link } from "react-router-dom";
|
||||
import { Pod } from "@k8slens/kube-object";
|
||||
import type { NodeApi, PriorityClassApi, RuntimeClassApi, ServiceAccountApi } from "../../../common/k8s-api/endpoints";
|
||||
import type { NodeApi, PriorityClassApi, RuntimeClassApi, ServiceAccountApi } from "@k8slens/kube-api";
|
||||
import { DrawerItem } from "../drawer";
|
||||
import { Badge } from "../badge";
|
||||
import { cssNames, stopPropagation } from "@k8slens/utilities";
|
||||
|
||||
@@ -9,7 +9,7 @@ import type { KubeObjectStoreDependencies, KubeObjectStoreOptions } from "../../
|
||||
import { KubeObjectStore } from "../../../common/k8s-api/kube-object.store";
|
||||
import { cpuUnitsToNumber, unitsToBytes } from "@k8slens/utilities";
|
||||
import type { Pod, PodMetrics, KubeObject, NamespaceScopedMetadata } from "@k8slens/kube-object";
|
||||
import type { PodApi, PodMetricsApi } from "../../../common/k8s-api/endpoints";
|
||||
import type { PodApi, PodMetricsApi } from "@k8slens/kube-api";
|
||||
|
||||
export interface PodStoreDependencies extends KubeObjectStoreDependencies {
|
||||
readonly podMetricsApi: PodMetricsApi;
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@
|
||||
import { ReplicaSetScaleDialog } from "./dialog";
|
||||
import { waitFor, fireEvent } from "@testing-library/react";
|
||||
import React from "react";
|
||||
import type { ReplicaSetApi } from "../../../../common/k8s-api/endpoints/replica-set.api";
|
||||
import type { ReplicaSetApi } from "@k8slens/kube-api";
|
||||
import { ReplicaSet } from "@k8slens/kube-object";
|
||||
import type { OpenReplicaSetScaleDialog } from "./open.injectable";
|
||||
import replicaSetApiInjectable from "../../../../common/k8s-api/endpoints/replica-set.api.injectable";
|
||||
|
||||
@@ -21,7 +21,7 @@ import replicaSetApiInjectable from "../../../../common/k8s-api/endpoints/replic
|
||||
import replicaSetScaleDialogStateInjectable from "./state.injectable";
|
||||
import type { ShowCheckedErrorNotification } from "../../notifications/show-checked-error.injectable";
|
||||
import showCheckedErrorNotificationInjectable from "../../notifications/show-checked-error.injectable";
|
||||
import type { ReplicaSetApi } from "../../../../common/k8s-api/endpoints";
|
||||
import type { ReplicaSetApi } from "@k8slens/kube-api";
|
||||
|
||||
export interface ReplicaSetScaleDialogProps extends Partial<DialogProps> {
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@ import { PodStatusPhase } from "@k8slens/kube-object";
|
||||
import type { Deployment, ReplicaSet } from "@k8slens/kube-object";
|
||||
import type { KubeObjectStoreDependencies, KubeObjectStoreOptions } from "../../../common/k8s-api/kube-object.store";
|
||||
import { KubeObjectStore } from "../../../common/k8s-api/kube-object.store";
|
||||
import type { ReplicaSetApi } from "../../../common/k8s-api/endpoints";
|
||||
import type { ReplicaSetApi } from "@k8slens/kube-api";
|
||||
|
||||
export interface ReplicaSetStoreDependencies extends KubeObjectStoreDependencies {
|
||||
getPodsByOwnerId: GetPodsByOwnerId;
|
||||
|
||||
+1
-1
@@ -16,7 +16,7 @@ import replicationControllerApiInjectable from "../../../common/k8s-api/endpoint
|
||||
import showErrorNotificationInjectable from "../notifications/show-error-notification.injectable";
|
||||
import type { ShowNotification } from "../notifications";
|
||||
import { Slider } from "../slider";
|
||||
import type { ReplicationControllerApi } from "../../../common/k8s-api/endpoints";
|
||||
import type { ReplicationControllerApi } from "@k8slens/kube-api";
|
||||
|
||||
export interface ReplicationControllerDetailsProps extends KubeObjectDetailsProps<ReplicationController> {
|
||||
}
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@
|
||||
*/
|
||||
|
||||
import type { ReplicationController } from "@k8slens/kube-object";
|
||||
import type { ReplicationControllerApi } from "../../../common/k8s-api/endpoints";
|
||||
import type { ReplicationControllerApi } from "@k8slens/kube-api";
|
||||
import { KubeObjectStore } from "../../../common/k8s-api/kube-object.store";
|
||||
|
||||
export class ReplicationControllerStore extends KubeObjectStore<ReplicationController, ReplicationControllerApi> {
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
* Licensed under MIT License. See LICENSE in root directory for more information.
|
||||
*/
|
||||
|
||||
import type { StatefulSetApi } from "../../../../common/k8s-api/endpoints";
|
||||
import type { StatefulSetApi } from "@k8slens/kube-api";
|
||||
import { StatefulSet } from "@k8slens/kube-object";
|
||||
import { StatefulSetScaleDialog } from "./dialog";
|
||||
import { waitFor, fireEvent } from "@testing-library/react";
|
||||
|
||||
@@ -21,7 +21,7 @@ import statefulSetApiInjectable from "../../../../common/k8s-api/endpoints/state
|
||||
import statefulSetDialogStateInjectable from "./dialog-state.injectable";
|
||||
import type { ShowCheckedErrorNotification } from "../../notifications/show-checked-error.injectable";
|
||||
import showCheckedErrorNotificationInjectable from "../../notifications/show-checked-error.injectable";
|
||||
import type { StatefulSetApi } from "../../../../common/k8s-api/endpoints";
|
||||
import type { StatefulSetApi } from "@k8slens/kube-api";
|
||||
|
||||
export interface StatefulSetScaleDialogProps extends Partial<DialogProps> {
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ import type { OpenConfirmDialog } from "../confirm-dialog/open.injectable";
|
||||
import openConfirmDialogInjectable from "../confirm-dialog/open.injectable";
|
||||
import type { ShowCheckedErrorNotification } from "../notifications/show-checked-error.injectable";
|
||||
import showCheckedErrorNotificationInjectable from "../notifications/show-checked-error.injectable";
|
||||
import type { StatefulSetApi } from "../../../common/k8s-api/endpoints";
|
||||
import type { StatefulSetApi } from "@k8slens/kube-api";
|
||||
|
||||
export interface StatefulSetMenuProps extends KubeObjectMenuProps<StatefulSet> {}
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ import type { StatefulSet } from "@k8slens/kube-object";
|
||||
import { PodStatusPhase } from "@k8slens/kube-object";
|
||||
import type { KubeObjectStoreDependencies, KubeObjectStoreOptions } from "../../../common/k8s-api/kube-object.store";
|
||||
import { KubeObjectStore } from "../../../common/k8s-api/kube-object.store";
|
||||
import type { StatefulSetApi } from "../../../common/k8s-api/endpoints";
|
||||
import type { StatefulSetApi } from "@k8slens/kube-api";
|
||||
|
||||
interface Dependencies extends KubeObjectStoreDependencies {
|
||||
getPodsByOwnerId: GetPodsByOwnerId;
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
* Licensed under MIT License. See LICENSE in root directory for more information.
|
||||
*/
|
||||
import { getInjectable } from "@ogre-tools/injectable";
|
||||
import type { KubeJsonApi } from "../../common/k8s-api/kube-json-api";
|
||||
import type { KubeJsonApi } from "@k8slens/kube-api";
|
||||
import apiKubeInjectable from "./api-kube.injectable";
|
||||
|
||||
export type ApiKubeGet = KubeJsonApi["get"];
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
* Licensed under MIT License. See LICENSE in root directory for more information.
|
||||
*/
|
||||
import { getInjectable } from "@ogre-tools/injectable";
|
||||
import type { KubeJsonApi } from "../../common/k8s-api/kube-json-api";
|
||||
import type { KubeJsonApi } from "@k8slens/kube-api";
|
||||
import apiKubeInjectable from "./api-kube.injectable";
|
||||
|
||||
export type ApiKubePatch = KubeJsonApi["patch"];
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
import { getInjectable } from "@ogre-tools/injectable";
|
||||
import assert from "assert";
|
||||
import { apiKubePrefix } from "../../common/vars";
|
||||
import { apiKubeInjectionToken } from "../../common/k8s-api/api-kube";
|
||||
import { apiKubeInjectionToken } from "@k8slens/kube-api";
|
||||
import { storesAndApisCanBeCreatedInjectionToken } from "../../common/k8s-api/stores-apis-can-be-created.token";
|
||||
import createKubeJsonApiInjectable from "../../common/k8s-api/create-kube-json-api.injectable";
|
||||
import isDevelopmentInjectable from "../../common/vars/is-development.injectable";
|
||||
|
||||
Reference in new issue
Block a user