Skip to content

Commit

Permalink
Merge pull request #21 from crossplane/backport-20-to-release-0.13
Browse files Browse the repository at this point in the history
[Backport release-0.13] fix(check-endpoints): update grep for providers
  • Loading branch information
sergenyalcin authored Aug 7, 2024
2 parents d016c0a + c3a7fe4 commit 66c1a26
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 66c1a26

Please sign in to comment.