MortalHappiness opened a new pull request #595: URL: https://github.com/apache/submarine/pull/595
### What is this PR for? Currently we only set up event handler for Submarine custom resource. We need to set up event handlers for other resources. References: 1. https://github.com/kubernetes/sample-controller/blob/73e81dab82c945b087f7db1f1f4a7b50e7d92751/controller.go#L123-L142 2. https://github.com/kubernetes/sample-controller/blob/73e81dab82c945b087f7db1f1f4a7b50e7d92751/controller.go#L353-L386 ### What type of PR is it? [Feature] ### Todos ### What is the Jira issue? https://issues.apache.org/jira/browse/SUBMARINE-828 ### How should this be tested? 1. Run the operator using the command `./submarine-operator -v 4` 2. Create submarine custom resource 3. Delete the deployment `submarine-server` 4. See the log `Processing object: submarine-server` in the operator log ### Screenshots (if appropriate)  ### Questions: * Do the license files need updating? No * Are there breaking changes for older versions? No * Does this need new documentation? No -- 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. For queries about this service, please contact Infrastructure at: [email protected]
