Skip to content

Commit dee1858

Browse files
committed
add reg args
1 parent 14d1a6d commit dee1858

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

contrib/create_cluster.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ KUBE_VERSION=v1.18.8
55
REG_NAME=kind-registry
66
REG_PORT=5000
77

8-
./contrib/create_local_registry.sh
8+
./contrib/create_local_registry.sh ${REG_NAME} ${REG_PORT}
99
echo ">>> Creating Kubernetes ${KUBE_VERSION} cluster ${DEVENV}"
1010

1111
# create a cluster with the local registry enabled in containerd

contrib/create_local_registry.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# create registry container unless it already exists
2-
REG_NAME='kind-registry'
3-
REG_PORT='5000'
2+
REG_NAME=${$1:-'kind-registry'}
3+
REG_PORT=${$2:-'5000'}
44
running="$(docker inspect -f '{{.State.Running}}' "${REG_NAME}" 2>/dev/null || true)"
55
if [ "${running}" != 'true' ]; then
66
docker run \

0 commit comments

Comments
 (0)