This is an automated email from the ASF dual-hosted git repository.
chengpan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/kyuubi.git
The following commit(s) were added to refs/heads/master by this push:
new 4d58b96f8 [KYUUBI #6440] Fix casing in kubectl commands for
serviceaccount creation
4d58b96f8 is described below
commit 4d58b96f83e3e47813c8b0445a039e2a1bc069e8
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]>
---
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 8351055f1..8efed5980 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/).