Use codec to encode/decode api objects in client and kubecfg parser

This commit is contained in:
csrwng
2014-08-29 13:53:14 -04:00
parent d7f84aef82
commit 6551f4e0f0
6 changed files with 19 additions and 16 deletions

View File

@@ -105,7 +105,7 @@ func readConfig(storage string) []byte {
if err != nil {
glog.Fatalf("Unable to read %v: %v\n", *config, err)
}
data, err = parser.ToWireFormat(data, storage)
data, err = parser.ToWireFormat(data, storage, runtime.DefaultCodec)
if err != nil {
glog.Fatalf("Error parsing %v as an object for %v: %v\n", *config, storage, err)
}