Skip to content

Commit

Permalink
add reg args
Browse files Browse the repository at this point in the history
  • Loading branch information
matzhaugen committed Feb 19, 2021
1 parent 14d1a6d commit dee1858
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion contrib/create_cluster.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ KUBE_VERSION=v1.18.8
REG_NAME=kind-registry
REG_PORT=5000

./contrib/create_local_registry.sh
./contrib/create_local_registry.sh ${REG_NAME} ${REG_PORT}
echo ">>> Creating Kubernetes ${KUBE_VERSION} cluster ${DEVENV}"

# create a cluster with the local registry enabled in containerd
Expand Down
4 changes: 2 additions & 2 deletions contrib/create_local_registry.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# create registry container unless it already exists
REG_NAME='kind-registry'
REG_PORT='5000'
REG_NAME=${$1:-'kind-registry'}
REG_PORT=${$2:-'5000'}
running="$(docker inspect -f '{{.State.Running}}' "${REG_NAME}" 2>/dev/null || true)"
if [ "${running}" != 'true' ]; then
docker run \
Expand Down

0 comments on commit dee1858

Please sign in to comment.