mirror of https://github.com/k3s-io/k3s
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 deepcopypull/6/head
commit
36f8ba587d
|
@ -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])
|
||||
|
|
Loading…
Reference in New Issue