Skip to content

Commit

Permalink
removed duplicate code
Browse files Browse the repository at this point in the history
  • Loading branch information
schaeferka committed Oct 30, 2024
1 parent 43df9d9 commit 4b41963
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/lib/mutate-request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,6 @@ import { AdmissionRequest, DeepPartial } from "./types";
import { Operation } from "./enums";
import { KubernetesObject } from "kubernetes-fluent-client";
import { clone, mergeDeepRight } from "ramda";
import { Logger } from "pino";
import { GenericClass } from "kubernetes-fluent-client";

// MutateAction type for handling mutation callbacks
export type MutateAction<T extends GenericClass, K extends KubernetesObject = InstanceType<T>> = (
req: PeprMutateRequest<K>,
logger?: Logger,
) => Promise<void> | void | Promise<PeprMutateRequest<K>> | PeprMutateRequest<K>;

// PeprMutateRequest class for mutation request handling
export class PeprMutateRequest<T extends KubernetesObject> {
Expand Down

0 comments on commit 4b41963

Please sign in to comment.