Skip to content

Commit aed02b4

Browse files
committed
Revert
1 parent 6c89aea commit aed02b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

controllers/postgres_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ func (r *PostgresReconciler) Reconcile(ctx context.Context, req ctrl.Request) (c
7272
return ctrl.Result{}, nil
7373
}
7474

75-
namespace := instance.ToPeripheralResourceNamespace()
7675

7776
// Delete
7877
if instance.IsBeingDeleted() {
@@ -84,6 +83,7 @@ func (r *PostgresReconciler) Reconcile(ctx context.Context, req ctrl.Request) (c
8483
log.Info("instance being deleted")
8584

8685
matchingLabels := instance.ToZalandoPostgresqlMatchingLabels()
86+
namespace := instance.ToPeripheralResourceNamespace()
8787

8888
if err := r.deleteCWNP(ctx, instance); client.IgnoreNotFound(err) != nil { // todo: remove ignorenotfound
8989
r.recorder.Event(instance, "Warning", "Error", "failed to delete ClusterwideNetworkPolicy")

0 commit comments

Comments
 (0)