Skip to content

Commit

Permalink
Merge pull request #147 from KevFan/issues/254
Browse files Browse the repository at this point in the history
workflow: fix flaky install of operator sdk on mac os
  • Loading branch information
KevFan committed Oct 11, 2023
2 parents ca8cb94 + 652922f commit aee73cf
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions utils/install-operator-sdk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@ if [ ! -f "$1" ]; then
TMP_DIR=$(mktemp -d)
cd $TMP_DIR

# GPG can hit "no route for host" if using IPv6 on mac (https://github.com/rvm/rvm/issues/4215#issuecomment-486609350)
if [[ $OS == 'darwin' ]]; then
mkdir -p "/Users/runner/.gnupg"
echo "Disabling ipv6 for gpg on mac"
echo "disable-ipv6" > /Users/runner/.gnupg/dirmngr.conf
gpgconf --kill all
fi

echo "Downloading $OPERATOR_SDK_DL_BINARY"
curl -sLO $OPERATOR_SDK_DL_BINARY
gpg --keyserver keyserver.ubuntu.com --recv-keys 052996E2A20B5C7E
Expand Down

0 comments on commit aee73cf

Please sign in to comment.