cleanup local registry in kind-down.sh

This commit is contained in:
Benjamin A. Petersen 2023-10-10 13:03:20 -04:00
parent 740463bba7
commit 231870582e
No known key found for this signature in database
GPG Key ID: EF6EF83523A4BE46
2 changed files with 6 additions and 1 deletions

View File

@ -8,4 +8,9 @@ set -euo pipefail
ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." && pwd )"
cd "${ROOT}"
reg_name='kind-registry.local'
docker network disconnect "kind" "${reg_name}" || true
docker stop "${reg_name}" || true
docker rm "${reg_name}" || true
kind delete cluster --name pinniped

View File

@ -385,7 +385,7 @@ concierge_custom_labels="{myConciergeCustomLabelName: myConciergeCustomLabelValu
log_level="debug"
if [ "$alternate_deploy" != "undefined" ] || [ "$alternate_deploy_concierge" != "undefined" ] ; then
webhook_ca_bundle="(kubectl get secret local-user-authenticator-tls-serving-certificate --namespace local-user-authenticator -o 'jsonpath={.data.caCertificate}')"
webhook_ca_bundle="$(kubectl get secret local-user-authenticator-tls-serving-certificate --namespace local-user-authenticator -o 'jsonpath={.data.caCertificate}')"
if [ "$alternate_deploy" != "undefined" ]; then
log_note "The Pinniped Concierge will be deployed with $alternate_deploy pinniped-concierge $tag..."
$alternate_deploy pinniped-concierge $tag