Rename RawJSON to Raw in runtime.RawExtension and add ContentType & ContentEncoding.

This commit is contained in:
Wojciech Tyczynski
2016-03-17 11:32:14 +01:00
parent 6bd5ecc192
commit 89585237cd
16 changed files with 65 additions and 52 deletions

View File

@@ -114,8 +114,8 @@ func TestExtractListGeneric(t *testing.T) {
func TestExtractListGenericV1(t *testing.T) {
pl := &v1.List{
Items: []runtime.RawExtension{
{RawJSON: []byte("foo")},
{RawJSON: []byte("bar")},
{Raw: []byte("foo")},
{Raw: []byte("bar")},
{Object: &v1.Pod{ObjectMeta: v1.ObjectMeta{Name: "other"}}},
},
}