From 1c0edc2c639714f895081b3a345fc339b4c12870 Mon Sep 17 00:00:00 2001 From: gmarek Date: Wed, 13 Sep 2017 16:46:26 +0200 Subject: [PATCH] Add new Events API group Kubernetes-commit: 69e2a9cb48fd49cf1449042984ea9c25edc0598c --- pkg/apis/meta/v1/conversion.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkg/apis/meta/v1/conversion.go b/pkg/apis/meta/v1/conversion.go index a96f38ee..c62f8533 100644 --- a/pkg/apis/meta/v1/conversion.go +++ b/pkg/apis/meta/v1/conversion.go @@ -38,6 +38,7 @@ func AddConversionFuncs(scheme *runtime.Scheme) error { Convert_intstr_IntOrString_To_intstr_IntOrString, Convert_unversioned_Time_To_unversioned_Time, + Convert_unversioned_MicroTime_To_unversioned_MicroTime, Convert_Pointer_v1_Duration_To_v1_Duration, Convert_v1_Duration_To_Pointer_v1_Duration, @@ -199,6 +200,12 @@ func Convert_v1_Duration_To_Pointer_v1_Duration(in *Duration, out **Duration, s return nil } +func Convert_unversioned_MicroTime_To_unversioned_MicroTime(in *MicroTime, out *MicroTime, s conversion.Scope) error { + // Cannot deep copy these, because time.Time has unexported fields. + *out = *in + return nil +} + // Convert_Slice_string_To_unversioned_Time allows converting a URL query parameter value func Convert_Slice_string_To_unversioned_Time(input *[]string, out *Time, s conversion.Scope) error { str := ""