krewfile icon indicating copy to clipboard operation
krewfile copied to clipboard

Add support for krew indexes

Open ajgon opened this issue 1 year ago • 1 comments

Krew has built-in external indexes support. It would be nice, if krewfile support that :-). This PR adds a new syntax, using index keyword, while maintaining backwards compatibility.

Example krewfile:

index netshoot https://github.com/nilic/kubectl-netshoot.git

netshoot/netshoot
modify-secret
node-shell
resource-capacity

Also as I bonus I added -dry-run flag, which may be useful for testing.

ajgon avatar Sep 11 '24 17:09 ajgon

@ajgon I really appreciate the effort you put into this. Unfortunately, I'll be busy for the next few weeks, but I'll review it once I find the time 🙏🏻

brumhard avatar Sep 11 '24 21:09 brumhard

@ajgon I'm back. Thanks for you patience. I went over the PR and really like your additions and interface. I will go ahead and merge it, I might refactor a little later, add some docs etc. Thanks for the work you put in 🙏🏻

brumhard avatar Oct 13 '24 15:10 brumhard