When running kubectl build --helpError: no such file or directory is printed and the command exits with the status code 1.
What did you expect to happen
I expected to be able to run the command
Environment Details:
Reproducible with this Dockerfile:
FROM alpine:edge
RUN apk add curl kubectl
RUN curl -L https://github.com/vmware-tanzu/buildkit-cli-for-kubectl/releases/download/v0.1.6/linux-v0.1.6.tgz | tar -C /usr/local/bin -zxvf -
Run the following to try it out:
docker build -t buildkit-cli-test .
docker run --rm -v ~/.kube:/root/.kube:ro buildkit-cli-test sh -c 'kubectl get node && echo === && kubectl build --help'
Output:
NAME STATUS ROLES AGE VERSION
[REDACTED]-1 Ready control-plane 29d v1.27.1
[REDACTED]-2 Ready control-plane 29d v1.27.1
[REDACTED]-3 Ready control-plane 28h v1.27.1
===
Error: no such file or directory
Vote on this request
This is an invitation to the community to vote on issues. Use the "smiley face" up to the right of this comment to vote.
:+1: "I would like to see this bug fixed as soon as possible"
:-1: "There are more important bugs to focus on right now"
What steps did you take and what happened
When running
kubectl build --help
Error: no such file or directory
is printed and the command exits with the status code1
.What did you expect to happen
I expected to be able to run the command
Environment Details:
Reproducible with this Dockerfile:
Run the following to try it out:
docker build -t buildkit-cli-test .
docker run --rm -v ~/.kube:/root/.kube:ro buildkit-cli-test sh -c 'kubectl get node && echo === && kubectl build --help'
Output:
Vote on this request
This is an invitation to the community to vote on issues. Use the "smiley face" up to the right of this comment to vote.