kevin85421 opened a new pull request #580:
URL: https://github.com/apache/submarine/pull/580


   ### What is this PR for?
   This Jira aims to handle the delete events of custom resource "submarine". 
To elaborate, when the informer of the custom resource "submarine" receives a 
delete event, the submarine operator needs to delete the resources related to 
the "submarine" instance.
   
   Reference:
   (1) CRD: 
https://github.com/apache/submarine/blob/master/submarine-cloud-v2/artifacts/examples/crd.yaml
   (2) CR: 
https://github.com/apache/submarine/blob/master/submarine-cloud-v2/artifacts/examples/example-submarine.yaml
   ### What type of PR is it?
   [Feature]
   
   ### Todos
   * Create namespace via submarine operator
   
   ### What is the Jira issue?
   https://issues.apache.org/jira/browse/SUBMARINE-816
   
   ### How should this be tested?
   ```
   # Out-of-cluster
   go build -o submarine-operator
   ./submarine-operator
   kubectl create ns submarine-operator-test
   kubectl apply -n submarine-operator-test -f 
artifacts/examples/example-submarine.yaml
   kubectl delete submarine example-submarine -n submarine-operator-test
   
   kubectl get ns
   kubectl get pv
   ```
   
   ### Screenshots (if appropriate)
   * Step1: Create example-submarine (custom resource) in namespace 
submarine-operator-test
   * Step2: Delete example-submarine
   
   
   
   
https://user-images.githubusercontent.com/20109646/117336563-eeedf400-aece-11eb-8d11-aff3b146de6e.mov
   
   
   
   ### Questions:
   * Do the license files need updating? No
   * Are there breaking changes for older versions? No
   * Does this need new documentation? Yes
   


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


Reply via email to