Skip to content

Commit

Permalink
Remove sudo (#52529)
Browse files Browse the repository at this point in the history
* Remove sudo

Signed-off-by: fxiang1 <fxiang@redhat.com>

* Overwrite default kubebuilder path

Signed-off-by: fxiang1 <fxiang@redhat.com>

---------

Signed-off-by: fxiang1 <fxiang@redhat.com>
  • Loading branch information
fxiang1 authored May 28, 2024
1 parent b46e336 commit 1b79448
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ tests:
export KB_TOOLS_ARCHIVE_NAME="kubebuilder-tools-${KUBEBUILDER_VERSION}-${os}-${arch}.tar.gz"
curl -s -f -L https://storage.googleapis.com/kubebuilder-tools/${KB_TOOLS_ARCHIVE_NAME} -o ${KB_TOOLS_ARCHIVE_NAME}
tar -zxvf ${KB_TOOLS_ARCHIVE_NAME}
sudo mv -f ./kubebuilder /usr/local/kubebuilder
export PATH=$PATH:$(pwd)/kubebuilder/bin
export KUBEBUILDER_ASSETS=$(pwd)/kubebuilder/bin
make -f /opt/build-harness/Makefile.prow sonar/go/prow
container:
from: src
Expand All @@ -56,7 +57,8 @@ tests:
export KB_TOOLS_ARCHIVE_NAME="kubebuilder-tools-${KUBEBUILDER_VERSION}-${os}-${arch}.tar.gz"
curl -s -f -L https://storage.googleapis.com/kubebuilder-tools/${KB_TOOLS_ARCHIVE_NAME} -o ${KB_TOOLS_ARCHIVE_NAME}
tar -zxvf ${KB_TOOLS_ARCHIVE_NAME}
sudo mv -f ./kubebuilder /usr/local/kubebuilder
export PATH=$PATH:$(pwd)/kubebuilder/bin
export KUBEBUILDER_ASSETS=$(pwd)/kubebuilder/bin
make -f /opt/build-harness/Makefile.prow sonar/go/prow
container:
from: src
Expand Down

0 comments on commit 1b79448

Please sign in to comment.