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

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


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

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

    [KYUUBI #6440] Fix casing in kubectl commands for serviceaccount creation
    
    # :mag: Description
    ## Issue References ๐Ÿ”—
    
    This pull request fixes the issue related to incorrect casing in `kubectl` 
commands used for creating `serviceaccount`.
    
    ## Describe Your Solution ๐Ÿ”ง
    
    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/)
    
    ## Types of changes :bookmark:
    
    - [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)
    
    ## Test Plan ๐Ÿงช
    
    #### Behavior Without This Pull Request :coffin:
    
    #### Behavior With This Pull Request :tada:
    
    #### Related Unit Tests
    
    ---
    
    # Checklist ๐Ÿ“
    
    - [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 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/docs/deployment/kyuubi_on_kubernetes.md 
b/docs/deployment/kyuubi_on_kubernetes.md
index f016a8bb0..8aba3b523 100644
--- a/docs/deployment/kyuubi_on_kubernetes.md
+++ b/docs/deployment/kyuubi_on_kubernetes.md
@@ -77,8 +77,8 @@ You should create your ServiceAccount(or reuse account with 
the appropriate priv
 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