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(); - } - } }