diff --git a/src/pepr/operator/controllers/exemptions/exemptions.spec.ts b/src/pepr/operator/controllers/exemptions/exemptions.spec.ts index 8c276d879..270ae3002 100644 --- a/src/pepr/operator/controllers/exemptions/exemptions.spec.ts +++ b/src/pepr/operator/controllers/exemptions/exemptions.spec.ts @@ -1,8 +1,9 @@ import { beforeEach, describe, expect, it } from "@jest/globals"; +import { WatchPhase } from "kubernetes-fluent-client/dist/fluent/types"; import { MatcherKind, Policy } from "../../crd"; import { Exemption } from "../../crd/generated/exemption-v1alpha1"; import { ExemptionStore } from "./exemption-store"; -import { WatchPhase, processExemptions } from "./exemptions"; +import { processExemptions } from "./exemptions"; const enforcerMatcher = { namespace: "neuvector", diff --git a/src/pepr/operator/controllers/exemptions/exemptions.ts b/src/pepr/operator/controllers/exemptions/exemptions.ts index a52a39723..1b3401154 100644 --- a/src/pepr/operator/controllers/exemptions/exemptions.ts +++ b/src/pepr/operator/controllers/exemptions/exemptions.ts @@ -1,14 +1,7 @@ +import { WatchPhase } from "kubernetes-fluent-client/dist/fluent/types"; import { UDSExemption } from "../../crd"; import { ExemptionStore } from "./exemption-store"; -export enum WatchPhase { - Added = "ADDED", - Modified = "MODIFIED", - Deleted = "DELETED", - Bookmark = "BOOKMARK", - Error = "ERROR", -} - // Handle adding, updating, and deleting exemptions from Policymap export function processExemptions(exemption: UDSExemption, phase: WatchPhase) { switch (phase) {