...
1
2
3
4
5 package v1alpha1
6
7 import (
8 "edge-infra.dev/pkg/k8s/runtime/inventory"
9 "k8s.io/api/core/v1"
10 metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
11 runtime "k8s.io/apimachinery/pkg/runtime"
12 )
13
14
15 func (in *Persistence) DeepCopyInto(out *Persistence) {
16 *out = *in
17 out.TypeMeta = in.TypeMeta
18 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
19 in.Spec.DeepCopyInto(&out.Spec)
20 in.Status.DeepCopyInto(&out.Status)
21 }
22
23
24 func (in *Persistence) DeepCopy() *Persistence {
25 if in == nil {
26 return nil
27 }
28 out := new(Persistence)
29 in.DeepCopyInto(out)
30 return out
31 }
32
33
34 func (in *Persistence) DeepCopyObject() runtime.Object {
35 if c := in.DeepCopy(); c != nil {
36 return c
37 }
38 return nil
39 }
40
41
42 func (in *PersistenceList) DeepCopyInto(out *PersistenceList) {
43 *out = *in
44 out.TypeMeta = in.TypeMeta
45 in.ListMeta.DeepCopyInto(&out.ListMeta)
46 if in.Items != nil {
47 in, out := &in.Items, &out.Items
48 *out = make([]Persistence, len(*in))
49 for i := range *in {
50 (*in)[i].DeepCopyInto(&(*out)[i])
51 }
52 }
53 }
54
55
56 func (in *PersistenceList) DeepCopy() *PersistenceList {
57 if in == nil {
58 return nil
59 }
60 out := new(PersistenceList)
61 in.DeepCopyInto(out)
62 return out
63 }
64
65
66 func (in *PersistenceList) DeepCopyObject() runtime.Object {
67 if c := in.DeepCopy(); c != nil {
68 return c
69 }
70 return nil
71 }
72
73
74 func (in *PersistenceSpec) DeepCopyInto(out *PersistenceSpec) {
75 *out = *in
76 if in.NodeSelectorTerms != nil {
77 in, out := &in.NodeSelectorTerms, &out.NodeSelectorTerms
78 *out = make([]v1.NodeSelectorTerm, len(*in))
79 for i := range *in {
80 (*in)[i].DeepCopyInto(&(*out)[i])
81 }
82 }
83 if in.NameSubstitution != nil {
84 in, out := &in.NameSubstitution, &out.NameSubstitution
85 *out = new(string)
86 **out = **in
87 }
88 in.StatefulSet.DeepCopyInto(&out.StatefulSet)
89 }
90
91
92 func (in *PersistenceSpec) DeepCopy() *PersistenceSpec {
93 if in == nil {
94 return nil
95 }
96 out := new(PersistenceSpec)
97 in.DeepCopyInto(out)
98 return out
99 }
100
101
102 func (in *PersistenceStatus) DeepCopyInto(out *PersistenceStatus) {
103 *out = *in
104 if in.Inventory != nil {
105 in, out := &in.Inventory, &out.Inventory
106 *out = new(inventory.ResourceInventory)
107 (*in).DeepCopyInto(*out)
108 }
109 if in.Conditions != nil {
110 in, out := &in.Conditions, &out.Conditions
111 *out = make([]metav1.Condition, len(*in))
112 for i := range *in {
113 (*in)[i].DeepCopyInto(&(*out)[i])
114 }
115 }
116 }
117
118
119 func (in *PersistenceStatus) DeepCopy() *PersistenceStatus {
120 if in == nil {
121 return nil
122 }
123 out := new(PersistenceStatus)
124 in.DeepCopyInto(out)
125 return out
126 }
127
View as plain text