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
|
# CI/CD
|
||||||
Run in Gitea Actions within kubernetes cluster
|
Run in Gitea Actions within kubernetes cluster
|
||||||
Follow: https://tobru.ch/gitea-actions-container-builds/
|
|
||||||
|
|
||||||
Current, the project has workflow files for:
|
Current, the project has workflow files for:
|
||||||
- Build and push the container to the registry
|
- Build and push the container to the registry
|
||||||
|
|||||||
@ -104,18 +104,22 @@ function main() {
|
|||||||
|
|
||||||
while [[ "$#" -gt 0 ]]; do
|
while [[ "$#" -gt 0 ]]; do
|
||||||
case $1 in
|
case $1 in
|
||||||
--namespace)
|
-n|--namespace)
|
||||||
namespace="$2"
|
namespace="$2"
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
--user)
|
-u|--user)
|
||||||
user="$2"
|
user="$2"
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
--kubeconfig)
|
-k|--kubeconfig)
|
||||||
kubeconfig="$2"
|
kubeconfig="$2"
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
|
-h|--help)
|
||||||
|
usage
|
||||||
|
exit 0
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
usage
|
usage
|
||||||
exit 1
|
exit 1
|
||||||
|
|||||||
Reference in New Issue
Block a user