Dennis-Mircea commented on code in PR #1197:
URL: 
https://github.com/apache/flink-kubernetes-operator/pull/1197#discussion_r4708933034


##########
flink-kubernetes-operator/src/main/java/org/apache/flink/kubernetes/operator/reconciler/deployment/ApplicationReconciler.java:
##########
@@ -160,15 +160,15 @@ public void deploy(
 
         if (savepoint.isPresent()) {
             // Savepoint deployment
-            deployConfig.set(SavepointConfigOptions.SAVEPOINT_PATH, 
savepoint.get());
+            deployConfig.set(SAVEPOINT_PATH, savepoint.get());

Review Comment:
   Good catch! I updated the implementation to tackle this per the Flink 
version of the CRD.



##########
flink-kubernetes-operator/src/main/java/org/apache/flink/kubernetes/operator/config/FlinkConfigBuilder.java:
##########
@@ -164,17 +164,17 @@ protected static void applyJobConfig(String name, 
Configuration conf, JobSpec jo
         if (jobSpec.getUpgradeMode() == UpgradeMode.LAST_STATE) {
             setDefaultConf(
                     conf,
-                    ExecutionCheckpointingOptions.CHECKPOINTING_INTERVAL,
+                    CheckpointingOptions.CHECKPOINTING_INTERVAL,
                     DEFAULT_CHECKPOINTING_INTERVAL);
         }
         setDefaultConf(
                 conf,
-                ExecutionCheckpointingOptions.EXTERNALIZED_CHECKPOINT,
-                
CheckpointConfig.ExternalizedCheckpointCleanup.RETAIN_ON_CANCELLATION);
+                CheckpointingOptions.EXTERNALIZED_CHECKPOINT_RETENTION,
+                ExternalizedCheckpointRetention.RETAIN_ON_CANCELLATION);
 
         if (jobSpec.getAllowNonRestoredState() != null) {
             conf.set(
-                    SavepointConfigOptions.SAVEPOINT_IGNORE_UNCLAIMED_STATE,
+                    StateRecoveryOptions.SAVEPOINT_IGNORE_UNCLAIMED_STATE,

Review Comment:
   Same here. Thanks for catching this!



-- 
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