Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1614200 - Cannot output json format when oc edit with -o json options
Cannot output json format when oc edit with -o json options
Status: CLOSED ERRATA
Product: OpenShift Container Platform
Classification: Red Hat
Component: Command Line Interface (Show other bugs)
3.11.0
Unspecified Unspecified
medium Severity medium
: ---
: 3.11.0
Assigned To: Juan Vallejo
wewang
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2018-08-09 03:57 EDT by wewang
Modified: 2018-10-11 03:24 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2018-10-11 03:24:08 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2018:2652 None None None 2018-10-11 03:24 EDT

  None (edit)
Description wewang 2018-08-09 03:57:23 EDT
Description of problem:
Output yaml format when oc edit with -o json option

Version-Release number of selected component (if applicable):
oc v3.11.0-0.11.0

How reproducible:
always

Steps to Reproduce:
1.Create a build 
$ oc new-build openshift/ruby:2.3~https://github.com/sclorg/ruby-ex.git
2.Edit bc with -o json option
$oc edit bc/ruby-ex -o json
3.

Actual results:
Output is a yaml format, not json format

Expected results:
shoud output json format 

Additional info:
Comment 1 Juan Vallejo 2018-08-09 11:27:45 EDT
This was fixed upstream in https://github.com/kubernetes/kubernetes/pull/66225
Will pick into Origin
Comment 2 Juan Vallejo 2018-08-09 11:48:33 EDT
Origin PR: https://github.com/openshift/origin/pull/20589
Comment 3 Juan Vallejo 2018-08-13 14:00:40 EDT
PR has merged. Moving to MODIFIED
Comment 6 wewang 2018-08-27 06:00:58 EDT
verified in openshift v3.11.0-0.22.0
oc v3.11.0-0.22.0
Comment 8 errata-xmlrpc 2018-10-11 03:24:08 EDT
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-2018:2652

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