Skip to content

Conversation

runcom
Copy link
Member

@runcom runcom commented Oct 19, 2015

Signed-off-by: Antonio Murdaca <runcom@redhat.com>
@runcom runcom added this to the 1.9.0 milestone Oct 19, 2015
@runcom
Copy link
Member Author

runcom commented Oct 19, 2015

/cc @ibuildthecloud @tonistiigi

c.Assert(err, check.IsNil)
c.Assert(status, check.Equals, http.StatusOK)

var inspectJSON map[string]interface{}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bit simpler code if you use: var inspectJSON struct{ Config map[string]*json.RawMessage }

edit: never mind, I see interface{} is used in other tests as well.

@tonistiigi
Copy link
Member

Do we need something similar for images as well, or is containers enough?

@runcom
Copy link
Member Author

runcom commented Oct 19, 2015

images don't contain Config fields (except for Labels) in API output

@tonistiigi
Copy link
Member

@runcom GET /images/name/json contains Config and ContainerConfig that are both typed runconfig.Config. Seems to me that these show the same content that is on the disk without transforming anything.

@runcom
Copy link
Member Author

runcom commented Oct 19, 2015

@tonistiigi yes I was looking at Image for /images/json, fixing

@runcom
Copy link
Member Author

runcom commented Oct 19, 2015

funny thing is we never versioned image type for inspect output

@runcom
Copy link
Member Author

runcom commented Oct 20, 2015

ping @calavera do we want to have bc layers for v1.20 and pre1.20 for images as well? If yes I'll add it to this PR since I've already worked on it

@calavera
Copy link
Contributor

@runcom yes, we should be as much backwards compatible as possible. On the other hand, we haven't had reports of breaking changes regarding images, so I could be okay not having it for 1.9.

@tiborvass what do you think?

@tiborvass
Copy link
Contributor

+1, let's merge this as-is for 1.9

@vdemeester
Copy link
Member

LGTM

1 similar comment
@cpuguy83
Copy link
Member

LGTM

@cpuguy83
Copy link
Member

Running these tests locally now.

@cpuguy83
Copy link
Member

Tests pass locally. merging.

cpuguy83 added a commit that referenced this pull request Oct 20, 2015
Return empty Config fields, now omitempty, for API < 1.21
@cpuguy83 cpuguy83 merged commit c516aa6 into moby:master Oct 20, 2015
@runcom runcom deleted the bc-fixes branch October 20, 2015 20:40
@tiborvass tiborvass removed their assignment Oct 22, 2015
@thaJeztah thaJeztah added the area/api API label Jan 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1.9: Config.ExposedPorts is being dropped 1.9: Config.NetworkDisabled gets dropped 1.9: Config.MacAddress gets dropped
8 participants