This is an automated email from the ASF dual-hosted git repository.

pdallig pushed a commit to branch branch-0.9
in repository https://gitbox.apache.org/repos/asf/zeppelin.git


The following commit(s) were added to refs/heads/branch-0.9 by this push:
     new 2adfbd4  [ZEPPELIN-5447] Spark driver pod cannot create resource 
configmaps under k8s mode
2adfbd4 is described below

commit 2adfbd492311435a7daaaffe3b15eb722efdaae6
Author: rick <rick@rickdeMacBook-Pro.local>
AuthorDate: Wed Jul 7 13:43:49 2021 +0800

    [ZEPPELIN-5447] Spark driver pod cannot create resource configmaps under 
k8s mode
    
    ### What is this PR for?
    When zeppelin is running under k8s mode, make the pod of spark driver 
obtain the permission to create the resource "configmaps".
    
    According to the [Apache Spark Documentation: Running Spark on 
Kubernetes](https://spark.apache.org/docs/3.1.2/running-on-kubernetes.html), 
the service account credentials used by the driver pods must be allowed to 
create pods, services and configmaps.
    
    ### What type of PR is it?
    [Bug fix]
    
    ### Todos
    * [ ] - Task
    
    ### What is the Jira issue?
    * <https://issues.apache.org/jira/browse/ZEPPELIN-5447>
    
    ### How should this be tested?
    * CI pass and manually tested
    
    ### Screenshots (if appropriate)
    
    ### Questions:
    * Does the licenses files need update? No
    * Is there breaking changes for older versions? No
    * Does this needs documentation? No
    
    Author: rick <rick@rickdeMacBook-Pro.local>
    
    Closes #4165 from rickchengx/ZEPPELIN-5447 and squashes the following 
commits:
    
    2ee8b2b6d [rick] [ZEPPELIN-5447] Spark driver pod cannot create resource 
configmaps under k8s mode
    
    (cherry picked from commit 68aee7806a8df2f108440f37481aafd155f814d2)
    Signed-off-by: Philipp Dallig <philipp.dal...@gmail.com>
---
 k8s/interpreter/100-interpreter-spec.yaml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/k8s/interpreter/100-interpreter-spec.yaml 
b/k8s/interpreter/100-interpreter-spec.yaml
index 116b0df..dc72fab 100644
--- a/k8s/interpreter/100-interpreter-spec.yaml
+++ b/k8s/interpreter/100-interpreter-spec.yaml
@@ -136,7 +136,7 @@ metadata:
   {% endif %}
 rules:
 - apiGroups: [""]
-  resources: ["pods", "services"]
+  resources: ["pods", "services", "configmaps"]
   verbs: ["create", "get", "update", "list", "delete", "watch" ]
 ---
 kind: RoleBinding

Reply via email to