mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 03:41:45 +00:00
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
This commit is contained in:
commit
36f8ba587d
@ -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