Skip to content

Commit

Permalink
Don't generate kubeconfig by default.
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobdotcosta committed Apr 17, 2024
1 parent 40f7e7e commit c84c2e8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion kind/kind.sh
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ show_usage() {
log_message "0" ""
log_message "0" "\t--cluster-name <name>\t\t\tName of the cluster. Default: kind"
log_message "0" "\t--delete-kind-cluster\t\t\tDeletes the Kind cluster prior to creating a new one. Default: No"
log_message "0" "\t--gen-kubeconfig\t\t\tGenerates the config file on the ~/.kube folder. Default: No"
log_message "0" "\t--ingress [nginx,kourier]\t\tIngress to be deployed. One of nginx,kourier. Default: nginx"
log_message "0" "\t--ingress-ports httpPort:httpsPort\tIngress ports to be mapped. e.g. 'HttpPort:HttpsPort '"
log_message "0" "\t\t\t\t\t\tngninx default: 80:443."
Expand Down Expand Up @@ -584,7 +585,7 @@ EOF
note "5" "Cluster created."
note "5" "CRI_PROVIDER: ${CRI_PROVIDER}"
note "5" "ROOTLESS_CONTAINERS: ${ROOTLESS_CONTAINERS}"
if [ "${CRI_PROVIDER}" == 'podman' ]; then
if [ "${GEN_KUBECONFIG}" == 'y' ]; then
KIND_GET_KC_CMD='kind get kubeconfig'
# if [ "${CLUSTER_NAME}" == 'y' ]; then
if [ -n "$CLUSTER_NAME" ]; then
Expand Down Expand Up @@ -766,6 +767,7 @@ CLUSTER_NAME="kind"
CRI_PROVIDER=docker
CRI_COMMAND=docker
DELETE_KIND_CLUSTER="n"
GEN_KUBECONFIG="n"
INGRESS="nginx"
KIND_COMMAND=kind
KNATIVE_VERSION="1.9.0"
Expand All @@ -791,6 +793,7 @@ while [ $# -gt 0 ]; do
--help) SHOW_HELP="y"; break 2 ;;
--cluster-name) CLUSTER_NAME="$2"; shift ;;
--delete-kind-cluster) DELETE_KIND_CLUSTER="y" ;;
--gen-kubeconfig) GEN_KUBECONFIG="y" ;;
--ingress) INGRESS="$2"; shift ;;
--ingress-ports) INGRESS_PORTS="$2"; shift ;;
--knative-version) KNATIVE_VERSION="$2"; shift ;;
Expand Down

0 comments on commit c84c2e8

Please sign in to comment.