Skip to content

Commit

Permalink
frontend: Refactor apiProxy
Browse files Browse the repository at this point in the history
Signed-off-by: Oleksandr Dubenko <oldubenko@microsoft.com>
  • Loading branch information
sniok committed Aug 7, 2024
1 parent ecec4f9 commit 9b67e21
Show file tree
Hide file tree
Showing 19 changed files with 2,200 additions and 2,030 deletions.
9 changes: 1 addition & 8 deletions frontend/src/components/common/Resource/PortForward.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {
startPortForward,
stopOrDeletePortForward,
} from '../../../lib/k8s/apiProxy';
import { PortForward as PortForwardState } from '../../../lib/k8s/apiProxy/portForward';
import { KubeContainer, KubeObject } from '../../../lib/k8s/cluster';
import Pod from '../../../lib/k8s/pod';
import Service from '../../../lib/k8s/service';
Expand All @@ -22,14 +23,6 @@ interface PortForwardProps {
resource?: KubeObject;
}

export interface PortForwardState {
id: string;
namespace: string;
cluster: string;
port: string;
status: string;
}

export const PORT_FORWARDS_STORAGE_KEY = 'portforwards';
export const PORT_FORWARD_STOP_STATUS = 'Stopped';
export const PORT_FORWARD_RUNNING_STATUS = 'Running';
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/cronjob/Details.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import { getLastScheduleTime, getSchedule } from './List';

function SpawnJobDialog(props: {
cronJob: CronJob;
applyFunc: (newItem: KubeObjectInterface) => Promise<JSON>;
applyFunc: (newItem: KubeObjectInterface) => Promise<KubeObjectInterface>;
openJobDialog: boolean;
setOpenJobDialog: (open: boolean) => void;
}) {
Expand Down
Loading

0 comments on commit 9b67e21

Please sign in to comment.