diff --git a/Makefile b/Makefile index d04e62f70..40b664919 100644 --- a/Makefile +++ b/Makefile @@ -428,14 +428,6 @@ publish-cli: build-cli # Targets to facilitate hacking on Brigade. # ################################################################################ -# This is our older way of doing things. It's left for now because we haven't -# yet completed documentation of our newer, less hacky, more productive devx -# tools. If you're reading this, we urge you to use the hack-kind-up target -# instead. -.PHONY: hack-new-kind-cluster -hack-new-kind-cluster: - hack/kind/new-cluster.sh - .PHONY: hack-kind-up hack-kind-up: ctlptl apply -f hack/kind/cluster.yaml diff --git a/hack/kind/new-cluster.sh b/hack/kind/new-cluster.sh deleted file mode 100755 index c5a5936e6..000000000 --- a/hack/kind/new-cluster.sh +++ /dev/null @@ -1,49 +0,0 @@ -#!/usr/bin/env sh - -set -o errexit - -# Create a non-default bridge network -network_name=brigade-dev -docker network inspect ${network_name} &> /dev/null || docker network create ${network_name} - -# Create a local Docker image registry that we'll hook up to kind -reg_name="${KIND_REGISTRY_NAME:-brigade-dev-registry}" -reg_port="${KIND_REGISTRY_PORT:-5000}" -running="$(docker inspect -f '{{.State.Running}}' "${reg_name}" 2>/dev/null || true)" -if [ "${running}" != 'true' ]; then - docker run \ - -d \ - --restart=always \ - --network ${network_name} \ - -p "${reg_port}:5000" \ - --name "${reg_name}" \ - registry:2 -fi - -# Create a kind cluster with the local Docker image registry enabled -kind get clusters | grep brigade || cat <