From 89ac5232cefc972e54a422ad82f8b49b8237f764 Mon Sep 17 00:00:00 2001 From: Knative Automation Date: Fri, 2 Feb 2024 01:44:45 +0000 Subject: [PATCH] upgrade to latest dependencies bumping knative.dev/eventing 62c74c1...d258e7d: > d258e7d Create teardown script for local development (# 7642) Signed-off-by: Knative Automation --- go.mod | 2 +- go.sum | 4 ++-- vendor/knative.dev/eventing/test/e2e-common.sh | 11 ++++++++--- vendor/modules.txt | 2 +- 4 files changed, 12 insertions(+), 7 deletions(-) diff --git a/go.mod b/go.mod index 0ad170de1..1ae406d2c 100644 --- a/go.mod +++ b/go.mod @@ -25,7 +25,7 @@ require ( k8s.io/apimachinery v0.28.5 k8s.io/client-go v0.28.5 k8s.io/utils v0.0.0-20230406110748-d93618cff8a2 - knative.dev/eventing v0.40.1-0.20240201013611-62c74c1b87e2 + knative.dev/eventing v0.40.1-0.20240201205049-d258e7dd535c knative.dev/hack v0.0.0-20240201013652-f3881d90c189 knative.dev/pkg v0.0.0-20240201013110-e85c3cf6d5f1 knative.dev/reconciler-test v0.0.0-20240201013705-feb27a771d67 diff --git a/go.sum b/go.sum index 945b5461d..a4c8dd3c5 100644 --- a/go.sum +++ b/go.sum @@ -970,8 +970,8 @@ k8s.io/kube-openapi v0.0.0-20230717233707-2695361300d9 h1:LyMgNKD2P8Wn1iAwQU5Ohx k8s.io/kube-openapi v0.0.0-20230717233707-2695361300d9/go.mod h1:wZK2AVp1uHCp4VamDVgBP2COHZjqD1T68Rf0CM3YjSM= k8s.io/utils v0.0.0-20230406110748-d93618cff8a2 h1:qY1Ad8PODbnymg2pRbkyMT/ylpTrCM8P2RJ0yroCyIk= k8s.io/utils v0.0.0-20230406110748-d93618cff8a2/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0= -knative.dev/eventing v0.40.1-0.20240201013611-62c74c1b87e2 h1:sTS/eCfl+75LEBj94vsn5vTeFommX4zR3/zlQ6J8lTY= -knative.dev/eventing v0.40.1-0.20240201013611-62c74c1b87e2/go.mod h1:B3/ep06tqwcAfcH7R5eGKi7bgZTfqb59MPoqfV8Jirg= +knative.dev/eventing v0.40.1-0.20240201205049-d258e7dd535c h1:/HxlmvJpSqwyZRk2xjType+BI3C/1rB7Mpbi7AKRn3I= +knative.dev/eventing v0.40.1-0.20240201205049-d258e7dd535c/go.mod h1:B3/ep06tqwcAfcH7R5eGKi7bgZTfqb59MPoqfV8Jirg= knative.dev/hack v0.0.0-20240201013652-f3881d90c189 h1:a8htyuf5+S0NGxxdKXeQ49XOD9dEC1LHoofRQPgFKrU= knative.dev/hack v0.0.0-20240201013652-f3881d90c189/go.mod h1:yk2OjGDsbEnQjfxdm0/HJKS2WqTLEFg/N6nUs6Rqx3Q= knative.dev/pkg v0.0.0-20240201013110-e85c3cf6d5f1 h1:xGmWQyA+hwyFT1BN5RWi8wx0DxwZQZni8SPN/FZ02kI= diff --git a/vendor/knative.dev/eventing/test/e2e-common.sh b/vendor/knative.dev/eventing/test/e2e-common.sh index 081bcf179..0ef9cde0f 100644 --- a/vendor/knative.dev/eventing/test/e2e-common.sh +++ b/vendor/knative.dev/eventing/test/e2e-common.sh @@ -276,14 +276,16 @@ function knative_teardown() { echo ">> Stopping Knative Eventing" for i in "${!UNINSTALL_LIST[@]}"; do # We uninstall elements in the reverse of the order they were installed. - local YAML="${UNINSTALL_LIST[$(( ${#array[@]} - $i ))]}" + local YAML="${UNINSTALL_LIST[$(( ${#UNINSTALL_LIST[@]} - 1 - $i ))]}" echo ">> Bringing down YAML: ${YAML}" kubectl delete --ignore-not-found=true -f "${YAML}" || return 1 done + kubectl delete --ignore-not-found=true namespace "${CERT_MANAGER_NAMESPACE}" + wait_until_object_does_not_exist namespaces "${CERT_MANAGER_NAMESPACE}" "" kubectl delete --ignore-not-found=true namespace "${SYSTEM_NAMESPACE}" - wait_until_object_does_not_exist namespaces "${SYSTEM_NAMESPACE}" + wait_until_object_does_not_exist namespaces "${SYSTEM_NAMESPACE}" "" kubectl delete --ignore-not-found=true namespace 'knative-monitoring' - wait_until_object_does_not_exist namespaces 'knative-monitoring' + wait_until_object_does_not_exist namespaces 'knative-monitoring' "" } # Add function call to trap @@ -409,4 +411,7 @@ function install_cert_manager() { timeout 600 bash -c 'until kubectl apply -f third_party/cert-manager/02-trust-manager.yaml; do sleep 5; done' wait_until_pods_running "$CERT_MANAGER_NAMESPACE" || fail_test "Failed to install cert manager" + + UNINSTALL_LIST+=( "third_party/cert-manager/01-cert-manager.yaml" ) + UNINSTALL_LIST+=( "third_party/cert-manager/02-trust-manager.yaml" ) } diff --git a/vendor/modules.txt b/vendor/modules.txt index 5a1d5e53f..99f4d3e8d 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -1304,7 +1304,7 @@ k8s.io/utils/net k8s.io/utils/pointer k8s.io/utils/strings/slices k8s.io/utils/trace -# knative.dev/eventing v0.40.1-0.20240201013611-62c74c1b87e2 +# knative.dev/eventing v0.40.1-0.20240201205049-d258e7dd535c ## explicit; go 1.21 knative.dev/eventing/cmd/heartbeats knative.dev/eventing/pkg/adapter/v2