Bug 1278296 - [platformmanagement_public_514]"reference" should be supported under "tags" level in the ImageStream file
Summary: [platformmanagement_public_514]"reference" should be supported under "tags" l...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OKD
Classification: Red Hat
Component: Image Registry
Version: 3.x
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Maciej Szulik
QA Contact: Wei Sun
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-11-05 08:20 UTC by Wei Sun
Modified: 2015-11-23 21:16 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-11-23 21:16:32 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Wei Sun 2015-11-05 08:20:13 UTC
Description of problem:
"reference" could not be supported under "tags" level in the ImageStream file.When I added "reference":"false" or "reference":"true" under "tags" level in ImageStream json file,I could not create the ImageStream successfully.


Version-Release number of selected component (if applicable):
# openshift version
openshift v3.1.0.0
kubernetes v1.2.0-alpha.1-1107-g4c8e6f4
etcd 2.1.2


How reproducible:
Always

Steps to Reproduce:
1.Create an ImageStream with "reference" is defined under tags level in the json file
2.
3.

Actual results:
1.cat test.json
{
    "kind": "ImageStream",
    "apiVersion": "v1",
    "metadata": {
      "name": "python",
      "creationTimestamp": null
    },
    "spec": {
           "tags":[
                      { "name": "3.3",
                         "annotations":
                              { "description": "wsun tests" },
                          "from":
                           {
                               "Kind": "DockerImage",
                                "Name": "wsun/python-33-centos"
                           },
                          "reference":"false"
                        }
             ]
       }
}

$ oc create -f test.json 
unable to load "test.json": json: cannot unmarshal string into Go value of type bool

Expected results:
"reference" should be supported under "tags" level

Additional info:

Comment 1 Maciej Szulik 2015-11-05 13:27:11 UTC
It's an error in your json, remove the false from double quotes like so:

"reference": false

and this should work fine.

Comment 2 Wei Sun 2015-11-06 02:20:38 UTC
It works if removing the false from double quotes.Thanks!


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