MortalHappiness opened a new pull request #566:
URL: https://github.com/apache/submarine/pull/566


   ### What is this PR for?
   
   Create a submarine database for a single user via the submarine operator.
   
   Reference: 
https://github.com/apache/submarine/blob/master/helm-charts/submarine/templates/submarine-database.yaml
   
   ### What type of PR is it?
   [Feature]
   
   ### Todos
   
   ### What is the Jira issue?
   
   https://issues.apache.org/jira/projects/SUBMARINE/issues/SUBMARINE-806
   
   ### How should this be tested?
   
   ```
   # initialization
   # Step1: Register Custom Resource Definition
   kubectl apply -f artifacts/examples/crd.yaml
   
   # Step2: Create a Custom Resource
   kubectl apply -f artifacts/examples/example-submarine.yaml
   
   
   # helm
   cd submarine
   helm install submarine ./helm-charts/submarine
   
   # in-cluster
   cd submarine/submarine-cloud-v2
   eval $(minikube docker-env)
   make image
   kubectl apply -f artifacts/examples/submarine-operator-service-account.yaml
   kubectl apply -f artifacts/examples/submarine-operator.yaml
   
   # out-of-cluster
   go build -o submarine-operator
   ./submarine-operator
   ```
   
   ### Screenshots (if appropriate)
   
   + PersistentVolume (helm)
   
   
![helm-pv](https://user-images.githubusercontent.com/47914085/116022379-aa678a80-a67c-11eb-854b-0bbfcf347b01.png)
   
   + PersistentVolume (operator)
   
   **Note**: PersistentVolumes are not namespaced resources, so we add the 
namespace as a suffix to distinguish them
   
   
![operator-pv](https://user-images.githubusercontent.com/47914085/116022417-bd7a5a80-a67c-11eb-831a-6eb57cbeae16.png)
   
   + PersistentVolumeClaim (helm)
   
   
![helm-pvc](https://user-images.githubusercontent.com/47914085/116022424-c5d29580-a67c-11eb-91a0-5c947dce1434.png)
   
   + PersistentVolumeClaim (operator)
   
   
![operator-pvc](https://user-images.githubusercontent.com/47914085/116022534-f31f4380-a67c-11eb-9635-4ee5f04df312.png)
   
   + Deployment (helm)
   
   
![helm-deployment](https://user-images.githubusercontent.com/47914085/116022555-ff0b0580-a67c-11eb-8ae2-4f77d692acf9.png)
   
   + Deployment (operator)
   
   
![operator-deployment](https://user-images.githubusercontent.com/47914085/116022581-06caaa00-a67d-11eb-94ba-5d5b2bae4a30.png)
   
   + Service (helm)
   
   
![helm-service](https://user-images.githubusercontent.com/47914085/116022599-0e8a4e80-a67d-11eb-8a17-39e44ed028f0.png)
   
   + Service (opertator)
   
   
![operator-service](https://user-images.githubusercontent.com/47914085/116022642-2235b500-a67d-11eb-8ae3-615ee794619e.png)
   
   ### 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]


Reply via email to