Bug 1676786 - cluster name should be correct in kubeconfig created from serviceaccount
Summary: cluster name should be correct in kubeconfig created from serviceaccount
Status: CLOSED DUPLICATE of bug 1664574
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Management Console
Version: 4.1.0
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
: 4.1.0
Assignee: Robb Hamilton
QA Contact: Yadan Pei
Depends On:
TreeView+ depends on / blocked
Reported: 2019-02-13 08:46 UTC by shahan
Modified: 2019-05-06 13:00 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
Last Closed: 2019-03-11 14:03:14 UTC
Target Upstream Version:

Attachments (Terms of Use)
kubeconfig generated by CLI (8.75 KB, text/plain)
2019-03-07 03:34 UTC, shahan
no flags Details
kubeconfig generated by console (8.79 KB, application/octet-stream)
2019-03-07 03:36 UTC, shahan
no flags Details

Description shahan 2019-02-13 08:46:55 UTC
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

How reproducible:

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

Actual results:
2. clusters:
  - name: tectonic
      certificate-authority-data: >-

 - name: preserve-**-devcluster-openshift-com:6443

Expected results:
cluster name should be the right lb hostname.

Additional info:

Comment 1 Robb Hamilton 2019-02-28 16:39:02 UTC
PR to resolve: https://github.com/openshift/console/pull/1195

Comment 3 shahan 2019-03-07 03:31:13 UTC
  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?

Comment 4 shahan 2019-03-07 03:34:42 UTC
Created attachment 1541650 [details]
kubeconfig generated by CLI

Comment 5 shahan 2019-03-07 03:36:29 UTC
Created attachment 1541651 [details]
kubeconfig generated by console

Comment 6 Robb Hamilton 2019-03-07 20:01:43 UTC
Good catch, shahan.  WIP PR to resolve: https://github.com/openshift/console/pull/1262

Comment 10 Samuel Padgett 2019-03-11 14:03:14 UTC
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 ***

Note You need to log in before you can comment on or make changes to this bug.