tweise commented on a change in pull request #46:
URL: 
https://github.com/apache/flink-kubernetes-operator/pull/46#discussion_r822108437



##########
File path: 
flink-kubernetes-operator/src/main/java/org/apache/flink/kubernetes/operator/controller/FlinkDeploymentController.java
##########
@@ -92,8 +94,11 @@ public DeleteControl cleanup(FlinkDeployment flinkApp, 
Context context) {
         LOG.info("Stopping cluster {}", flinkApp.getMetadata().getName());
         Configuration effectiveConfig =
                 FlinkUtils.getEffectiveConfig(flinkApp, 
defaultConfig.getFlinkConfig());
-
-        observer.observe(flinkApp, context, effectiveConfig);
+        try {
+            observer.observe(flinkApp, context, effectiveConfig);
+        } catch (DeploymentFailedException dfe) {

Review comment:
       Relevant information is already logged, for example:
   ```
   [ERROR] [default.basic-example] Deployment default/basic-example failed with 
pods "basic-example-d5c476cb6-" is forbidden: error looking up service account 
default/invalid-flink-operator: serviceaccount "invalid-flink-operator" not 
found
   ```




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