Skip to content

Commit

Permalink
fix(check-endpoints): update grep for providers
Browse files Browse the repository at this point in the history
Signed-off-by: Christopher Haar <christopher.haar@upbound.io>
(cherry picked from commit 7e7d39c)
  • Loading branch information
haarchri authored and github-actions[bot] committed Aug 7, 2024
1 parent d016c0a commit c3a7fe4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hack/check_endpoints.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

function check_endpoints {
endpoints=( $("${KUBECTL}" -n "${CROSSPLANE_NAMESPACE}" get endpoints --no-headers | grep '^provider-' | awk '{print $1}') )
endpoints=( $("${KUBECTL}" -n "${CROSSPLANE_NAMESPACE}" get endpoints --no-headers | grep 'provider-' | awk '{print $1}') )
for endpoint in ${endpoints[@]}; do
port=$(${KUBECTL} -n "${CROSSPLANE_NAMESPACE}" get endpoints "$endpoint" -o jsonpath='{.subsets[*].ports[0].port}')
if [[ -z "${port}" ]]; then
Expand Down

0 comments on commit c3a7fe4

Please sign in to comment.