This repository was archived by the owner on Nov 25, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
Add crossplane-cli to krew-index #32
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or requestexperienceImprovements related to usability and funImprovements related to usability and fun
Description
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:
- adding the LICENSE file to the release tarball
- creating a PR on krew-index abiding by the publishing guidelines: https://github.com/kubernetes-sigs/krew/blob/master/docs/DEVELOPER_GUIDE.md#publishing-plugins
- adding a
kubectl-crossplane-krewwrapper to serve as a single point of entry for a singlecrossplaneplugin (to prevent the need to make a new plugin entry for each subcommand)
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
Labels
enhancementNew feature or requestNew feature or requestexperienceImprovements related to usability and funImprovements related to usability and fun