Describe the bug
Running kubectl version against kcp produces an error:
WARNING: This version information is deprecated and will be replaced with the output from kubectl version --short. Use --output=yaml|json to get the full version.
Client Version: version.Info{Major:"1", Minor:"24", GitVersion:"v1.24.1", GitCommit:"3ddd0f45aa91e2f30c70734b175631bec5b5825a", GitTreeState:"clean", BuildDate:"2022-05-24T12:17:11Z", GoVersion:"go1.18.2", Compiler:"gc", Platform:"darwin/amd64"}
Kustomize Version: v4.5.4
Server Version: version.Info{Major:"", Minor:"", GitVersion:"v0.0.0-master+$Format:%H$", GitCommit:"$Format:%H$", GitTreeState:"", BuildDate:"1970-01-01T00:00:00Z", GoVersion:"go1.18.3", Compiler:"gc", Platform:"darwin/amd64"}
error: could not parse pre-release/metadata (-master+$Format:%H$) in version "v0.0.0-master+$Format:%H$"
To Reproduce
Steps to reproduce the behavior:
git clone
start kcp as documented: go run ./cmd/kcp start
export KUBECONFIG
run kubectl version
Expected behavior
A clear and concise description of what you expected to happen.
No error
Additional context
Add any other context about the problem here.
Describe the bug Running
kubectl version
against kcp produces an error:To Reproduce Steps to reproduce the behavior:
go run ./cmd/kcp start
kubectl version
Expected behavior A clear and concise description of what you expected to happen.
No error
Additional context Add any other context about the problem here.
branch: main