From f980da7daff40ac5f15757335284cb286c4ce93d Mon Sep 17 00:00:00 2001 From: Taqi Tahmid Date: Sun, 18 May 2025 10:50:25 +0300 Subject: [PATCH] updated the kubeconfig generator script --- README.md | 1 - scripts/create_kubeconfig.sh | 10 +++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 26f0b16..115150a 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,6 @@ curl -u user:pass https://$DOCKER_REGISTRY/v2/_catalog # CI/CD Run in Gitea Actions within kubernetes cluster -Follow: https://tobru.ch/gitea-actions-container-builds/ Current, the project has workflow files for: - Build and push the container to the registry diff --git a/scripts/create_kubeconfig.sh b/scripts/create_kubeconfig.sh index 9899fec..209051c 100755 --- a/scripts/create_kubeconfig.sh +++ b/scripts/create_kubeconfig.sh @@ -104,18 +104,22 @@ function main() { while [[ "$#" -gt 0 ]]; do case $1 in - --namespace) + -n|--namespace) namespace="$2" shift ;; - --user) + -u|--user) user="$2" shift ;; - --kubeconfig) + -k|--kubeconfig) kubeconfig="$2" shift ;; + -h|--help) + usage + exit 0 + ;; *) usage exit 1