mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-17 15:13:08 +00:00
Rename Codec and ResourceVersioner to add Default in front, to allow for types of those names
This commit is contained in:
@@ -266,7 +266,7 @@ func executeAPIRequest(method string, c *client.Client) bool {
|
||||
if setBody {
|
||||
if version != 0 {
|
||||
data := readConfig(storage)
|
||||
obj, err := runtime.Decode(data)
|
||||
obj, err := runtime.DefaultCodec.Decode(data)
|
||||
if err != nil {
|
||||
glog.Fatalf("error setting resource version: %v", err)
|
||||
}
|
||||
@@ -275,7 +275,7 @@ func executeAPIRequest(method string, c *client.Client) bool {
|
||||
glog.Fatalf("error setting resource version: %v", err)
|
||||
}
|
||||
jsonBase.SetResourceVersion(version)
|
||||
data, err = runtime.Encode(obj)
|
||||
data, err = runtime.DefaultCodec.Encode(obj)
|
||||
if err != nil {
|
||||
glog.Fatalf("error setting resource version: %v", err)
|
||||
}
|
||||
|
Reference in New Issue
Block a user