Convert() should accept the new conversion Context value
Allows Convert() to reuse the same conversions as ConvertToVersion without being overly coupled to the version.
This commit is contained in:
@@ -129,7 +129,7 @@ func TestReadPodsFromFile(t *testing.T) {
|
||||
for _, testCase := range testCases {
|
||||
func() {
|
||||
var versionedPod runtime.Object
|
||||
err := testapi.Default.Converter().Convert(&testCase.pod, &versionedPod)
|
||||
err := testapi.Default.Converter().Convert(&testCase.pod, &versionedPod, nil)
|
||||
if err != nil {
|
||||
t.Fatalf("%s: error in versioning the pod: %v", testCase.desc, err)
|
||||
}
|
||||
|
Reference in New Issue
Block a user