mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 20:24:09 +00:00
apimachinery: fix meta/v1alpha1.Table deepcopy
This commit is contained in:
parent
d2791d46e3
commit
e03a5338a2
@ -23,14 +23,14 @@ func (in *TableRow) DeepCopy() *TableRow {
|
|||||||
|
|
||||||
out := new(TableRow)
|
out := new(TableRow)
|
||||||
|
|
||||||
if out.Cells != nil {
|
if in.Cells != nil {
|
||||||
out.Cells = make([]interface{}, len(in.Cells))
|
out.Cells = make([]interface{}, len(in.Cells))
|
||||||
for i := range in.Cells {
|
for i := range in.Cells {
|
||||||
out.Cells[i] = deepCopyJSON(in.Cells[i])
|
out.Cells[i] = deepCopyJSON(in.Cells[i])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if out.Conditions != nil {
|
if in.Conditions != nil {
|
||||||
out.Conditions = make([]TableRowCondition, len(in.Conditions))
|
out.Conditions = make([]TableRowCondition, len(in.Conditions))
|
||||||
for i := range in.Conditions {
|
for i := range in.Conditions {
|
||||||
in.Conditions[i].DeepCopyInto(&out.Conditions[i])
|
in.Conditions[i].DeepCopyInto(&out.Conditions[i])
|
||||||
|
Loading…
Reference in New Issue
Block a user