Skip to content
This repository was archived by the owner on Nov 25, 2021. It is now read-only.

Add crossplane-cli to krew-index #32

@displague

Description

@displague

In order to make Crossplane CLI more discoverable and easier to install/upgrade, it should be made available in the Krew Index: https://github.com/kubernetes-sigs/krew-index

Requirements of adding Crossplane CLI to krew include:

Paraphrasing @ahmetb:

Krew doesn't support shipping all of the separate plugins at once.
So the recommendation is to:

  • create a single entrypoint like kubectl-crossplane-krew
  • have this script discover its installation directory (eg $(dirname $(readlink "$0")))
  • based on args, it would call $dir/kubectl-crossplane-XXX

The entrypoint bin would be kubectl-crossplane-krew, and so long as the plugin is named crossplane, it will be linked as kubectl-crossplane. Refer to https://github.com/kubernetes-sigs/krew/blob/master/docs/DEVELOPER_GUIDE.md#installing-plugins-locally for local development.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestexperienceImprovements related to usability and fun

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions