apimachinery: fix meta/v1alpha1.Table deepcopy

This commit is contained in:
Dr. Stefan Schimanski 2017-07-25 19:03:21 +02:00
parent d2791d46e3
commit e03a5338a2

View File

@ -23,14 +23,14 @@ func (in *TableRow) DeepCopy() *TableRow {
out := new(TableRow)
if out.Cells != nil {
if in.Cells != nil {
out.Cells = make([]interface{}, len(in.Cells))
for i := range in.Cells {
out.Cells[i] = deepCopyJSON(in.Cells[i])
}
}
if out.Conditions != nil {
if in.Conditions != nil {
out.Conditions = make([]TableRowCondition, len(in.Conditions))
for i := range in.Conditions {
in.Conditions[i].DeepCopyInto(&out.Conditions[i])