diff --git a/hack/install_kubebuilder.sh b/hack/install_kubebuilder.sh index 6445fbe9e..a7eefcda4 100755 --- a/hack/install_kubebuilder.sh +++ b/hack/install_kubebuilder.sh @@ -46,7 +46,7 @@ command_exists curl command_exists tar if [ "x${KUBEBUILDER_VERSION}" = "x" ] ; then - KUBEBUILDER_VERSION=$(curl -L -s https://api.github.com/repos/kubernetes-sigs/kubebuilder/releases/latest | \ + KUBEBUILDER_VERSION=$(curl -L -s https://api.github.com/repos/kubernetes-sigs/kubebuilder/releases/latest?access_token=$TOKEN | \ grep tag_name | sed "s/ *\"tag_name\": *\"\\(.*\\)\",*/\\1/") if [ -z "$KUBEBUILDER_VERSION" ]; then echo "\nUnable to fetch the latest version tag. This may be due to network access problem"