8000 kubectl should allow `//` preamble for plugins to avoid exec format error · Issue #822 · kubernetes/kubectl · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
kubectl should allow // preamble for plugins to avoid exec format error #822
Closed
@maxandersen

Description

@maxandersen

I noticed that where a git plugin can be as follows:

git-helloworld:

//usr/bin/env bash "$0" "$@" ; exit $?
echo "a plugin"
git helloworld
a plugin

(notice the use of // instead of #!) if you do the same for kubectl you get:

kubectl helloworld
exec format error

"
With this it is currently a must to have your script plugin start with "#!".
This is unfortunate since if you are using go or java single script notion they will not load.

They could out "#!" in header but all current IDE's will complain about the foreign "#!".

Better if kubectl would behave similar to git and support both "#!" and "//"

context: see https://github.com/maxandersen/k8s-cli-java for real world example of this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0