gyfora commented on code in PR #196:
URL: 
https://github.com/apache/flink-kubernetes-operator/pull/196#discussion_r867443035


##########
flink-kubernetes-operator/src/main/java/org/apache/flink/kubernetes/operator/reconciler/ReconciliationUtils.java:
##########
@@ -112,21 +122,11 @@ public static <T> T clone(T object) {
     public static <CR extends CustomResource> UpdateControl<CR> 
toUpdateControl(
             CR originalCopy, CR current) {
 
-        UpdateControl<CR> updateControl;
-        if (!Objects.equals(originalCopy.getSpec(), current.getSpec())) {
-            throw new UnsupportedOperationException(
-                    "Detected spec change after reconcile, this probably 
indicates a bug.");
-        }
+        current.setSpec(originalCopy.getSpec());

Review Comment:
   @Aitozi this is what I was referring to



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to