gyfora commented on code in PR #1248:
URL:
https://github.com/apache/flink-kubernetes-operator/pull/1248#discussion_r4720432460
##########
flink-kubernetes-operator/src/main/java/org/apache/flink/kubernetes/operator/controller/FlinkDeploymentController.java:
##########
@@ -94,14 +94,19 @@ public DeleteControl cleanup(FlinkDeployment flinkApp,
Context<FlinkDeployment>
if (canaryResourceManager.handleCanaryResourceDeletion(flinkApp)) {
return DeleteControl.defaultDelete();
}
+ statusRecorder.updateStatusFromCache(flinkApp);
+ if
(flinkApp.getStatus().getReconciliationStatus().isBeforeFirstDeployment()) {
+ LOG.info("Nothing was deployed yet, nothing to clean up");
+ onCleanupFinished(flinkApp);
+ return DeleteControl.defaultDelete();
+ }
eventRecorder.triggerEvent(
Review Comment:
good point, reverting the move of this check
--
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]