-
Notifications
You must be signed in to change notification settings - Fork 185
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
{Makefile, ci}: Append .exe to our Windows binaries. #2120
Conversation
b19845b
to
b27c0ac
Compare
b27c0ac
to
f3baa9e
Compare
Do you know if we will need changes here, https://github.com/inspektor-gadget/inspektor-gadget/blob/main/.krew.yaml#L67 ? I mean how the binary is called |
f3baa9e
to
c0e325b
Compare
Good catch! |
True. It can be tricky. Hopefully we won't need any further changes 🤞 Also, I believe changes to |
Suggested-by: Michael Friese <mfriese@microsoft.com> Signed-off-by: Francis Laniel <flaniel@linux.microsoft.com>
c0e325b
to
4fe33dd
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
I tested it locally and it worked fine:
→ ls -la ~/.krew/bin/kubectl-gadget.exe
ls: cannot access '/home/qasim/.krew/bin/kubectl-gadget.exe': No such file or directory
→ cat gadget.yaml | grep 'os: windows' -A 5
os: windows
arch: amd64
uri: https://github.com/inspektor-gadget/inspektor-gadget/releases/download/v0.21.0/kubectl-gadget-windows-amd64-v0.21.0.tar.gz
sha256: 90c5dec8b4790b0f8e68a1e32373a450aef29d4c50f9f89c051c8dce498b87ec
bin: kubectl-gadget.exe
→ KREW_OS=windows KREW_ARCH=amd64 kubectl-krew install --manifest=gadget.yaml --archive=kubectl-gadget-windows-amd64.tar.gz
Installing plugin: gadget
Installed plugin: gadget
\
| Use this plugin:
| kubectl gadget
| Documentation:
| https://github.com/inspektor-gadget/inspektor-gadget
| Caveats:
| \
| | Inspektor Gadget needs to be deployed to each node:
| |
| | $ kubectl gadget deploy
| |
| | Read the documentation available at https://github.com/inspektor-gadget/inspektor-gadget
| | to get more information about the server side installation process.
| /
/
→ ls -la ~/.krew/bin/kubectl-gadget.exe
lrwxrwxrwx 1 qasim qasim 57 Okt 10 10:38 /home/qasim/.krew/bin/kubectl-gadget.exe -> /home/qasim/.krew/store/gadget/v0.21.0/kubectl-gadget.exe
Thank you for the review! |
Suggested-by: Michael Friese mfriese@microsoft.com