cli icon indicating copy to clipboard operation
cli copied to clipboard

Use `shp` as a kubectl plugin with Krew

Open adambkaplan opened this issue 3 years ago • 4 comments

Feature Request

Krew provides a management system for Kubernetes plugins. Kubernetes plugins have a fairly simple API contract:

  • Binary must be named kubectl-xxx, where xxx is the plugin name.
  • Binary is placed in a specified path known to kubectl

This would allow the shp commands to be invoked indirectly with kubectl:

$ kubectl shp build run ...

There are a few advantages to creating a kubectl plugin:

  • Shipwright's binary can inherit context/configuration from kubectl.
  • Package managers like krew make it easier for developers to adopt Shipwright.

See the developer documentation for best practices on how we could distribute shp as a plugin.

/kind feature

adambkaplan avatar Mar 09 '22 14:03 adambkaplan

From grooming: nothing that we consider to be done soon.

SaschaSchwarze0 avatar Mar 09 '22 14:03 SaschaSchwarze0

We should split this into tasks:

  • Make sure we publish kubectl-shp for the same platforms supported;
  • Create and submit a Krew Manifest;

otaviof avatar Mar 23 '22 13:03 otaviof

I'm interested in this,Can i work for it?

/cc @adambkaplan @SaschaSchwarze0 @otaviof

liangyuanpeng avatar Apr 14 '23 02:04 liangyuanpeng

I'm interested in this,Can i work for it?

Sure, please go head! 🙏 Let me know anything I may help.

otaviof avatar Apr 14 '23 02:04 otaviof