Skip to content

Shipping "kubectl create something" plugin is impossible #865

Description

@sttts

Wile looking into shipping a kubectl create something plugin via krew I noticed that the - => _ rewriting in

name = strings.ReplaceAll(name, "-", "_")
makes this impossible right now.

Background: kubectl allows these create plugins (and only those) since kubernetes/kubernetes#124123.

Basically we have this situation:

  • $ kubectl create-something maps to the binary kubectl-create_something
  • $ kubectl create something maps to the binary kubectl-create-something
  • krew does the mentioned rewriting, turning the binary of the create-something plugin into the kubectl-create_something binary on disk (even though the binary in the plugin tar is properly named.

How could we allow to ship a kubectl-create-something binary?

xref https://kubernetes.slack.com/archives/CTJNMDM24/p1728488438493869

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/featureCategorizes issue or PR as related to a new feature.lifecycle/frozenIndicates that an issue or PR should not be auto-closed due to staleness.priority/important-soonMust be staffed and worked on either currently, or very soon, ideally in time for the next release.

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions