Description of problem:
cluster name should be correct in kubeconfig created from serviceaccount
Version-Release number of selected component (if applicable):
cluster version: 4.0.0-0.nightly-2019-02-12-005016
console commit: e267fcf4e177da5858c5c63d021d4f19f71646b8
Steps to Reproduce:
1. goto Administration->serviceaccount->default page, click action-> Download kubeconfig file.
2.Check cluster name
3. check clustername via CLI
$ oc serviceaccounts create-kubeconfig default
- name: tectonic
- name: preserve-**-devcluster-openshift-com:6443
cluster name should be the right lb hostname.
PR to resolve: https://github.com/openshift/console/pull/1195
The content of kubeconfig generated by CLI is very different from the file created by console. more details see attachment.
Will it be a problem for the difference?
Created attachment 1541650 [details]
kubeconfig generated by CLI
Created attachment 1541651 [details]
kubeconfig generated by console
Good catch, shahan. WIP PR to resolve: https://github.com/openshift/console/pull/1262
Currently the kubeconfig is not working correctly because the console has the wrong master public URL. This is the same underlying cause as bug 1664574.
*** This bug has been marked as a duplicate of bug 1664574 ***