Grep for function pods specifically
Now that job start pods are prefixed with the name of the bind, we need
to be more specific in our name match when looking for function pods.
@@ -159,7 +159,7 @@ function wait_until_feed_ready() {
function validate_function_logs() {
local NAMESPACE=$1
- local podname="$(kubectl -n $NAMESPACE get pods --no-headers -oname | grep e2e-k8s-events-)"
+ local podname="$(kubectl -n $NAMESPACE get pods --no-headers -oname | grep e2e-k8s-events-function)"
echo "$podname"
local logs="$(kubectl -n $NAMESPACE logs $podname user-container)"
echo "${logs}" | grep "Started container" || return 1
