mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-26 21:17:23 +00:00
Register deepcopy and defaulter funcs for metav1
This commit is contained in:
parent
01c45f7de1
commit
ccb52d415d
@ -55,6 +55,10 @@ func AddToGroupVersion(scheme *runtime.Scheme, groupVersion schema.GroupVersion)
|
|||||||
Convert_watch_Event_to_versioned_Event,
|
Convert_watch_Event_to_versioned_Event,
|
||||||
Convert_versioned_Event_to_versioned_InternalEvent,
|
Convert_versioned_Event_to_versioned_InternalEvent,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// register manually. This usually goes through the SchemeBuilder, which we cannot use here.
|
||||||
|
scheme.AddGeneratedDeepCopyFuncs(GetGeneratedDeepCopyFuncs()...)
|
||||||
|
RegisterDefaults(scheme)
|
||||||
}
|
}
|
||||||
|
|
||||||
// scheme is the registry for the common types that adhere to the meta v1 API spec.
|
// scheme is the registry for the common types that adhere to the meta v1 API spec.
|
||||||
@ -70,4 +74,8 @@ func init() {
|
|||||||
&GetOptions{},
|
&GetOptions{},
|
||||||
&DeleteOptions{},
|
&DeleteOptions{},
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// register manually. This usually goes through the SchemeBuilder, which we cannot use here.
|
||||||
|
scheme.AddGeneratedDeepCopyFuncs(GetGeneratedDeepCopyFuncs()...)
|
||||||
|
RegisterDefaults(scheme)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user