From 877d4c69cde50345521b6ca7858c1a2506b5b2aa Mon Sep 17 00:00:00 2001 From: "Michael N. Lipp" Date: Sat, 25 Jan 2025 13:34:16 +0100 Subject: [PATCH] Remove obsolete method. --- .../jdrupes/vmoperator/manager/PvcReconciler.java | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/org.jdrupes.vmoperator.manager/src/org/jdrupes/vmoperator/manager/PvcReconciler.java b/org.jdrupes.vmoperator.manager/src/org/jdrupes/vmoperator/manager/PvcReconciler.java index 4ced1b1..5f10f47 100644 --- a/org.jdrupes.vmoperator.manager/src/org/jdrupes/vmoperator/manager/PvcReconciler.java +++ b/org.jdrupes.vmoperator.manager/src/org/jdrupes/vmoperator/manager/PvcReconciler.java @@ -214,19 +214,4 @@ import org.yaml.snakeyaml.constructor.SafeConstructor; () -> "Could not patch pvc for " + pvcStub.name()); } } - - @SuppressWarnings("PMD.AvoidLiteralsInIfCondition") - private void removeImmutable(DynamicKubernetesObject pvcDef) { - var spec = GsonPtr.to(pvcDef.getRaw()).to("spec").get(JsonObject.class); - for (var itr = spec.entrySet().iterator(); itr.hasNext();) { - var entry = itr.next(); - if ("volumeAttributesClassName".equals(entry.getKey())) { - continue; - } - if ("resources".equals(entry.getKey())) { - continue; - } - itr.remove(); - } - } }