updated the kubeconfig generator script
This commit is contained in:
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Reference in New Issue
Block a user