mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 20:24:09 +00:00
Addressed changes
This commit is contained in:
parent
855c7cedcc
commit
d993b8891d
@ -107,7 +107,7 @@ func initThirdParty(t *testing.T) (*tools.FakeEtcdClient, *httptest.Server) {
|
||||
Versions: []expapi.APIVersion{
|
||||
{
|
||||
APIGroup: "group",
|
||||
Name: "v1",
|
||||
Name: "v3",
|
||||
},
|
||||
},
|
||||
}
|
||||
|
@ -99,6 +99,14 @@ func (t *thirdPartyResourceDataCodec) populate(objIn *expapi.ThirdPartyResourceD
|
||||
return fmt.Errorf("unexpected object: %#v", obj)
|
||||
}
|
||||
|
||||
if resourceVersion, ok := metadata["resourceVersion"]; ok {
|
||||
resourceVersionStr, ok := resourceVersion.(string)
|
||||
if !ok {
|
||||
return fmt.Errorf("unexpected object: %v", metadata["resourceVersion"])
|
||||
}
|
||||
objIn.ResourceVersion = strconv.Atoi(resourceVersionStr)
|
||||
}
|
||||
|
||||
objIn.Name = name
|
||||
objIn.Data = data
|
||||
return nil
|
||||
|
Loading…
Reference in New Issue
Block a user