mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-06-11 01:41:54 -04:00
Generated deep copies for new proto types
This commit is contained in:
parent
6586074e88
commit
86fb71aba7
2 changed files with 19 additions and 0 deletions
|
|
@ -40,3 +40,16 @@ func DeepCopy_resource_Quantity(in Quantity, out *Quantity, c *conversion.Cloner
|
|||
out.Format = in.Format
|
||||
return nil
|
||||
}
|
||||
|
||||
func DeepCopy_resource_QuantityProto(in QuantityProto, out *QuantityProto, c *conversion.Cloner) error {
|
||||
out.Format = in.Format
|
||||
out.Scale = in.Scale
|
||||
if in.Bigint != nil {
|
||||
in, out := in.Bigint, &out.Bigint
|
||||
*out = make([]byte, len(in))
|
||||
copy(*out, in)
|
||||
} else {
|
||||
out.Bigint = nil
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
|
|
|||
|
|
@ -114,6 +114,12 @@ func DeepCopy_unversioned_Time(in Time, out *Time, c *conversion.Cloner) error {
|
|||
return nil
|
||||
}
|
||||
|
||||
func DeepCopy_unversioned_Timestamp(in Timestamp, out *Timestamp, c *conversion.Cloner) error {
|
||||
out.Seconds = in.Seconds
|
||||
out.Nanos = in.Nanos
|
||||
return nil
|
||||
}
|
||||
|
||||
func DeepCopy_unversioned_TypeMeta(in TypeMeta, out *TypeMeta, c *conversion.Cloner) error {
|
||||
out.Kind = in.Kind
|
||||
out.APIVersion = in.APIVersion
|
||||
|
|
|
|||
Loading…
Reference in a new issue