diff --git a/pepr.ts b/pepr.ts index 18493e612..083d76b92 100644 --- a/pepr.ts +++ b/pepr.ts @@ -16,7 +16,6 @@ import { Policy } from "./src/pepr/operator/crd"; import { registerCRDs } from "./src/pepr/operator/crd/register"; import { patches } from "./src/pepr/patches"; import { policies, startExemptionWatch } from "./src/pepr/policies"; -import { prometheus } from "./src/pepr/prometheus"; const log = setupLogger(Component.STARTUP); @@ -36,9 +35,6 @@ const log = setupLogger(Component.STARTUP); // Istio service mesh istio, - // Prometheus monitoring stack - prometheus, - // Patches for specific components patches, ]); diff --git a/src/pepr/operator/reconcilers/package-reconciler.ts b/src/pepr/operator/reconcilers/package-reconciler.ts index a1abf9301..25d39a50b 100644 --- a/src/pepr/operator/reconcilers/package-reconciler.ts +++ b/src/pepr/operator/reconcilers/package-reconciler.ts @@ -6,7 +6,7 @@ import { handleFailure, shouldSkip, updateStatus, writeEvent } from "."; import { UDSConfig } from "../../config"; import { Component, setupLogger } from "../../logger"; -import { cleanupNamespace } from "../controllers/istio/injection"; +import { cleanupNamespace, enableIstio } from "../controllers/istio/injection"; import { istioResources } from "../controllers/istio/istio-resources"; import { authservice, @@ -72,7 +72,7 @@ export async function packageReconciler(pkg: UDSPackage) { let endpoints: string[] = []; // Update the namespace to ensure the istio-injection label is set - await enableInjection(pkg); + await enableIstio(pkg); let ssoClients = new Map(); let authserviceClients: string[] = [];