From 77810ae848fa7747c72cb27ab00279629c803d53 Mon Sep 17 00:00:00 2001 From: Micah Nagel Date: Fri, 2 Aug 2024 11:45:36 -0600 Subject: [PATCH] chore: cleanup, logs --- src/pepr/operator/index.ts | 18 ------------------ src/pepr/operator/reconcilers/index.ts | 2 +- 2 files changed, 1 insertion(+), 19 deletions(-) diff --git a/src/pepr/operator/index.ts b/src/pepr/operator/index.ts index 25615382c..abe35764b 100644 --- a/src/pepr/operator/index.ts +++ b/src/pepr/operator/index.ts @@ -38,24 +38,6 @@ When(a.Service) .WithName("kubernetes") .Reconcile(updateAPIServerCIDRFromService); -// We can't watch for deletions here because of our finalizer - deletions will appear as "updates", -// with a deletionTimestamp so they end up in the normal reconcile flow - -// // Watch for changes to the UDSPackage CRD and cleanup the namespace mutations -// When(UDSPackage) -// .IsDeleted() -// .Watch(async pkg => { -// // Cleanup the namespace -// await cleanupNamespace(pkg); - -// // Remove any SSO clients -// await purgeSSOClients(pkg, []); -// await purgeAuthserviceClients(pkg, []); - -// // Remove Finalizer -// await handleFinalizer(pkg, FinalizerOperation.Remove); -// }); - // Watch for changes to the UDSPackage CRD to enqueue a package for processing When(UDSPackage) .IsCreatedOrUpdated() diff --git a/src/pepr/operator/reconcilers/index.ts b/src/pepr/operator/reconcilers/index.ts index e9a5623b7..de8b31247 100644 --- a/src/pepr/operator/reconcilers/index.ts +++ b/src/pepr/operator/reconcilers/index.ts @@ -84,7 +84,7 @@ export async function updateStatus(cr: UDSPackage, status: PkgStatus) { * @param status The new status */ export async function handleFinalizer(cr: UDSPackage, operation: FinalizerOperation) { - log.debug(`${operation}ing finalizer for ${cr.metadata?.name}/${cr.metadata?.namespace}`); + log.debug(`Updating finalizer for ${cr.metadata?.name}/${cr.metadata?.namespace}, operation: ${operation}`); let patch: Operation; if (operation === FinalizerOperation.Add) {