You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@submarine.apache.org by GitBox <gi...@apache.org> on 2021/06/08 16:23:45 UTC

[GitHub] [submarine] kevin85421 opened a new pull request #601: SUBMARINE-849. RBAC for events

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


   ### What is this PR for?
   The error message is shown in the attachment. To reproduce the error message, run operator in-cluster.
   <img width="1440" alt="ζˆͺεœ– 2021-06-08 δΈ‹εˆ11 51 57" src="https://user-images.githubusercontent.com/20109646/121221652-5c1eeb80-c8b8-11eb-938b-6f9dc8f2b2be.png">
   
   
   ### What type of PR is it?
   [Bug Fix]
   
   ### Todos
   
   
   ### What is the Jira issue?
   https://issues.apache.org/jira/browse/SUBMARINE-849
   
   ### How should this be tested?
   ```
   # Step1: Build image "submarine-operator" to minikube's Docker 
   eval $(minikube docker-env)
   make image
   
   # Step2: RBAC (ClusterRole, ClusterRoleBinding, and ServiceAccount)
   kubectl apply -f artifacts/examples/submarine-operator-service-account.yaml
   
   # Step3: Deploy a submarine-operator
   kubectl apply -f artifacts/examples/submarine-operator.yaml
   
   # Step4: Deploy a submarine
   kubectl create ns submarine-admin
   kubectl apply -n submarine-admin -f artifacts/examples/example-submarine.yaml
   
   # Step5: Inspect submarine-operator POD logs 
   kubectl logs -f ${submarine-operator POD}
   
   # Step6: The operator will create a new namespace "submarine-user-test"
   kubectl get all -n submarine-user-test 
   
   # Step7: port-forwarding
   kubectl port-forward --address 0.0.0.0 -n submarine-user-test service/traefik 32080:80
   
   # Step8: View workbench (127.0.0.1:32080) with your web browser
   
   # Step9: Delete: 
   #   (1) Remove all relevant Helm chart releases
   #   (2) Remove all resources in the namespace "submariner-user-test"
   #   (3) Remove all non-namespaced resources (Ex: PersistentVolume) created by client-go API 
   #   (4) **Note:** The namespace "submarine-admin" will not be deleted
   kubectl delete submarine example-submarine -n submarine-admin 
   
   # Step10: Delete "submarine-operator"
   kubectl delete deployment submarine-operator-demo
   ```
   
   ### Screenshots (if appropriate)
   https://user-images.githubusercontent.com/20109646/121222021-bddf5580-c8b8-11eb-9158-92acf1d96c34.mov
   
   
   ### 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:
users@infra.apache.org



[GitHub] [submarine] asfgit closed pull request #601: SUBMARINE-849. RBAC for submarine operator events

Posted by GitBox <gi...@apache.org>.
asfgit closed pull request #601:
URL: https://github.com/apache/submarine/pull/601


   


-- 
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:
users@infra.apache.org