Merge pull request #49576 from sttts/sttts-table-deepcopy

Automatic merge from submit-queue (batch tested with PRs 48360, 48469, 49576, 49516, 49558)

apimachinery: fix meta/v1alpha1.Table deepcopy
pull/6/head
Kubernetes Submit Queue 2017-07-26 13:02:42 -07:00 committed by GitHub
commit 36f8ba587d
1 changed files with 2 additions and 2 deletions

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])