Bug 1789869

Summary: [oc-cli]oc-config command does not work with `--kubeconfig`
Product: OpenShift Container Platform Reporter: Maciej Szulik <maszulik>
Component: ocAssignee: Maciej Szulik <maszulik>
Status: CLOSED ERRATA QA Contact: zhou ying <yinzhou>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.2.zCC: aos-bugs, hongkliu, jokerman, mfojtik, scuppett, yinzhou
Target Milestone: ---   
Target Release: 4.2.z   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1789857 Environment:
Last Closed: 2020-03-04 04:51:02 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1788194, 1789857    
Bug Blocks: 1802509    

Comment 1 Maciej Szulik 2020-02-13 13:52:55 UTC
*** Bug 1802506 has been marked as a duplicate of this bug. ***

Comment 4 zhou ying 2020-02-24 02:31:21 UTC
Works now with latest oc client:
[root@dhcp-140-138 upgrade]# oc version -o yaml 
clientVersion:
  buildDate: "2020-02-21T20:26:40Z"
  compiler: gc
  gitCommit: 33d97ed617e022637cbac55be22003e54b1bd072
  gitTreeState: clean
  gitVersion: v4.2.21
  goVersion: go1.12.8
  major: ""
  minor: ""
  platform: linux/amd64


[root@dhcp-140-138 upgrade]# oc config view
apiVersion: v1
clusters: []
contexts: []
current-context: ""
kind: Config
preferences: {}
users: []


[root@dhcp-140-138 upgrade]# oc --kubeconfig /tmp/tm.sss config view
apiVersion: v1
clusters:
- cluster:
    insecure-skip-tls-verify: true
    server: https://xxxx.openshift.com:6443
  name: xxxx-openshift-com:6443

Comment 6 errata-xmlrpc 2020-03-04 04:51:02 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2020:0614