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

chengpan pushed a commit to branch branch-1.8
in repository https://gitbox.apache.org/repos/asf/kyuubi.git


The following commit(s) were added to refs/heads/branch-1.8 by this push:
     new 6629327f0 [KYUUBI #6440] Fix casing in kubectl commands for 
serviceaccount creation
6629327f0 is described below

commit 6629327f04c237c3b0c1884b905b94911f5ac015
Author: huangzhir <[email protected]>
AuthorDate: Mon Jun 3 11:12:29 2024 +0800

    [KYUUBI #6440] Fix casing in kubectl commands for serviceaccount creation
    
    This pull request fixes the issue related to incorrect casing in `kubectl` 
commands used for creating `serviceaccount`.
    
    This PR corrects the casing for the Kubernetes `serviceaccount` creation 
and rolebinding command to ensure compatibility with `kubectl`. Previously, the 
commands used incorrect casing (`serviceAccount`), which could potentially lead 
to execution errors or compatibility issues with Kubernetes API expectations.
    Reference: [Kubernetes Official Documentation for Creating a 
ServiceAccount](https://kubernetes.io/docs/reference/kubectl/generated/kubectl_create/kubectl_create_serviceaccount/)
    
    - [x] Bugfix (non-breaking change which fixes an issue)
    - [ ] New feature (non-breaking change which adds functionality)
    - [ ] Breaking change (fix or feature that would cause existing 
functionality to change)
    
    ---
    
    - [x] This patch was not authored or co-authored using [Generative 
Tooling](https://www.apache.org/legal/generative-tooling.html)
    
    **Be nice. Be informative.**
    
    Closes #6440 from huangzhir/doc-fix.
    
    Closes #6440
    
    5c657034d [huangzhir] Fix casing in kubectl commands for serviceaccount 
creation
    
    Authored-by: huangzhir <[email protected]>
    Signed-off-by: Cheng Pan <[email protected]>
    (cherry picked from commit 4d58b96f83e3e47813c8b0445a039e2a1bc069e8)
    Signed-off-by: Cheng Pan <[email protected]>
---
 docs/deployment/kyuubi_on_kubernetes.md | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/docs/deployment/kyuubi_on_kubernetes.md 
b/docs/deployment/kyuubi_on_kubernetes.md
index 11ffe8e48..7036edb89 100644
--- a/docs/deployment/kyuubi_on_kubernetes.md
+++ b/docs/deployment/kyuubi_on_kubernetes.md
@@ -81,9 +81,8 @@ You should create your serviceAccount ( or reuse account with 
the appropriate pr
 For example, you can create serviceAccount by following command:
 
 ```shell
-kubectl create serviceAccount kyuubi -n <your namespace>
-
-kubectl create rolebinding kyuubi-role --role=edit --serviceAccount=<your 
namespace>:kyuubi --namespace=<your namespace>
+kubectl create serviceaccount kyuubi -n <your namespace>
+kubectl create rolebinding kyuubi-role --role=edit --serviceaccount=<your 
namespace>:kyuubi --namespace=<your namespace>
 ```
 
 See more related details in [Using RBAC 
Authorization](https://kubernetes.io/docs/reference/access-authn-authz/rbac/) 
and [Configure Service Accounts for 
Pods](https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/).

Reply via email to