1
2
3
18
19
20
21 package v1beta2
22
23 import (
24 "github.com/fluxcd/pkg/apis/kustomize"
25 "github.com/fluxcd/pkg/apis/meta"
26 apiextensionsv1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1"
27 "k8s.io/apimachinery/pkg/apis/meta/v1"
28 runtime "k8s.io/apimachinery/pkg/runtime"
29 )
30
31
32 func (in *CommonMetadata) DeepCopyInto(out *CommonMetadata) {
33 *out = *in
34 if in.Annotations != nil {
35 in, out := &in.Annotations, &out.Annotations
36 *out = make(map[string]string, len(*in))
37 for key, val := range *in {
38 (*out)[key] = val
39 }
40 }
41 if in.Labels != nil {
42 in, out := &in.Labels, &out.Labels
43 *out = make(map[string]string, len(*in))
44 for key, val := range *in {
45 (*out)[key] = val
46 }
47 }
48 }
49
50
51 func (in *CommonMetadata) DeepCopy() *CommonMetadata {
52 if in == nil {
53 return nil
54 }
55 out := new(CommonMetadata)
56 in.DeepCopyInto(out)
57 return out
58 }
59
60
61 func (in *CrossNamespaceSourceReference) DeepCopyInto(out *CrossNamespaceSourceReference) {
62 *out = *in
63 }
64
65
66 func (in *CrossNamespaceSourceReference) DeepCopy() *CrossNamespaceSourceReference {
67 if in == nil {
68 return nil
69 }
70 out := new(CrossNamespaceSourceReference)
71 in.DeepCopyInto(out)
72 return out
73 }
74
75
76 func (in *Decryption) DeepCopyInto(out *Decryption) {
77 *out = *in
78 if in.SecretRef != nil {
79 in, out := &in.SecretRef, &out.SecretRef
80 *out = new(meta.LocalObjectReference)
81 **out = **in
82 }
83 }
84
85
86 func (in *Decryption) DeepCopy() *Decryption {
87 if in == nil {
88 return nil
89 }
90 out := new(Decryption)
91 in.DeepCopyInto(out)
92 return out
93 }
94
95
96 func (in *Kustomization) DeepCopyInto(out *Kustomization) {
97 *out = *in
98 out.TypeMeta = in.TypeMeta
99 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
100 in.Spec.DeepCopyInto(&out.Spec)
101 in.Status.DeepCopyInto(&out.Status)
102 }
103
104
105 func (in *Kustomization) DeepCopy() *Kustomization {
106 if in == nil {
107 return nil
108 }
109 out := new(Kustomization)
110 in.DeepCopyInto(out)
111 return out
112 }
113
114
115 func (in *Kustomization) DeepCopyObject() runtime.Object {
116 if c := in.DeepCopy(); c != nil {
117 return c
118 }
119 return nil
120 }
121
122
123 func (in *KustomizationList) DeepCopyInto(out *KustomizationList) {
124 *out = *in
125 out.TypeMeta = in.TypeMeta
126 in.ListMeta.DeepCopyInto(&out.ListMeta)
127 if in.Items != nil {
128 in, out := &in.Items, &out.Items
129 *out = make([]Kustomization, len(*in))
130 for i := range *in {
131 (*in)[i].DeepCopyInto(&(*out)[i])
132 }
133 }
134 }
135
136
137 func (in *KustomizationList) DeepCopy() *KustomizationList {
138 if in == nil {
139 return nil
140 }
141 out := new(KustomizationList)
142 in.DeepCopyInto(out)
143 return out
144 }
145
146
147 func (in *KustomizationList) DeepCopyObject() runtime.Object {
148 if c := in.DeepCopy(); c != nil {
149 return c
150 }
151 return nil
152 }
153
154
155 func (in *KustomizationSpec) DeepCopyInto(out *KustomizationSpec) {
156 *out = *in
157 if in.CommonMetadata != nil {
158 in, out := &in.CommonMetadata, &out.CommonMetadata
159 *out = new(CommonMetadata)
160 (*in).DeepCopyInto(*out)
161 }
162 if in.DependsOn != nil {
163 in, out := &in.DependsOn, &out.DependsOn
164 *out = make([]meta.NamespacedObjectReference, len(*in))
165 copy(*out, *in)
166 }
167 if in.Decryption != nil {
168 in, out := &in.Decryption, &out.Decryption
169 *out = new(Decryption)
170 (*in).DeepCopyInto(*out)
171 }
172 out.Interval = in.Interval
173 if in.RetryInterval != nil {
174 in, out := &in.RetryInterval, &out.RetryInterval
175 *out = new(v1.Duration)
176 **out = **in
177 }
178 if in.KubeConfig != nil {
179 in, out := &in.KubeConfig, &out.KubeConfig
180 *out = new(meta.KubeConfigReference)
181 **out = **in
182 }
183 if in.PostBuild != nil {
184 in, out := &in.PostBuild, &out.PostBuild
185 *out = new(PostBuild)
186 (*in).DeepCopyInto(*out)
187 }
188 if in.HealthChecks != nil {
189 in, out := &in.HealthChecks, &out.HealthChecks
190 *out = make([]meta.NamespacedObjectKindReference, len(*in))
191 copy(*out, *in)
192 }
193 if in.Patches != nil {
194 in, out := &in.Patches, &out.Patches
195 *out = make([]kustomize.Patch, len(*in))
196 for i := range *in {
197 (*in)[i].DeepCopyInto(&(*out)[i])
198 }
199 }
200 if in.PatchesStrategicMerge != nil {
201 in, out := &in.PatchesStrategicMerge, &out.PatchesStrategicMerge
202 *out = make([]apiextensionsv1.JSON, len(*in))
203 for i := range *in {
204 (*in)[i].DeepCopyInto(&(*out)[i])
205 }
206 }
207 if in.PatchesJSON6902 != nil {
208 in, out := &in.PatchesJSON6902, &out.PatchesJSON6902
209 *out = make([]kustomize.JSON6902Patch, len(*in))
210 for i := range *in {
211 (*in)[i].DeepCopyInto(&(*out)[i])
212 }
213 }
214 if in.Images != nil {
215 in, out := &in.Images, &out.Images
216 *out = make([]kustomize.Image, len(*in))
217 copy(*out, *in)
218 }
219 out.SourceRef = in.SourceRef
220 if in.Timeout != nil {
221 in, out := &in.Timeout, &out.Timeout
222 *out = new(v1.Duration)
223 **out = **in
224 }
225 if in.Components != nil {
226 in, out := &in.Components, &out.Components
227 *out = make([]string, len(*in))
228 copy(*out, *in)
229 }
230 }
231
232
233 func (in *KustomizationSpec) DeepCopy() *KustomizationSpec {
234 if in == nil {
235 return nil
236 }
237 out := new(KustomizationSpec)
238 in.DeepCopyInto(out)
239 return out
240 }
241
242
243 func (in *KustomizationStatus) DeepCopyInto(out *KustomizationStatus) {
244 *out = *in
245 out.ReconcileRequestStatus = in.ReconcileRequestStatus
246 if in.Conditions != nil {
247 in, out := &in.Conditions, &out.Conditions
248 *out = make([]v1.Condition, len(*in))
249 for i := range *in {
250 (*in)[i].DeepCopyInto(&(*out)[i])
251 }
252 }
253 if in.Inventory != nil {
254 in, out := &in.Inventory, &out.Inventory
255 *out = new(ResourceInventory)
256 (*in).DeepCopyInto(*out)
257 }
258 }
259
260
261 func (in *KustomizationStatus) DeepCopy() *KustomizationStatus {
262 if in == nil {
263 return nil
264 }
265 out := new(KustomizationStatus)
266 in.DeepCopyInto(out)
267 return out
268 }
269
270
271 func (in *PostBuild) DeepCopyInto(out *PostBuild) {
272 *out = *in
273 if in.Substitute != nil {
274 in, out := &in.Substitute, &out.Substitute
275 *out = make(map[string]string, len(*in))
276 for key, val := range *in {
277 (*out)[key] = val
278 }
279 }
280 if in.SubstituteFrom != nil {
281 in, out := &in.SubstituteFrom, &out.SubstituteFrom
282 *out = make([]SubstituteReference, len(*in))
283 copy(*out, *in)
284 }
285 }
286
287
288 func (in *PostBuild) DeepCopy() *PostBuild {
289 if in == nil {
290 return nil
291 }
292 out := new(PostBuild)
293 in.DeepCopyInto(out)
294 return out
295 }
296
297
298 func (in *ResourceInventory) DeepCopyInto(out *ResourceInventory) {
299 *out = *in
300 if in.Entries != nil {
301 in, out := &in.Entries, &out.Entries
302 *out = make([]ResourceRef, len(*in))
303 copy(*out, *in)
304 }
305 }
306
307
308 func (in *ResourceInventory) DeepCopy() *ResourceInventory {
309 if in == nil {
310 return nil
311 }
312 out := new(ResourceInventory)
313 in.DeepCopyInto(out)
314 return out
315 }
316
317
318 func (in *ResourceRef) DeepCopyInto(out *ResourceRef) {
319 *out = *in
320 }
321
322
323 func (in *ResourceRef) DeepCopy() *ResourceRef {
324 if in == nil {
325 return nil
326 }
327 out := new(ResourceRef)
328 in.DeepCopyInto(out)
329 return out
330 }
331
332
333 func (in *SubstituteReference) DeepCopyInto(out *SubstituteReference) {
334 *out = *in
335 }
336
337
338 func (in *SubstituteReference) DeepCopy() *SubstituteReference {
339 if in == nil {
340 return nil
341 }
342 out := new(SubstituteReference)
343 in.DeepCopyInto(out)
344 return out
345 }
346
View as plain text