/
zz_generated.conversion.go
2309 lines (2141 loc) · 112 KB
/
zz_generated.conversion.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
//go:build !ignore_autogenerated
// +build !ignore_autogenerated
/*
Copyright AppsCode Inc. and Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
// Code generated by conversion-gen. DO NOT EDIT.
package v1alpha1
import (
unsafe "unsafe"
v1alpha2 "kubedb.dev/apimachinery/apis/kubedb/v1alpha2"
types "gomodules.xyz/encoding/json/types"
v1 "k8s.io/api/core/v1"
conversion "k8s.io/apimachinery/pkg/conversion"
runtime "k8s.io/apimachinery/pkg/runtime"
intstr "k8s.io/apimachinery/pkg/util/intstr"
apiv1 "kmodules.xyz/monitoring-agent-api/api/v1"
offshootapiapiv1 "kmodules.xyz/offshoot-api/api/v1"
)
func init() {
localSchemeBuilder.Register(RegisterConversions)
}
// RegisterConversions adds conversion functions to the given scheme.
// Public to allow building arbitrary schemes.
func RegisterConversions(s *runtime.Scheme) error {
if err := s.AddGeneratedConversionFunc((*Elasticsearch)(nil), (*v1alpha2.Elasticsearch)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha1_Elasticsearch_To_v1alpha2_Elasticsearch(a.(*Elasticsearch), b.(*v1alpha2.Elasticsearch), scope)
}); err != nil {
return err
}
if err := s.AddGeneratedConversionFunc((*v1alpha2.Elasticsearch)(nil), (*Elasticsearch)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha2_Elasticsearch_To_v1alpha1_Elasticsearch(a.(*v1alpha2.Elasticsearch), b.(*Elasticsearch), scope)
}); err != nil {
return err
}
if err := s.AddGeneratedConversionFunc((*ElasticsearchList)(nil), (*v1alpha2.ElasticsearchList)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha1_ElasticsearchList_To_v1alpha2_ElasticsearchList(a.(*ElasticsearchList), b.(*v1alpha2.ElasticsearchList), scope)
}); err != nil {
return err
}
if err := s.AddGeneratedConversionFunc((*v1alpha2.ElasticsearchList)(nil), (*ElasticsearchList)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha2_ElasticsearchList_To_v1alpha1_ElasticsearchList(a.(*v1alpha2.ElasticsearchList), b.(*ElasticsearchList), scope)
}); err != nil {
return err
}
if err := s.AddGeneratedConversionFunc((*Etcd)(nil), (*v1alpha2.Etcd)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha1_Etcd_To_v1alpha2_Etcd(a.(*Etcd), b.(*v1alpha2.Etcd), scope)
}); err != nil {
return err
}
if err := s.AddGeneratedConversionFunc((*v1alpha2.Etcd)(nil), (*Etcd)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha2_Etcd_To_v1alpha1_Etcd(a.(*v1alpha2.Etcd), b.(*Etcd), scope)
}); err != nil {
return err
}
if err := s.AddGeneratedConversionFunc((*EtcdList)(nil), (*v1alpha2.EtcdList)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha1_EtcdList_To_v1alpha2_EtcdList(a.(*EtcdList), b.(*v1alpha2.EtcdList), scope)
}); err != nil {
return err
}
if err := s.AddGeneratedConversionFunc((*v1alpha2.EtcdList)(nil), (*EtcdList)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha2_EtcdList_To_v1alpha1_EtcdList(a.(*v1alpha2.EtcdList), b.(*EtcdList), scope)
}); err != nil {
return err
}
if err := s.AddGeneratedConversionFunc((*MariaDB)(nil), (*v1alpha2.MariaDB)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha1_MariaDB_To_v1alpha2_MariaDB(a.(*MariaDB), b.(*v1alpha2.MariaDB), scope)
}); err != nil {
return err
}
if err := s.AddGeneratedConversionFunc((*v1alpha2.MariaDB)(nil), (*MariaDB)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha2_MariaDB_To_v1alpha1_MariaDB(a.(*v1alpha2.MariaDB), b.(*MariaDB), scope)
}); err != nil {
return err
}
if err := s.AddGeneratedConversionFunc((*MariaDBList)(nil), (*v1alpha2.MariaDBList)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha1_MariaDBList_To_v1alpha2_MariaDBList(a.(*MariaDBList), b.(*v1alpha2.MariaDBList), scope)
}); err != nil {
return err
}
if err := s.AddGeneratedConversionFunc((*v1alpha2.MariaDBList)(nil), (*MariaDBList)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha2_MariaDBList_To_v1alpha1_MariaDBList(a.(*v1alpha2.MariaDBList), b.(*MariaDBList), scope)
}); err != nil {
return err
}
if err := s.AddGeneratedConversionFunc((*MemberSecret)(nil), (*v1alpha2.MemberSecret)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha1_MemberSecret_To_v1alpha2_MemberSecret(a.(*MemberSecret), b.(*v1alpha2.MemberSecret), scope)
}); err != nil {
return err
}
if err := s.AddGeneratedConversionFunc((*v1alpha2.MemberSecret)(nil), (*MemberSecret)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha2_MemberSecret_To_v1alpha1_MemberSecret(a.(*v1alpha2.MemberSecret), b.(*MemberSecret), scope)
}); err != nil {
return err
}
if err := s.AddGeneratedConversionFunc((*Memcached)(nil), (*v1alpha2.Memcached)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha1_Memcached_To_v1alpha2_Memcached(a.(*Memcached), b.(*v1alpha2.Memcached), scope)
}); err != nil {
return err
}
if err := s.AddGeneratedConversionFunc((*v1alpha2.Memcached)(nil), (*Memcached)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha2_Memcached_To_v1alpha1_Memcached(a.(*v1alpha2.Memcached), b.(*Memcached), scope)
}); err != nil {
return err
}
if err := s.AddGeneratedConversionFunc((*MemcachedList)(nil), (*v1alpha2.MemcachedList)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha1_MemcachedList_To_v1alpha2_MemcachedList(a.(*MemcachedList), b.(*v1alpha2.MemcachedList), scope)
}); err != nil {
return err
}
if err := s.AddGeneratedConversionFunc((*v1alpha2.MemcachedList)(nil), (*MemcachedList)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha2_MemcachedList_To_v1alpha1_MemcachedList(a.(*v1alpha2.MemcachedList), b.(*MemcachedList), scope)
}); err != nil {
return err
}
if err := s.AddGeneratedConversionFunc((*MongoDB)(nil), (*v1alpha2.MongoDB)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha1_MongoDB_To_v1alpha2_MongoDB(a.(*MongoDB), b.(*v1alpha2.MongoDB), scope)
}); err != nil {
return err
}
if err := s.AddGeneratedConversionFunc((*v1alpha2.MongoDB)(nil), (*MongoDB)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha2_MongoDB_To_v1alpha1_MongoDB(a.(*v1alpha2.MongoDB), b.(*MongoDB), scope)
}); err != nil {
return err
}
if err := s.AddGeneratedConversionFunc((*MongoDBConfigNode)(nil), (*v1alpha2.MongoDBConfigNode)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha1_MongoDBConfigNode_To_v1alpha2_MongoDBConfigNode(a.(*MongoDBConfigNode), b.(*v1alpha2.MongoDBConfigNode), scope)
}); err != nil {
return err
}
if err := s.AddGeneratedConversionFunc((*MongoDBList)(nil), (*v1alpha2.MongoDBList)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha1_MongoDBList_To_v1alpha2_MongoDBList(a.(*MongoDBList), b.(*v1alpha2.MongoDBList), scope)
}); err != nil {
return err
}
if err := s.AddGeneratedConversionFunc((*v1alpha2.MongoDBList)(nil), (*MongoDBList)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha2_MongoDBList_To_v1alpha1_MongoDBList(a.(*v1alpha2.MongoDBList), b.(*MongoDBList), scope)
}); err != nil {
return err
}
if err := s.AddGeneratedConversionFunc((*v1alpha2.MongoDBMongosNode)(nil), (*MongoDBMongosNode)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha2_MongoDBMongosNode_To_v1alpha1_MongoDBMongosNode(a.(*v1alpha2.MongoDBMongosNode), b.(*MongoDBMongosNode), scope)
}); err != nil {
return err
}
if err := s.AddGeneratedConversionFunc((*v1alpha2.MongoDBReplicaSet)(nil), (*MongoDBReplicaSet)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha2_MongoDBReplicaSet_To_v1alpha1_MongoDBReplicaSet(a.(*v1alpha2.MongoDBReplicaSet), b.(*MongoDBReplicaSet), scope)
}); err != nil {
return err
}
if err := s.AddGeneratedConversionFunc((*MongoDBShardNode)(nil), (*v1alpha2.MongoDBShardNode)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha1_MongoDBShardNode_To_v1alpha2_MongoDBShardNode(a.(*MongoDBShardNode), b.(*v1alpha2.MongoDBShardNode), scope)
}); err != nil {
return err
}
if err := s.AddGeneratedConversionFunc((*MongoDBShardingTopology)(nil), (*v1alpha2.MongoDBShardingTopology)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha1_MongoDBShardingTopology_To_v1alpha2_MongoDBShardingTopology(a.(*MongoDBShardingTopology), b.(*v1alpha2.MongoDBShardingTopology), scope)
}); err != nil {
return err
}
if err := s.AddGeneratedConversionFunc((*v1alpha2.MongoDBShardingTopology)(nil), (*MongoDBShardingTopology)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha2_MongoDBShardingTopology_To_v1alpha1_MongoDBShardingTopology(a.(*v1alpha2.MongoDBShardingTopology), b.(*MongoDBShardingTopology), scope)
}); err != nil {
return err
}
if err := s.AddGeneratedConversionFunc((*MySQL)(nil), (*v1alpha2.MySQL)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha1_MySQL_To_v1alpha2_MySQL(a.(*MySQL), b.(*v1alpha2.MySQL), scope)
}); err != nil {
return err
}
if err := s.AddGeneratedConversionFunc((*v1alpha2.MySQL)(nil), (*MySQL)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha2_MySQL_To_v1alpha1_MySQL(a.(*v1alpha2.MySQL), b.(*MySQL), scope)
}); err != nil {
return err
}
if err := s.AddGeneratedConversionFunc((*v1alpha2.MySQLGroupSpec)(nil), (*MySQLGroupSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha2_MySQLGroupSpec_To_v1alpha1_MySQLGroupSpec(a.(*v1alpha2.MySQLGroupSpec), b.(*MySQLGroupSpec), scope)
}); err != nil {
return err
}
if err := s.AddGeneratedConversionFunc((*MySQLList)(nil), (*v1alpha2.MySQLList)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha1_MySQLList_To_v1alpha2_MySQLList(a.(*MySQLList), b.(*v1alpha2.MySQLList), scope)
}); err != nil {
return err
}
if err := s.AddGeneratedConversionFunc((*v1alpha2.MySQLList)(nil), (*MySQLList)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha2_MySQLList_To_v1alpha1_MySQLList(a.(*v1alpha2.MySQLList), b.(*MySQLList), scope)
}); err != nil {
return err
}
if err := s.AddGeneratedConversionFunc((*MySQLTopology)(nil), (*v1alpha2.MySQLTopology)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha1_MySQLTopology_To_v1alpha2_MySQLTopology(a.(*MySQLTopology), b.(*v1alpha2.MySQLTopology), scope)
}); err != nil {
return err
}
if err := s.AddGeneratedConversionFunc((*PerconaXtraDB)(nil), (*v1alpha2.PerconaXtraDB)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha1_PerconaXtraDB_To_v1alpha2_PerconaXtraDB(a.(*PerconaXtraDB), b.(*v1alpha2.PerconaXtraDB), scope)
}); err != nil {
return err
}
if err := s.AddGeneratedConversionFunc((*v1alpha2.PerconaXtraDB)(nil), (*PerconaXtraDB)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha2_PerconaXtraDB_To_v1alpha1_PerconaXtraDB(a.(*v1alpha2.PerconaXtraDB), b.(*PerconaXtraDB), scope)
}); err != nil {
return err
}
if err := s.AddGeneratedConversionFunc((*PerconaXtraDBList)(nil), (*v1alpha2.PerconaXtraDBList)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha1_PerconaXtraDBList_To_v1alpha2_PerconaXtraDBList(a.(*PerconaXtraDBList), b.(*v1alpha2.PerconaXtraDBList), scope)
}); err != nil {
return err
}
if err := s.AddGeneratedConversionFunc((*v1alpha2.PerconaXtraDBList)(nil), (*PerconaXtraDBList)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha2_PerconaXtraDBList_To_v1alpha1_PerconaXtraDBList(a.(*v1alpha2.PerconaXtraDBList), b.(*PerconaXtraDBList), scope)
}); err != nil {
return err
}
if err := s.AddGeneratedConversionFunc((*Postgres)(nil), (*v1alpha2.Postgres)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha1_Postgres_To_v1alpha2_Postgres(a.(*Postgres), b.(*v1alpha2.Postgres), scope)
}); err != nil {
return err
}
if err := s.AddGeneratedConversionFunc((*v1alpha2.Postgres)(nil), (*Postgres)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha2_Postgres_To_v1alpha1_Postgres(a.(*v1alpha2.Postgres), b.(*Postgres), scope)
}); err != nil {
return err
}
if err := s.AddGeneratedConversionFunc((*PostgresList)(nil), (*v1alpha2.PostgresList)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha1_PostgresList_To_v1alpha2_PostgresList(a.(*PostgresList), b.(*v1alpha2.PostgresList), scope)
}); err != nil {
return err
}
if err := s.AddGeneratedConversionFunc((*v1alpha2.PostgresList)(nil), (*PostgresList)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha2_PostgresList_To_v1alpha1_PostgresList(a.(*v1alpha2.PostgresList), b.(*PostgresList), scope)
}); err != nil {
return err
}
if err := s.AddGeneratedConversionFunc((*RecoveryTarget)(nil), (*v1alpha2.RecoveryTarget)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha1_RecoveryTarget_To_v1alpha2_RecoveryTarget(a.(*RecoveryTarget), b.(*v1alpha2.RecoveryTarget), scope)
}); err != nil {
return err
}
if err := s.AddGeneratedConversionFunc((*v1alpha2.RecoveryTarget)(nil), (*RecoveryTarget)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha2_RecoveryTarget_To_v1alpha1_RecoveryTarget(a.(*v1alpha2.RecoveryTarget), b.(*RecoveryTarget), scope)
}); err != nil {
return err
}
if err := s.AddGeneratedConversionFunc((*Redis)(nil), (*v1alpha2.Redis)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha1_Redis_To_v1alpha2_Redis(a.(*Redis), b.(*v1alpha2.Redis), scope)
}); err != nil {
return err
}
if err := s.AddGeneratedConversionFunc((*v1alpha2.Redis)(nil), (*Redis)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha2_Redis_To_v1alpha1_Redis(a.(*v1alpha2.Redis), b.(*Redis), scope)
}); err != nil {
return err
}
if err := s.AddGeneratedConversionFunc((*RedisClusterSpec)(nil), (*v1alpha2.RedisClusterSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha1_RedisClusterSpec_To_v1alpha2_RedisClusterSpec(a.(*RedisClusterSpec), b.(*v1alpha2.RedisClusterSpec), scope)
}); err != nil {
return err
}
if err := s.AddGeneratedConversionFunc((*v1alpha2.RedisClusterSpec)(nil), (*RedisClusterSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha2_RedisClusterSpec_To_v1alpha1_RedisClusterSpec(a.(*v1alpha2.RedisClusterSpec), b.(*RedisClusterSpec), scope)
}); err != nil {
return err
}
if err := s.AddGeneratedConversionFunc((*RedisList)(nil), (*v1alpha2.RedisList)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha1_RedisList_To_v1alpha2_RedisList(a.(*RedisList), b.(*v1alpha2.RedisList), scope)
}); err != nil {
return err
}
if err := s.AddGeneratedConversionFunc((*v1alpha2.RedisList)(nil), (*RedisList)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha2_RedisList_To_v1alpha1_RedisList(a.(*v1alpha2.RedisList), b.(*RedisList), scope)
}); err != nil {
return err
}
if err := s.AddGeneratedConversionFunc((*ScriptSourceSpec)(nil), (*v1alpha2.ScriptSourceSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha1_ScriptSourceSpec_To_v1alpha2_ScriptSourceSpec(a.(*ScriptSourceSpec), b.(*v1alpha2.ScriptSourceSpec), scope)
}); err != nil {
return err
}
if err := s.AddGeneratedConversionFunc((*TLSPolicy)(nil), (*v1alpha2.TLSPolicy)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha1_TLSPolicy_To_v1alpha2_TLSPolicy(a.(*TLSPolicy), b.(*v1alpha2.TLSPolicy), scope)
}); err != nil {
return err
}
if err := s.AddGeneratedConversionFunc((*v1alpha2.TLSPolicy)(nil), (*TLSPolicy)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha2_TLSPolicy_To_v1alpha1_TLSPolicy(a.(*v1alpha2.TLSPolicy), b.(*TLSPolicy), scope)
}); err != nil {
return err
}
if err := s.AddConversionFunc((*int64)(nil), (*types.IntHash)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_int64_To_types_IntHash(a.(*int64), b.(*types.IntHash), scope)
}); err != nil {
return err
}
if err := s.AddConversionFunc((*types.IntHash)(nil), (*int64)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_types_IntHash_To_int64(a.(*types.IntHash), b.(*int64), scope)
}); err != nil {
return err
}
if err := s.AddConversionFunc((*ElasticsearchClusterTopology)(nil), (*v1alpha2.ElasticsearchClusterTopology)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha1_ElasticsearchClusterTopology_To_v1alpha2_ElasticsearchClusterTopology(a.(*ElasticsearchClusterTopology), b.(*v1alpha2.ElasticsearchClusterTopology), scope)
}); err != nil {
return err
}
if err := s.AddConversionFunc((*ElasticsearchNode)(nil), (*v1alpha2.ElasticsearchNode)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha1_ElasticsearchNode_To_v1alpha2_ElasticsearchNode(a.(*ElasticsearchNode), b.(*v1alpha2.ElasticsearchNode), scope)
}); err != nil {
return err
}
if err := s.AddConversionFunc((*ElasticsearchSpec)(nil), (*v1alpha2.ElasticsearchSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha1_ElasticsearchSpec_To_v1alpha2_ElasticsearchSpec(a.(*ElasticsearchSpec), b.(*v1alpha2.ElasticsearchSpec), scope)
}); err != nil {
return err
}
if err := s.AddConversionFunc((*ElasticsearchStatus)(nil), (*v1alpha2.ElasticsearchStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha1_ElasticsearchStatus_To_v1alpha2_ElasticsearchStatus(a.(*ElasticsearchStatus), b.(*v1alpha2.ElasticsearchStatus), scope)
}); err != nil {
return err
}
if err := s.AddConversionFunc((*EtcdSpec)(nil), (*v1alpha2.EtcdSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha1_EtcdSpec_To_v1alpha2_EtcdSpec(a.(*EtcdSpec), b.(*v1alpha2.EtcdSpec), scope)
}); err != nil {
return err
}
if err := s.AddConversionFunc((*EtcdStatus)(nil), (*v1alpha2.EtcdStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha1_EtcdStatus_To_v1alpha2_EtcdStatus(a.(*EtcdStatus), b.(*v1alpha2.EtcdStatus), scope)
}); err != nil {
return err
}
if err := s.AddConversionFunc((*InitSpec)(nil), (*v1alpha2.InitSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha1_InitSpec_To_v1alpha2_InitSpec(a.(*InitSpec), b.(*v1alpha2.InitSpec), scope)
}); err != nil {
return err
}
if err := s.AddConversionFunc((*LeaderElectionConfig)(nil), (*v1alpha2.PostgreLeaderElectionConfig)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha1_LeaderElectionConfig_To_v1alpha2_PostgreLeaderElectionConfig(a.(*LeaderElectionConfig), b.(*v1alpha2.PostgreLeaderElectionConfig), scope)
}); err != nil {
return err
}
if err := s.AddConversionFunc((*MariaDBSpec)(nil), (*v1alpha2.MariaDBSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha1_MariaDBSpec_To_v1alpha2_MariaDBSpec(a.(*MariaDBSpec), b.(*v1alpha2.MariaDBSpec), scope)
}); err != nil {
return err
}
if err := s.AddConversionFunc((*MariaDBStatus)(nil), (*v1alpha2.MariaDBStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha1_MariaDBStatus_To_v1alpha2_MariaDBStatus(a.(*MariaDBStatus), b.(*v1alpha2.MariaDBStatus), scope)
}); err != nil {
return err
}
if err := s.AddConversionFunc((*MemcachedSpec)(nil), (*v1alpha2.MemcachedSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha1_MemcachedSpec_To_v1alpha2_MemcachedSpec(a.(*MemcachedSpec), b.(*v1alpha2.MemcachedSpec), scope)
}); err != nil {
return err
}
if err := s.AddConversionFunc((*MemcachedStatus)(nil), (*v1alpha2.MemcachedStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha1_MemcachedStatus_To_v1alpha2_MemcachedStatus(a.(*MemcachedStatus), b.(*v1alpha2.MemcachedStatus), scope)
}); err != nil {
return err
}
if err := s.AddConversionFunc((*MongoDBMongosNode)(nil), (*v1alpha2.MongoDBMongosNode)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha1_MongoDBMongosNode_To_v1alpha2_MongoDBMongosNode(a.(*MongoDBMongosNode), b.(*v1alpha2.MongoDBMongosNode), scope)
}); err != nil {
return err
}
if err := s.AddConversionFunc((*MongoDBNode)(nil), (*v1alpha2.MongoDBNode)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha1_MongoDBNode_To_v1alpha2_MongoDBNode(a.(*MongoDBNode), b.(*v1alpha2.MongoDBNode), scope)
}); err != nil {
return err
}
if err := s.AddConversionFunc((*MongoDBReplicaSet)(nil), (*v1alpha2.MongoDBReplicaSet)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha1_MongoDBReplicaSet_To_v1alpha2_MongoDBReplicaSet(a.(*MongoDBReplicaSet), b.(*v1alpha2.MongoDBReplicaSet), scope)
}); err != nil {
return err
}
if err := s.AddConversionFunc((*MongoDBSpec)(nil), (*v1alpha2.MongoDBSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha1_MongoDBSpec_To_v1alpha2_MongoDBSpec(a.(*MongoDBSpec), b.(*v1alpha2.MongoDBSpec), scope)
}); err != nil {
return err
}
if err := s.AddConversionFunc((*MongoDBStatus)(nil), (*v1alpha2.MongoDBStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha1_MongoDBStatus_To_v1alpha2_MongoDBStatus(a.(*MongoDBStatus), b.(*v1alpha2.MongoDBStatus), scope)
}); err != nil {
return err
}
if err := s.AddConversionFunc((*MySQLGroupSpec)(nil), (*v1alpha2.MySQLGroupSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha1_MySQLGroupSpec_To_v1alpha2_MySQLGroupSpec(a.(*MySQLGroupSpec), b.(*v1alpha2.MySQLGroupSpec), scope)
}); err != nil {
return err
}
if err := s.AddConversionFunc((*MySQLSpec)(nil), (*v1alpha2.MySQLSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha1_MySQLSpec_To_v1alpha2_MySQLSpec(a.(*MySQLSpec), b.(*v1alpha2.MySQLSpec), scope)
}); err != nil {
return err
}
if err := s.AddConversionFunc((*MySQLStatus)(nil), (*v1alpha2.MySQLStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha1_MySQLStatus_To_v1alpha2_MySQLStatus(a.(*MySQLStatus), b.(*v1alpha2.MySQLStatus), scope)
}); err != nil {
return err
}
if err := s.AddConversionFunc((*PerconaXtraDBSpec)(nil), (*v1alpha2.PerconaXtraDBSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha1_PerconaXtraDBSpec_To_v1alpha2_PerconaXtraDBSpec(a.(*PerconaXtraDBSpec), b.(*v1alpha2.PerconaXtraDBSpec), scope)
}); err != nil {
return err
}
if err := s.AddConversionFunc((*PerconaXtraDBStatus)(nil), (*v1alpha2.PerconaXtraDBStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha1_PerconaXtraDBStatus_To_v1alpha2_PerconaXtraDBStatus(a.(*PerconaXtraDBStatus), b.(*v1alpha2.PerconaXtraDBStatus), scope)
}); err != nil {
return err
}
if err := s.AddConversionFunc((*PostgresSpec)(nil), (*v1alpha2.PostgresSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha1_PostgresSpec_To_v1alpha2_PostgresSpec(a.(*PostgresSpec), b.(*v1alpha2.PostgresSpec), scope)
}); err != nil {
return err
}
if err := s.AddConversionFunc((*PostgresStatus)(nil), (*v1alpha2.PostgresStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha1_PostgresStatus_To_v1alpha2_PostgresStatus(a.(*PostgresStatus), b.(*v1alpha2.PostgresStatus), scope)
}); err != nil {
return err
}
if err := s.AddConversionFunc((*RedisSpec)(nil), (*v1alpha2.RedisSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha1_RedisSpec_To_v1alpha2_RedisSpec(a.(*RedisSpec), b.(*v1alpha2.RedisSpec), scope)
}); err != nil {
return err
}
if err := s.AddConversionFunc((*RedisStatus)(nil), (*v1alpha2.RedisStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha1_RedisStatus_To_v1alpha2_RedisStatus(a.(*RedisStatus), b.(*v1alpha2.RedisStatus), scope)
}); err != nil {
return err
}
if err := s.AddConversionFunc((*v1alpha2.ElasticsearchClusterTopology)(nil), (*ElasticsearchClusterTopology)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha2_ElasticsearchClusterTopology_To_v1alpha1_ElasticsearchClusterTopology(a.(*v1alpha2.ElasticsearchClusterTopology), b.(*ElasticsearchClusterTopology), scope)
}); err != nil {
return err
}
if err := s.AddConversionFunc((*v1alpha2.ElasticsearchNode)(nil), (*ElasticsearchNode)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha2_ElasticsearchNode_To_v1alpha1_ElasticsearchNode(a.(*v1alpha2.ElasticsearchNode), b.(*ElasticsearchNode), scope)
}); err != nil {
return err
}
if err := s.AddConversionFunc((*v1alpha2.ElasticsearchSpec)(nil), (*ElasticsearchSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha2_ElasticsearchSpec_To_v1alpha1_ElasticsearchSpec(a.(*v1alpha2.ElasticsearchSpec), b.(*ElasticsearchSpec), scope)
}); err != nil {
return err
}
if err := s.AddConversionFunc((*v1alpha2.ElasticsearchStatus)(nil), (*ElasticsearchStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha2_ElasticsearchStatus_To_v1alpha1_ElasticsearchStatus(a.(*v1alpha2.ElasticsearchStatus), b.(*ElasticsearchStatus), scope)
}); err != nil {
return err
}
if err := s.AddConversionFunc((*v1alpha2.EtcdSpec)(nil), (*EtcdSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha2_EtcdSpec_To_v1alpha1_EtcdSpec(a.(*v1alpha2.EtcdSpec), b.(*EtcdSpec), scope)
}); err != nil {
return err
}
if err := s.AddConversionFunc((*v1alpha2.EtcdStatus)(nil), (*EtcdStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha2_EtcdStatus_To_v1alpha1_EtcdStatus(a.(*v1alpha2.EtcdStatus), b.(*EtcdStatus), scope)
}); err != nil {
return err
}
if err := s.AddConversionFunc((*v1alpha2.InitSpec)(nil), (*InitSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha2_InitSpec_To_v1alpha1_InitSpec(a.(*v1alpha2.InitSpec), b.(*InitSpec), scope)
}); err != nil {
return err
}
if err := s.AddConversionFunc((*v1alpha2.MariaDBSpec)(nil), (*MariaDBSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha2_MariaDBSpec_To_v1alpha1_MariaDBSpec(a.(*v1alpha2.MariaDBSpec), b.(*MariaDBSpec), scope)
}); err != nil {
return err
}
if err := s.AddConversionFunc((*v1alpha2.MariaDBStatus)(nil), (*MariaDBStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha2_MariaDBStatus_To_v1alpha1_MariaDBStatus(a.(*v1alpha2.MariaDBStatus), b.(*MariaDBStatus), scope)
}); err != nil {
return err
}
if err := s.AddConversionFunc((*v1alpha2.MemcachedSpec)(nil), (*MemcachedSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha2_MemcachedSpec_To_v1alpha1_MemcachedSpec(a.(*v1alpha2.MemcachedSpec), b.(*MemcachedSpec), scope)
}); err != nil {
return err
}
if err := s.AddConversionFunc((*v1alpha2.MemcachedStatus)(nil), (*MemcachedStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha2_MemcachedStatus_To_v1alpha1_MemcachedStatus(a.(*v1alpha2.MemcachedStatus), b.(*MemcachedStatus), scope)
}); err != nil {
return err
}
if err := s.AddConversionFunc((*v1alpha2.MongoDBConfigNode)(nil), (*MongoDBConfigNode)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha2_MongoDBConfigNode_To_v1alpha1_MongoDBConfigNode(a.(*v1alpha2.MongoDBConfigNode), b.(*MongoDBConfigNode), scope)
}); err != nil {
return err
}
if err := s.AddConversionFunc((*v1alpha2.MongoDBNode)(nil), (*MongoDBNode)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha2_MongoDBNode_To_v1alpha1_MongoDBNode(a.(*v1alpha2.MongoDBNode), b.(*MongoDBNode), scope)
}); err != nil {
return err
}
if err := s.AddConversionFunc((*v1alpha2.MongoDBShardNode)(nil), (*MongoDBShardNode)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha2_MongoDBShardNode_To_v1alpha1_MongoDBShardNode(a.(*v1alpha2.MongoDBShardNode), b.(*MongoDBShardNode), scope)
}); err != nil {
return err
}
if err := s.AddConversionFunc((*v1alpha2.MongoDBSpec)(nil), (*MongoDBSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha2_MongoDBSpec_To_v1alpha1_MongoDBSpec(a.(*v1alpha2.MongoDBSpec), b.(*MongoDBSpec), scope)
}); err != nil {
return err
}
if err := s.AddConversionFunc((*v1alpha2.MongoDBStatus)(nil), (*MongoDBStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha2_MongoDBStatus_To_v1alpha1_MongoDBStatus(a.(*v1alpha2.MongoDBStatus), b.(*MongoDBStatus), scope)
}); err != nil {
return err
}
if err := s.AddConversionFunc((*v1alpha2.MySQLSpec)(nil), (*MySQLSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha2_MySQLSpec_To_v1alpha1_MySQLSpec(a.(*v1alpha2.MySQLSpec), b.(*MySQLSpec), scope)
}); err != nil {
return err
}
if err := s.AddConversionFunc((*v1alpha2.MySQLStatus)(nil), (*MySQLStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha2_MySQLStatus_To_v1alpha1_MySQLStatus(a.(*v1alpha2.MySQLStatus), b.(*MySQLStatus), scope)
}); err != nil {
return err
}
if err := s.AddConversionFunc((*v1alpha2.MySQLTopology)(nil), (*MySQLTopology)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha2_MySQLTopology_To_v1alpha1_MySQLTopology(a.(*v1alpha2.MySQLTopology), b.(*MySQLTopology), scope)
}); err != nil {
return err
}
if err := s.AddConversionFunc((*v1alpha2.PerconaXtraDBSpec)(nil), (*PerconaXtraDBSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha2_PerconaXtraDBSpec_To_v1alpha1_PerconaXtraDBSpec(a.(*v1alpha2.PerconaXtraDBSpec), b.(*PerconaXtraDBSpec), scope)
}); err != nil {
return err
}
if err := s.AddConversionFunc((*v1alpha2.PerconaXtraDBStatus)(nil), (*PerconaXtraDBStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha2_PerconaXtraDBStatus_To_v1alpha1_PerconaXtraDBStatus(a.(*v1alpha2.PerconaXtraDBStatus), b.(*PerconaXtraDBStatus), scope)
}); err != nil {
return err
}
if err := s.AddConversionFunc((*v1alpha2.PostgreLeaderElectionConfig)(nil), (*LeaderElectionConfig)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha2_PostgreLeaderElectionConfig_To_v1alpha1_LeaderElectionConfig(a.(*v1alpha2.PostgreLeaderElectionConfig), b.(*LeaderElectionConfig), scope)
}); err != nil {
return err
}
if err := s.AddConversionFunc((*v1alpha2.PostgresSpec)(nil), (*PostgresSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha2_PostgresSpec_To_v1alpha1_PostgresSpec(a.(*v1alpha2.PostgresSpec), b.(*PostgresSpec), scope)
}); err != nil {
return err
}
if err := s.AddConversionFunc((*v1alpha2.PostgresStatus)(nil), (*PostgresStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha2_PostgresStatus_To_v1alpha1_PostgresStatus(a.(*v1alpha2.PostgresStatus), b.(*PostgresStatus), scope)
}); err != nil {
return err
}
if err := s.AddConversionFunc((*v1alpha2.RedisSpec)(nil), (*RedisSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha2_RedisSpec_To_v1alpha1_RedisSpec(a.(*v1alpha2.RedisSpec), b.(*RedisSpec), scope)
}); err != nil {
return err
}
if err := s.AddConversionFunc((*v1alpha2.RedisStatus)(nil), (*RedisStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha2_RedisStatus_To_v1alpha1_RedisStatus(a.(*v1alpha2.RedisStatus), b.(*RedisStatus), scope)
}); err != nil {
return err
}
if err := s.AddConversionFunc((*v1alpha2.ScriptSourceSpec)(nil), (*ScriptSourceSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha2_ScriptSourceSpec_To_v1alpha1_ScriptSourceSpec(a.(*v1alpha2.ScriptSourceSpec), b.(*ScriptSourceSpec), scope)
}); err != nil {
return err
}
return nil
}
func autoConvert_v1alpha1_Elasticsearch_To_v1alpha2_Elasticsearch(in *Elasticsearch, out *v1alpha2.Elasticsearch, s conversion.Scope) error {
out.ObjectMeta = in.ObjectMeta
if err := Convert_v1alpha1_ElasticsearchSpec_To_v1alpha2_ElasticsearchSpec(&in.Spec, &out.Spec, s); err != nil {
return err
}
if err := Convert_v1alpha1_ElasticsearchStatus_To_v1alpha2_ElasticsearchStatus(&in.Status, &out.Status, s); err != nil {
return err
}
return nil
}
// Convert_v1alpha1_Elasticsearch_To_v1alpha2_Elasticsearch is an autogenerated conversion function.
func Convert_v1alpha1_Elasticsearch_To_v1alpha2_Elasticsearch(in *Elasticsearch, out *v1alpha2.Elasticsearch, s conversion.Scope) error {
return autoConvert_v1alpha1_Elasticsearch_To_v1alpha2_Elasticsearch(in, out, s)
}
func autoConvert_v1alpha2_Elasticsearch_To_v1alpha1_Elasticsearch(in *v1alpha2.Elasticsearch, out *Elasticsearch, s conversion.Scope) error {
out.ObjectMeta = in.ObjectMeta
if err := Convert_v1alpha2_ElasticsearchSpec_To_v1alpha1_ElasticsearchSpec(&in.Spec, &out.Spec, s); err != nil {
return err
}
if err := Convert_v1alpha2_ElasticsearchStatus_To_v1alpha1_ElasticsearchStatus(&in.Status, &out.Status, s); err != nil {
return err
}
return nil
}
// Convert_v1alpha2_Elasticsearch_To_v1alpha1_Elasticsearch is an autogenerated conversion function.
func Convert_v1alpha2_Elasticsearch_To_v1alpha1_Elasticsearch(in *v1alpha2.Elasticsearch, out *Elasticsearch, s conversion.Scope) error {
return autoConvert_v1alpha2_Elasticsearch_To_v1alpha1_Elasticsearch(in, out, s)
}
func autoConvert_v1alpha1_ElasticsearchClusterTopology_To_v1alpha2_ElasticsearchClusterTopology(in *ElasticsearchClusterTopology, out *v1alpha2.ElasticsearchClusterTopology, s conversion.Scope) error {
if err := Convert_v1alpha1_ElasticsearchNode_To_v1alpha2_ElasticsearchNode(&in.Master, &out.Master, s); err != nil {
return err
}
// WARNING: in.Data requires manual conversion: inconvertible types (kubedb.dev/apimachinery/apis/kubedb/v1alpha1.ElasticsearchNode vs *kubedb.dev/apimachinery/apis/kubedb/v1alpha2.ElasticsearchNode)
// WARNING: in.Client requires manual conversion: does not exist in peer-type
return nil
}
func autoConvert_v1alpha2_ElasticsearchClusterTopology_To_v1alpha1_ElasticsearchClusterTopology(in *v1alpha2.ElasticsearchClusterTopology, out *ElasticsearchClusterTopology, s conversion.Scope) error {
if err := Convert_v1alpha2_ElasticsearchNode_To_v1alpha1_ElasticsearchNode(&in.Master, &out.Master, s); err != nil {
return err
}
// WARNING: in.Ingest requires manual conversion: does not exist in peer-type
// WARNING: in.Data requires manual conversion: inconvertible types (*kubedb.dev/apimachinery/apis/kubedb/v1alpha2.ElasticsearchNode vs kubedb.dev/apimachinery/apis/kubedb/v1alpha1.ElasticsearchNode)
// WARNING: in.DataContent requires manual conversion: does not exist in peer-type
// WARNING: in.DataHot requires manual conversion: does not exist in peer-type
// WARNING: in.DataWarm requires manual conversion: does not exist in peer-type
// WARNING: in.DataCold requires manual conversion: does not exist in peer-type
// WARNING: in.DataFrozen requires manual conversion: does not exist in peer-type
// WARNING: in.ML requires manual conversion: does not exist in peer-type
// WARNING: in.Transform requires manual conversion: does not exist in peer-type
// WARNING: in.Coordinating requires manual conversion: does not exist in peer-type
return nil
}
func autoConvert_v1alpha1_ElasticsearchList_To_v1alpha2_ElasticsearchList(in *ElasticsearchList, out *v1alpha2.ElasticsearchList, s conversion.Scope) error {
out.ListMeta = in.ListMeta
if in.Items != nil {
in, out := &in.Items, &out.Items
*out = make([]v1alpha2.Elasticsearch, len(*in))
for i := range *in {
if err := Convert_v1alpha1_Elasticsearch_To_v1alpha2_Elasticsearch(&(*in)[i], &(*out)[i], s); err != nil {
return err
}
}
} else {
out.Items = nil
}
return nil
}
// Convert_v1alpha1_ElasticsearchList_To_v1alpha2_ElasticsearchList is an autogenerated conversion function.
func Convert_v1alpha1_ElasticsearchList_To_v1alpha2_ElasticsearchList(in *ElasticsearchList, out *v1alpha2.ElasticsearchList, s conversion.Scope) error {
return autoConvert_v1alpha1_ElasticsearchList_To_v1alpha2_ElasticsearchList(in, out, s)
}
func autoConvert_v1alpha2_ElasticsearchList_To_v1alpha1_ElasticsearchList(in *v1alpha2.ElasticsearchList, out *ElasticsearchList, s conversion.Scope) error {
out.ListMeta = in.ListMeta
if in.Items != nil {
in, out := &in.Items, &out.Items
*out = make([]Elasticsearch, len(*in))
for i := range *in {
if err := Convert_v1alpha2_Elasticsearch_To_v1alpha1_Elasticsearch(&(*in)[i], &(*out)[i], s); err != nil {
return err
}
}
} else {
out.Items = nil
}
return nil
}
// Convert_v1alpha2_ElasticsearchList_To_v1alpha1_ElasticsearchList is an autogenerated conversion function.
func Convert_v1alpha2_ElasticsearchList_To_v1alpha1_ElasticsearchList(in *v1alpha2.ElasticsearchList, out *ElasticsearchList, s conversion.Scope) error {
return autoConvert_v1alpha2_ElasticsearchList_To_v1alpha1_ElasticsearchList(in, out, s)
}
func autoConvert_v1alpha1_ElasticsearchNode_To_v1alpha2_ElasticsearchNode(in *ElasticsearchNode, out *v1alpha2.ElasticsearchNode, s conversion.Scope) error {
out.Replicas = (*int32)(unsafe.Pointer(in.Replicas))
// WARNING: in.Prefix requires manual conversion: does not exist in peer-type
out.Storage = (*v1.PersistentVolumeClaimSpec)(unsafe.Pointer(in.Storage))
out.Resources = in.Resources
out.MaxUnavailable = (*intstr.IntOrString)(unsafe.Pointer(in.MaxUnavailable))
return nil
}
func autoConvert_v1alpha2_ElasticsearchNode_To_v1alpha1_ElasticsearchNode(in *v1alpha2.ElasticsearchNode, out *ElasticsearchNode, s conversion.Scope) error {
out.Replicas = (*int32)(unsafe.Pointer(in.Replicas))
// WARNING: in.Suffix requires manual conversion: does not exist in peer-type
// WARNING: in.HeapSizePercentage requires manual conversion: does not exist in peer-type
out.Storage = (*v1.PersistentVolumeClaimSpec)(unsafe.Pointer(in.Storage))
out.Resources = in.Resources
out.MaxUnavailable = (*intstr.IntOrString)(unsafe.Pointer(in.MaxUnavailable))
return nil
}
func autoConvert_v1alpha1_ElasticsearchSpec_To_v1alpha2_ElasticsearchSpec(in *ElasticsearchSpec, out *v1alpha2.ElasticsearchSpec, s conversion.Scope) error {
out.Version = string(in.Version)
out.Replicas = (*int32)(unsafe.Pointer(in.Replicas))
if in.Topology != nil {
in, out := &in.Topology, &out.Topology
*out = new(v1alpha2.ElasticsearchClusterTopology)
if err := Convert_v1alpha1_ElasticsearchClusterTopology_To_v1alpha2_ElasticsearchClusterTopology(*in, *out, s); err != nil {
return err
}
} else {
out.Topology = nil
}
out.EnableSSL = in.EnableSSL
// WARNING: in.CertificateSecret requires manual conversion: does not exist in peer-type
// WARNING: in.AuthPlugin requires manual conversion: does not exist in peer-type
// WARNING: in.DatabaseSecret requires manual conversion: does not exist in peer-type
out.StorageType = v1alpha2.StorageType(in.StorageType)
out.Storage = (*v1.PersistentVolumeClaimSpec)(unsafe.Pointer(in.Storage))
if in.Init != nil {
in, out := &in.Init, &out.Init
*out = new(v1alpha2.InitSpec)
if err := Convert_v1alpha1_InitSpec_To_v1alpha2_InitSpec(*in, *out, s); err != nil {
return err
}
} else {
out.Init = nil
}
// WARNING: in.BackupSchedule requires manual conversion: does not exist in peer-type
out.Monitor = (*apiv1.AgentSpec)(unsafe.Pointer(in.Monitor))
// WARNING: in.ConfigSource requires manual conversion: does not exist in peer-type
out.PodTemplate = in.PodTemplate
// WARNING: in.ServiceTemplate requires manual conversion: does not exist in peer-type
out.MaxUnavailable = (*intstr.IntOrString)(unsafe.Pointer(in.MaxUnavailable))
// WARNING: in.UpdateStrategy requires manual conversion: does not exist in peer-type
out.TerminationPolicy = v1alpha2.TerminationPolicy(in.TerminationPolicy)
return nil
}
func autoConvert_v1alpha2_ElasticsearchSpec_To_v1alpha1_ElasticsearchSpec(in *v1alpha2.ElasticsearchSpec, out *ElasticsearchSpec, s conversion.Scope) error {
// WARNING: in.AutoOps requires manual conversion: does not exist in peer-type
out.Version = types.StrYo(in.Version)
out.Replicas = (*int32)(unsafe.Pointer(in.Replicas))
if in.Topology != nil {
in, out := &in.Topology, &out.Topology
*out = new(ElasticsearchClusterTopology)
if err := Convert_v1alpha2_ElasticsearchClusterTopology_To_v1alpha1_ElasticsearchClusterTopology(*in, *out, s); err != nil {
return err
}
} else {
out.Topology = nil
}
out.EnableSSL = in.EnableSSL
// WARNING: in.DisableSecurity requires manual conversion: does not exist in peer-type
// WARNING: in.AuthSecret requires manual conversion: does not exist in peer-type
out.StorageType = StorageType(in.StorageType)
out.Storage = (*v1.PersistentVolumeClaimSpec)(unsafe.Pointer(in.Storage))
if in.Init != nil {
in, out := &in.Init, &out.Init
*out = new(InitSpec)
if err := Convert_v1alpha2_InitSpec_To_v1alpha1_InitSpec(*in, *out, s); err != nil {
return err
}
} else {
out.Init = nil
}
out.Monitor = (*apiv1.AgentSpec)(unsafe.Pointer(in.Monitor))
// WARNING: in.ConfigSecret requires manual conversion: does not exist in peer-type
// WARNING: in.SecureConfigSecret requires manual conversion: does not exist in peer-type
out.PodTemplate = in.PodTemplate
// WARNING: in.ServiceTemplates requires manual conversion: does not exist in peer-type
out.MaxUnavailable = (*intstr.IntOrString)(unsafe.Pointer(in.MaxUnavailable))
// WARNING: in.TLS requires manual conversion: does not exist in peer-type
// WARNING: in.InternalUsers requires manual conversion: does not exist in peer-type
// WARNING: in.RolesMapping requires manual conversion: does not exist in peer-type
// WARNING: in.Halted requires manual conversion: does not exist in peer-type
out.TerminationPolicy = TerminationPolicy(in.TerminationPolicy)
// WARNING: in.KernelSettings requires manual conversion: does not exist in peer-type
// WARNING: in.HeapSizePercentage requires manual conversion: does not exist in peer-type
// WARNING: in.HealthChecker requires manual conversion: does not exist in peer-type
return nil
}
func autoConvert_v1alpha1_ElasticsearchStatus_To_v1alpha2_ElasticsearchStatus(in *ElasticsearchStatus, out *v1alpha2.ElasticsearchStatus, s conversion.Scope) error {
out.Phase = v1alpha2.DatabasePhase(in.Phase)
// WARNING: in.Reason requires manual conversion: does not exist in peer-type
// WARNING: in.ObservedGeneration requires manual conversion: inconvertible types (*gomodules.xyz/encoding/json/types.IntHash vs int64)
return nil
}
func autoConvert_v1alpha2_ElasticsearchStatus_To_v1alpha1_ElasticsearchStatus(in *v1alpha2.ElasticsearchStatus, out *ElasticsearchStatus, s conversion.Scope) error {
out.Phase = DatabasePhase(in.Phase)
// WARNING: in.ObservedGeneration requires manual conversion: inconvertible types (int64 vs *gomodules.xyz/encoding/json/types.IntHash)
// WARNING: in.Conditions requires manual conversion: does not exist in peer-type
// WARNING: in.AuthSecret requires manual conversion: does not exist in peer-type
return nil
}
func autoConvert_v1alpha1_Etcd_To_v1alpha2_Etcd(in *Etcd, out *v1alpha2.Etcd, s conversion.Scope) error {
out.ObjectMeta = in.ObjectMeta
if err := Convert_v1alpha1_EtcdSpec_To_v1alpha2_EtcdSpec(&in.Spec, &out.Spec, s); err != nil {
return err
}
if err := Convert_v1alpha1_EtcdStatus_To_v1alpha2_EtcdStatus(&in.Status, &out.Status, s); err != nil {
return err
}
return nil
}
// Convert_v1alpha1_Etcd_To_v1alpha2_Etcd is an autogenerated conversion function.
func Convert_v1alpha1_Etcd_To_v1alpha2_Etcd(in *Etcd, out *v1alpha2.Etcd, s conversion.Scope) error {
return autoConvert_v1alpha1_Etcd_To_v1alpha2_Etcd(in, out, s)
}
func autoConvert_v1alpha2_Etcd_To_v1alpha1_Etcd(in *v1alpha2.Etcd, out *Etcd, s conversion.Scope) error {
out.ObjectMeta = in.ObjectMeta
if err := Convert_v1alpha2_EtcdSpec_To_v1alpha1_EtcdSpec(&in.Spec, &out.Spec, s); err != nil {
return err
}
if err := Convert_v1alpha2_EtcdStatus_To_v1alpha1_EtcdStatus(&in.Status, &out.Status, s); err != nil {
return err
}
return nil
}
// Convert_v1alpha2_Etcd_To_v1alpha1_Etcd is an autogenerated conversion function.
func Convert_v1alpha2_Etcd_To_v1alpha1_Etcd(in *v1alpha2.Etcd, out *Etcd, s conversion.Scope) error {
return autoConvert_v1alpha2_Etcd_To_v1alpha1_Etcd(in, out, s)
}
func autoConvert_v1alpha1_EtcdList_To_v1alpha2_EtcdList(in *EtcdList, out *v1alpha2.EtcdList, s conversion.Scope) error {
out.ListMeta = in.ListMeta
if in.Items != nil {
in, out := &in.Items, &out.Items
*out = make([]v1alpha2.Etcd, len(*in))
for i := range *in {
if err := Convert_v1alpha1_Etcd_To_v1alpha2_Etcd(&(*in)[i], &(*out)[i], s); err != nil {
return err
}
}
} else {
out.Items = nil
}
return nil
}
// Convert_v1alpha1_EtcdList_To_v1alpha2_EtcdList is an autogenerated conversion function.
func Convert_v1alpha1_EtcdList_To_v1alpha2_EtcdList(in *EtcdList, out *v1alpha2.EtcdList, s conversion.Scope) error {
return autoConvert_v1alpha1_EtcdList_To_v1alpha2_EtcdList(in, out, s)
}
func autoConvert_v1alpha2_EtcdList_To_v1alpha1_EtcdList(in *v1alpha2.EtcdList, out *EtcdList, s conversion.Scope) error {
out.ListMeta = in.ListMeta
if in.Items != nil {
in, out := &in.Items, &out.Items
*out = make([]Etcd, len(*in))
for i := range *in {
if err := Convert_v1alpha2_Etcd_To_v1alpha1_Etcd(&(*in)[i], &(*out)[i], s); err != nil {
return err
}
}
} else {
out.Items = nil
}
return nil
}
// Convert_v1alpha2_EtcdList_To_v1alpha1_EtcdList is an autogenerated conversion function.
func Convert_v1alpha2_EtcdList_To_v1alpha1_EtcdList(in *v1alpha2.EtcdList, out *EtcdList, s conversion.Scope) error {
return autoConvert_v1alpha2_EtcdList_To_v1alpha1_EtcdList(in, out, s)
}
func autoConvert_v1alpha1_EtcdSpec_To_v1alpha2_EtcdSpec(in *EtcdSpec, out *v1alpha2.EtcdSpec, s conversion.Scope) error {
out.Version = string(in.Version)
out.Replicas = (*int32)(unsafe.Pointer(in.Replicas))
out.StorageType = v1alpha2.StorageType(in.StorageType)
out.Storage = (*v1.PersistentVolumeClaimSpec)(unsafe.Pointer(in.Storage))
// WARNING: in.DatabaseSecret requires manual conversion: does not exist in peer-type
if in.Init != nil {
in, out := &in.Init, &out.Init
*out = new(v1alpha2.InitSpec)
if err := Convert_v1alpha1_InitSpec_To_v1alpha2_InitSpec(*in, *out, s); err != nil {
return err
}
} else {
out.Init = nil
}
// WARNING: in.BackupSchedule requires manual conversion: does not exist in peer-type
out.Monitor = (*apiv1.AgentSpec)(unsafe.Pointer(in.Monitor))
out.TLS = (*v1alpha2.TLSPolicy)(unsafe.Pointer(in.TLS))
out.PodTemplate = in.PodTemplate
// WARNING: in.ServiceTemplate requires manual conversion: does not exist in peer-type
// WARNING: in.UpdateStrategy requires manual conversion: does not exist in peer-type
out.TerminationPolicy = v1alpha2.TerminationPolicy(in.TerminationPolicy)
return nil
}
func autoConvert_v1alpha2_EtcdSpec_To_v1alpha1_EtcdSpec(in *v1alpha2.EtcdSpec, out *EtcdSpec, s conversion.Scope) error {
out.Version = types.StrYo(in.Version)
out.Replicas = (*int32)(unsafe.Pointer(in.Replicas))
out.StorageType = StorageType(in.StorageType)
out.Storage = (*v1.PersistentVolumeClaimSpec)(unsafe.Pointer(in.Storage))
// WARNING: in.AuthSecret requires manual conversion: does not exist in peer-type
if in.Init != nil {
in, out := &in.Init, &out.Init
*out = new(InitSpec)
if err := Convert_v1alpha2_InitSpec_To_v1alpha1_InitSpec(*in, *out, s); err != nil {
return err
}
} else {
out.Init = nil
}
out.Monitor = (*apiv1.AgentSpec)(unsafe.Pointer(in.Monitor))
out.TLS = (*TLSPolicy)(unsafe.Pointer(in.TLS))
out.PodTemplate = in.PodTemplate
// WARNING: in.ServiceTemplates requires manual conversion: does not exist in peer-type
// WARNING: in.Halted requires manual conversion: does not exist in peer-type
out.TerminationPolicy = TerminationPolicy(in.TerminationPolicy)
return nil
}
func autoConvert_v1alpha1_EtcdStatus_To_v1alpha2_EtcdStatus(in *EtcdStatus, out *v1alpha2.EtcdStatus, s conversion.Scope) error {
out.Phase = v1alpha2.DatabasePhase(in.Phase)
// WARNING: in.Reason requires manual conversion: does not exist in peer-type
// WARNING: in.ObservedGeneration requires manual conversion: inconvertible types (*gomodules.xyz/encoding/json/types.IntHash vs int64)
return nil
}
func autoConvert_v1alpha2_EtcdStatus_To_v1alpha1_EtcdStatus(in *v1alpha2.EtcdStatus, out *EtcdStatus, s conversion.Scope) error {
out.Phase = DatabasePhase(in.Phase)
// WARNING: in.ObservedGeneration requires manual conversion: inconvertible types (int64 vs *gomodules.xyz/encoding/json/types.IntHash)
// WARNING: in.Conditions requires manual conversion: does not exist in peer-type
// WARNING: in.AuthSecret requires manual conversion: does not exist in peer-type
return nil
}
func autoConvert_v1alpha1_InitSpec_To_v1alpha2_InitSpec(in *InitSpec, out *v1alpha2.InitSpec, s conversion.Scope) error {
// WARNING: in.ScriptSource requires manual conversion: does not exist in peer-type
// WARNING: in.SnapshotSource requires manual conversion: does not exist in peer-type
// WARNING: in.PostgresWAL requires manual conversion: does not exist in peer-type
// WARNING: in.StashRestoreSession requires manual conversion: does not exist in peer-type
return nil
}
func autoConvert_v1alpha2_InitSpec_To_v1alpha1_InitSpec(in *v1alpha2.InitSpec, out *InitSpec, s conversion.Scope) error {
// WARNING: in.Initialized requires manual conversion: does not exist in peer-type
// WARNING: in.WaitForInitialRestore requires manual conversion: does not exist in peer-type
// WARNING: in.Script requires manual conversion: does not exist in peer-type
return nil
}
func autoConvert_v1alpha1_MariaDB_To_v1alpha2_MariaDB(in *MariaDB, out *v1alpha2.MariaDB, s conversion.Scope) error {
out.ObjectMeta = in.ObjectMeta
if err := Convert_v1alpha1_MariaDBSpec_To_v1alpha2_MariaDBSpec(&in.Spec, &out.Spec, s); err != nil {
return err
}
if err := Convert_v1alpha1_MariaDBStatus_To_v1alpha2_MariaDBStatus(&in.Status, &out.Status, s); err != nil {
return err
}
return nil
}
// Convert_v1alpha1_MariaDB_To_v1alpha2_MariaDB is an autogenerated conversion function.
func Convert_v1alpha1_MariaDB_To_v1alpha2_MariaDB(in *MariaDB, out *v1alpha2.MariaDB, s conversion.Scope) error {
return autoConvert_v1alpha1_MariaDB_To_v1alpha2_MariaDB(in, out, s)
}
func autoConvert_v1alpha2_MariaDB_To_v1alpha1_MariaDB(in *v1alpha2.MariaDB, out *MariaDB, s conversion.Scope) error {
out.ObjectMeta = in.ObjectMeta
if err := Convert_v1alpha2_MariaDBSpec_To_v1alpha1_MariaDBSpec(&in.Spec, &out.Spec, s); err != nil {
return err
}
if err := Convert_v1alpha2_MariaDBStatus_To_v1alpha1_MariaDBStatus(&in.Status, &out.Status, s); err != nil {
return err
}
return nil
}
// Convert_v1alpha2_MariaDB_To_v1alpha1_MariaDB is an autogenerated conversion function.
func Convert_v1alpha2_MariaDB_To_v1alpha1_MariaDB(in *v1alpha2.MariaDB, out *MariaDB, s conversion.Scope) error {
return autoConvert_v1alpha2_MariaDB_To_v1alpha1_MariaDB(in, out, s)
}
func autoConvert_v1alpha1_MariaDBList_To_v1alpha2_MariaDBList(in *MariaDBList, out *v1alpha2.MariaDBList, s conversion.Scope) error {
out.ListMeta = in.ListMeta
if in.Items != nil {
in, out := &in.Items, &out.Items
*out = make([]v1alpha2.MariaDB, len(*in))
for i := range *in {
if err := Convert_v1alpha1_MariaDB_To_v1alpha2_MariaDB(&(*in)[i], &(*out)[i], s); err != nil {
return err
}
}
} else {
out.Items = nil