https://github.com/anderseknert/87369-reproduce
Reproducing https://github.com/kubernetes/kubernetes/issues/87369
https://github.com/anderseknert/87369-reproduce
Last synced: 2 months ago
JSON representation
Reproducing https://github.com/kubernetes/kubernetes/issues/87369
- Host: GitHub
- URL: https://github.com/anderseknert/87369-reproduce
- Owner: anderseknert
- Created: 2020-06-17T23:28:44.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-06-18T22:22:05.000Z (about 6 years ago)
- Last Synced: 2025-03-14T20:50:41.573Z (over 1 year ago)
- Size: 1000 Bytes
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Reproducing kubernetes issue 87369
## Steps to reproduce
```
kind create cluster --config=cluster.yaml
kubectl get namespaces --kubeconfig=kubeconfig.yaml --token=admin-token
```
Note that `kubeconfig.yaml` includes a (broken) exec credential plugin which should not get called since a token is present in the request and should take precedence.
## Expected behavior
Namespaces are listed as provided token is valid.
## Actual behavior
Exec credential plugin is called to retrieve possible client certifcates.
Note that this is only triggered if the server advertised client certificate auth capabilities in the TLS handshake.
```
$ kubectl get namespaces --kubeconfig=kubeconfig.yaml --token=admin-token
Unable to connect to the server: decoding stdout: couldn't get version/kind; json parse error: json: cannot unmarshal string into Go value of type struct { APIVersion string "json:\"apiVersion,omitempty\""; Kind string "json:\"kind,omitempty\"" }
```