From 29b7b2c4f8e2c36b1b12dd9cf0147b1ca7eb9037 Mon Sep 17 00:00:00 2001 From: Benjamin Elder Date: Sun, 23 Jun 2019 16:22:51 -0700 Subject: [PATCH] add kube::util::list_staging_repos --- hack/lib/util.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/hack/lib/util.sh b/hack/lib/util.sh index 5719485ab4e..dbe19c2168e 100755 --- a/hack/lib/util.sh +++ b/hack/lib/util.sh @@ -531,6 +531,16 @@ EOF EOF } +# list_staging_repos outputs a sorted list of repos in staging/src/k8s.io +# each entry will just be the $repo portion of staging/src/k8s.io/$repo/... +function kube::util::list_staging_repos() { + ( + cd "${KUBE_ROOT}/staging/src/k8s.io" && \ + find . -mindepth 1 -maxdepth 1 -type d | cut -c 3- | sort + ) +} + + # Determines if docker can be run, failures may simply require that the user be added to the docker group. function kube::util::ensure_docker_daemon_connectivity { IFS=" " read -ra DOCKER <<< "${DOCKER_OPTS}"