Skip to content

Use shp as a kubectl plugin with Krew #102

Open
@adambkaplan

Description

@adambkaplan

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/featureCategorizes issue or PR as related to a new feature.

    Type

    No type

    Projects

    Status

    No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions