-
Notifications
You must be signed in to change notification settings - Fork 30
Expand file tree
/
Copy pathinstaller.yaml
More file actions
4895 lines (4894 loc) · 162 KB
/
installer.yaml
File metadata and controls
4895 lines (4894 loc) · 162 KB
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
apiVersion: v1
kind: Namespace
metadata:
labels:
app.kubernetes.io/managed-by: kustomize
app.kubernetes.io/name: migration
control-plane: controller-manager
name: migration-system
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.17.1
name: arraycreds.vjailbreak.k8s.pf9.io
spec:
group: vjailbreak.k8s.pf9.io
names:
kind: ArrayCreds
listKind: ArrayCredsList
plural: arraycreds
singular: arraycreds
scope: Namespaced
versions:
- additionalPrinterColumns:
- jsonPath: .spec.vendorType
name: Vendor
type: string
- jsonPath: .spec.openstackMapping.volumeType
name: VolumeType
type: string
- jsonPath: .spec.openstackMapping.cinderBackendName
name: Backend
type: string
- jsonPath: .status.phase
name: Phase
type: string
- jsonPath: .status.arrayValidationStatus
name: Status
type: string
name: v1alpha1
schema:
openAPIV3Schema:
description: |-
ArrayCreds is the Schema for the storage array credentials API that defines authentication
and connection details for storage arrays. It provides a secure way to store and validate
storage array credentials for use in migration operations, supporting multiple vendors, but as of now
We have qualified pure storage flash array.
properties:
apiVersion:
description: |-
APIVersion defines the versioned schema of this representation of an object.
Servers should convert recognized schemas to the latest internal value, and
may reject unrecognized values.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
type: string
kind:
description: |-
Kind is a string value representing the REST resource this object represents.
Servers may infer this from the endpoint the client submits requests to.
Cannot be updated.
In CamelCase.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
type: string
metadata:
type: object
spec:
description: ArrayCredsSpec defines the desired state of ArrayCreds
properties:
autoDiscovered:
description: AutoDiscovered indicates if this ArrayCreds was auto-discovered
from OpenStack
type: boolean
openstackMapping:
description: OpenStackMapping is the openstack mapping for this array
properties:
cinderBackendName:
description: |-
CinderBackendName is the Cinder backend name for this mapping
This is the backend configured in cinder.conf (e.g., "pure-01")
type: string
cinderBackendPool:
description: CinderBackendPool is the pool name within the backend
(optional)
type: string
cinderHost:
description: |-
CinderHost is the full Cinder host string for manage API
Format: hostname@backend or hostname@backend#pool (e.g., "pcd-ce@pure-iscsi-1#vt-pure-iscsi")
type: string
volumeType:
description: VolumeType is the Cinder volume type associated with
this mapping
type: string
required:
- cinderBackendName
- volumeType
type: object
secretRef:
description: SecretRef is the reference to the Kubernetes secret holding
storage array credentials
properties:
apiVersion:
description: API version of the referent.
type: string
fieldPath:
description: |-
If referring to a piece of an object instead of an entire object, this string
should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2].
For example, if the object reference is to a container within a pod, this would take on a value like:
"spec.containers{name}" (where "name" refers to the name of the container that triggered
the event) or if no container name is specified "spec.containers[2]" (container with
index 2 in this pod). This syntax is chosen only to have some well-defined way of
referencing a part of an object.
type: string
kind:
description: |-
Kind of the referent.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
type: string
name:
description: |-
Name of the referent.
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
type: string
namespace:
description: |-
Namespace of the referent.
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/
type: string
resourceVersion:
description: |-
Specific resourceVersion to which this reference is made, if any.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
type: string
uid:
description: |-
UID of the referent.
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids
type: string
type: object
x-kubernetes-map-type: atomic
vendorType:
description: VendorType is the storage array vendor type (e.g., pure,
ontap, hpalletra)
type: string
required:
- vendorType
type: object
status:
description: ArrayCredsStatus defines the observed state of ArrayCreds
properties:
arrayValidationMessage:
description: ArrayValidationMessage is the message associated with
the storage array validation
type: string
arrayValidationStatus:
description: |-
ArrayValidationStatus is the status of the storage array validation
Possible values: Pending, Succeeded, Failed, AwaitingCredentials
type: string
dataStore:
description: DataStore is the list of datastores associated with this
array
items:
description: DatastoreInfo holds datastore information including
backing device NAA
properties:
backingNAA:
type: string
backingUUID:
type: string
capacity:
format: int64
type: integer
freeSpace:
format: int64
type: integer
moID:
type: string
name:
type: string
type:
type: string
required:
- backingNAA
- backingUUID
- capacity
- freeSpace
- moID
- name
- type
type: object
type: array
phase:
description: |-
Phase indicates the current phase of the ArrayCreds
Possible values: Discovered, Configured, Validated, Failed
type: string
type: object
type: object
served: true
storage: true
subresources:
status: {}
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.17.1
name: arraycredsmappings.vjailbreak.k8s.pf9.io
spec:
group: vjailbreak.k8s.pf9.io
names:
kind: ArrayCredsMapping
listKind: ArrayCredsMappingList
plural: arraycredsmappings
singular: arraycredsmapping
scope: Namespaced
versions:
- additionalPrinterColumns:
- jsonPath: .status.validationStatus
name: Status
type: string
- jsonPath: .metadata.creationTimestamp
name: Age
type: date
name: v1alpha1
schema:
openAPIV3Schema:
description: |-
ArrayCredsMapping is the Schema for the arraycredsmappings API that defines
mappings between VMware datastores and ArrayCreds for StorageAcceleratedCopy storage migration
properties:
apiVersion:
description: |-
APIVersion defines the versioned schema of this representation of an object.
Servers should convert recognized schemas to the latest internal value, and
may reject unrecognized values.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
type: string
kind:
description: |-
Kind is a string value representing the REST resource this object represents.
Servers may infer this from the endpoint the client submits requests to.
Cannot be updated.
In CamelCase.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
type: string
metadata:
type: object
spec:
description: |-
ArrayCredsMappingSpec defines the desired state of ArrayCredsMapping including
mappings between VMware datastores and ArrayCreds for StorageAcceleratedCopy data copy
properties:
mappings:
description: Mappings is a list of datastore to ArrayCreds mappings
items:
description: DatastoreArrayCredsMapping represents a mapping between
a VMware datastore and ArrayCreds
properties:
source:
description: Source is the name of the source datastore in VMware
type: string
target:
description: Target is the name of the ArrayCreds resource to
use for this datastore
type: string
required:
- source
- target
type: object
type: array
required:
- mappings
type: object
status:
description: ArrayCredsMappingStatus defines the observed state of ArrayCredsMapping
properties:
validationMessage:
description: |-
ValidationMessage provides detailed validation information including
information about available ArrayCreds and any validation errors
type: string
validationStatus:
description: |-
ValidationStatus indicates the validation status of the ArrayCreds mapping
Valid states include: "Valid", "Invalid", "Pending", "ValidationFailed"
type: string
type: object
type: object
served: true
storage: true
subresources:
status: {}
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.17.1
name: bmconfigs.vjailbreak.k8s.pf9.io
spec:
group: vjailbreak.k8s.pf9.io
names:
kind: BMConfig
listKind: BMConfigList
plural: bmconfigs
singular: bmconfig
scope: Namespaced
versions:
- name: v1alpha1
schema:
openAPIV3Schema:
description: |-
BMConfig is the Schema for the bmconfigs API that defines authentication and configuration
details for Bare Metal Controller (BMC) providers such as MAAS. It contains credentials,
connection information, and boot source configurations needed to provision physical hosts
for use during the ESXi to PCD migration process. BMConfig enables the automatic
provisioning of PCD hosts as replacement infrastructure for migrated ESXi hosts.
properties:
apiVersion:
description: |-
APIVersion defines the versioned schema of this representation of an object.
Servers should convert recognized schemas to the latest internal value, and
may reject unrecognized values.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
type: string
kind:
description: |-
Kind is a string value representing the REST resource this object represents.
Servers may infer this from the endpoint the client submits requests to.
Cannot be updated.
In CamelCase.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
type: string
metadata:
type: object
spec:
description: BMConfigSpec defines the desired state of BMConfig
properties:
apiKey:
description: APIKey is the API key for the BM server
type: string
apiUrl:
description: APIUrl is the API URL for the BM server
type: string
bootSource:
description: BootSource is the boot source for the BMC
properties:
release:
default: jammy
description: Release is the OS release version to be used (e.g.,
"jammy" for Ubuntu 22.04)
type: string
required:
- release
type: object
insecure:
default: false
description: Insecure is a boolean indicating whether to use insecure
connection
type: boolean
password:
description: Password is the password for the BM server
type: string
providerType:
default: MAAS
description: ProviderType is the BMC provider type
type: string
userDataSecretRef:
description: UserDataSecretRef is the reference to the secret containing
user data for the BMC
properties:
name:
description: name is unique within a namespace to reference a
secret resource.
type: string
namespace:
description: namespace defines the space within which the secret
name must be unique.
type: string
type: object
x-kubernetes-map-type: atomic
userName:
description: UserName is the username for the BM server
type: string
required:
- apiKey
- apiUrl
- providerType
type: object
status:
description: BMConfigStatus defines the observed state of BMConfig
properties:
validationMessage:
description: ValidationMessage is the message associated with the
validation
type: string
validationStatus:
description: ValidationStatus is the status of the validation
type: string
type: object
type: object
served: true
storage: true
subresources:
status: {}
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.17.1
name: clustermigrations.vjailbreak.k8s.pf9.io
spec:
group: vjailbreak.k8s.pf9.io
names:
kind: ClusterMigration
listKind: ClusterMigrationList
plural: clustermigrations
singular: clustermigration
scope: Namespaced
versions:
- additionalPrinterColumns:
- jsonPath: .status.phase
name: Phase
type: string
- jsonPath: .status.currentESXI
name: Current ESXI
type: string
- jsonPath: .metadata.creationTimestamp
name: Age
type: date
name: v1alpha1
schema:
openAPIV3Schema:
description: |-
ClusterMigration is the Schema for the clustermigrations API that orchestrates the migration
of an entire VMware vCenter cluster to Platform9 Distributed Cloud (PCD).
It manages the ordered migration of ESXi hosts within a cluster, tracking progress
and maintaining references to required credentials and migration plans.
ClusterMigration resources coordinate with ESXIMigration resources to ensure
hosts are migrated in the correct sequence with proper dependency management.
properties:
apiVersion:
description: |-
APIVersion defines the versioned schema of this representation of an object.
Servers should convert recognized schemas to the latest internal value, and
may reject unrecognized values.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
type: string
kind:
description: |-
Kind is a string value representing the REST resource this object represents.
Servers may infer this from the endpoint the client submits requests to.
Cannot be updated.
In CamelCase.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
type: string
metadata:
type: object
spec:
description: ClusterMigrationSpec defines the desired state of ClusterMigration
properties:
clusterName:
description: ClusterName is the name of the vCenter cluster to be
migrated
type: string
esxiMigrationSequence:
description: ESXIMigrationSequence is the sequence of ESXi hosts to
be migrated
items:
type: string
type: array
openstackCredsRef:
description: OpenstackCredsRef is the reference to the OpenStack credentials
properties:
name:
default: ""
description: |-
Name of the referent.
This field is effectively required, but due to backwards compatibility is
allowed to be empty. Instances of this type with an empty value here are
almost certainly wrong.
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
type: string
type: object
x-kubernetes-map-type: atomic
rollingMigrationPlanRef:
description: RollingMigrationPlanRef is the reference to the RollingMigrationPlan
properties:
name:
default: ""
description: |-
Name of the referent.
This field is effectively required, but due to backwards compatibility is
allowed to be empty. Instances of this type with an empty value here are
almost certainly wrong.
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
type: string
type: object
x-kubernetes-map-type: atomic
vmwareCredsRef:
description: VMwareCredsRef is the reference to the VMware credentials
properties:
name:
default: ""
description: |-
Name of the referent.
This field is effectively required, but due to backwards compatibility is
allowed to be empty. Instances of this type with an empty value here are
almost certainly wrong.
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
type: string
type: object
x-kubernetes-map-type: atomic
required:
- clusterName
- esxiMigrationSequence
- openstackCredsRef
- rollingMigrationPlanRef
- vmwareCredsRef
type: object
status:
description: ClusterMigrationStatus defines the observed state of ClusterMigration
properties:
currentESXi:
description: CurrentESXi is the name of the current ESXi host being
migrated
type: string
message:
description: Message is the message associated with the current state
of the migration
type: string
phase:
description: Phase is the current phase of the migration
enum:
- Pending
- Running
- Succeeded
- Failed
- Paused
type: string
required:
- currentESXi
- message
- phase
type: object
type: object
served: true
storage: true
subresources:
status: {}
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.17.1
name: esximigrations.vjailbreak.k8s.pf9.io
spec:
group: vjailbreak.k8s.pf9.io
names:
kind: ESXIMigration
listKind: ESXIMigrationList
plural: esximigrations
singular: esximigration
scope: Namespaced
versions:
- name: v1alpha1
schema:
openAPIV3Schema:
description: |-
ESXIMigration is the Schema for the esximigrations API that defines
the process of migrating an ESXi host to PCD, including putting it in maintenance mode,
migrating all VMs, and finally removing it from vCenter inventory after completion
properties:
apiVersion:
description: |-
APIVersion defines the versioned schema of this representation of an object.
Servers should convert recognized schemas to the latest internal value, and
may reject unrecognized values.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
type: string
kind:
description: |-
Kind is a string value representing the REST resource this object represents.
Servers may infer this from the endpoint the client submits requests to.
Cannot be updated.
In CamelCase.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
type: string
metadata:
type: object
spec:
description: |-
ESXIMigrationSpec defines the desired state of ESXIMigration including
the ESXi host to migrate and the references to credentials and migration plan
properties:
esxiName:
description: ESXiName is the name of the ESXi host to be migrated
type: string
openstackCredsRef:
description: OpenstackCredsRef is the reference to the OpenStack credentials
properties:
name:
default: ""
description: |-
Name of the referent.
This field is effectively required, but due to backwards compatibility is
allowed to be empty. Instances of this type with an empty value here are
almost certainly wrong.
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
type: string
type: object
x-kubernetes-map-type: atomic
rollingMigrationPlanRef:
description: RollingMigrationPlanRef is the reference to the RollingMigrationPlan
properties:
name:
default: ""
description: |-
Name of the referent.
This field is effectively required, but due to backwards compatibility is
allowed to be empty. Instances of this type with an empty value here are
almost certainly wrong.
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
type: string
type: object
x-kubernetes-map-type: atomic
vmwareCredsRef:
description: VMwareCredsRef is the reference to the VMware credentials
properties:
name:
default: ""
description: |-
Name of the referent.
This field is effectively required, but due to backwards compatibility is
allowed to be empty. Instances of this type with an empty value here are
almost certainly wrong.
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
type: string
type: object
x-kubernetes-map-type: atomic
required:
- esxiName
- openstackCredsRef
- rollingMigrationPlanRef
- vmwareCredsRef
type: object
status:
description: |-
ESXIMigrationStatus defines the observed state of ESXIMigration including
the list of VMs on the host, current phase, and status messages
properties:
message:
description: Message is the message associated with the current state
of the migration
type: string
phase:
description: |-
Phase is the current phase of the migration lifecycle
The final phases include 'Succeeded' when the ESXi host has been successfully
removed from vCenter inventory after migration is complete
type: string
vms:
description: VMs is the list of VMs present on the ESXi host
items:
type: string
type: array
type: object
type: object
served: true
storage: true
subresources:
status: {}
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.17.1
name: esxisshcreds.vjailbreak.k8s.pf9.io
spec:
group: vjailbreak.k8s.pf9.io
names:
kind: ESXiSSHCreds
listKind: ESXiSSHCredsList
plural: esxisshcreds
singular: esxisshcreds
scope: Namespaced
versions:
- additionalPrinterColumns:
- jsonPath: .status.validationStatus
name: Status
type: string
- jsonPath: .status.successfulHosts
name: Successful
type: integer
- jsonPath: .status.failedHosts
name: Failed
type: integer
- jsonPath: .status.totalHosts
name: Total
type: integer
name: v1alpha1
schema:
openAPIV3Schema:
description: |-
ESXiSSHCreds is the Schema for the esxisshcreds API that defines SSH credentials
for connecting to ESXi hosts. It validates SSH connectivity to ESXi hosts either
discovered from vCenter via VMwareCreds or explicitly specified in the hosts list.
The controller validates connections in parallel with throttling to avoid overwhelming
the network, and reports per-host validation results in the status.
properties:
apiVersion:
description: |-
APIVersion defines the versioned schema of this representation of an object.
Servers should convert recognized schemas to the latest internal value, and
may reject unrecognized values.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
type: string
kind:
description: |-
Kind is a string value representing the REST resource this object represents.
Servers may infer this from the endpoint the client submits requests to.
Cannot be updated.
In CamelCase.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
type: string
metadata:
type: object
spec:
description: ESXiSSHCredsSpec defines the desired state of ESXiSSHCreds
properties:
forceReconcileToken:
description: |-
ForceReconcileToken is an opaque token that can be updated to force a reconciliation.
Updating this field will increment metadata.generation and trigger the controller.
type: string
secretRef:
description: |-
SecretRef is the reference to the Kubernetes secret holding the SSH private key
The secret should contain a key named "privateKey" with the SSH private key in PEM format
properties:
apiVersion:
description: API version of the referent.
type: string
fieldPath:
description: |-
If referring to a piece of an object instead of an entire object, this string
should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2].
For example, if the object reference is to a container within a pod, this would take on a value like:
"spec.containers{name}" (where "name" refers to the name of the container that triggered
the event) or if no container name is specified "spec.containers[2]" (container with
index 2 in this pod). This syntax is chosen only to have some well-defined way of
referencing a part of an object.
type: string
kind:
description: |-
Kind of the referent.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
type: string
name:
description: |-
Name of the referent.
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
type: string
namespace:
description: |-
Namespace of the referent.
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/
type: string
resourceVersion:
description: |-
Specific resourceVersion to which this reference is made, if any.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
type: string
uid:
description: |-
UID of the referent.
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids
type: string
type: object
x-kubernetes-map-type: atomic
username:
default: root
description: 'Username is the SSH username to use for connecting to
ESXi hosts (default: "root")'
type: string
required:
- secretRef
type: object
status:
description: ESXiSSHCredsStatus defines the observed state of ESXiSSHCreds
properties:
failedHosts:
description: FailedHosts is the number of ESXi hosts that failed validation
type: integer
lastValidationTime:
description: LastValidationTime is the timestamp of the last validation
run
format: date-time
type: string
successfulHosts:
description: SuccessfulHosts is the number of ESXi hosts that passed
validation
type: integer
totalHosts:
description: TotalHosts is the total number of ESXi hosts to validate
type: integer
validationMessage:
description: ValidationMessage is the message associated with the
overall validation
type: string
validationStatus:
description: |-
ValidationStatus is the overall status of the ESXi SSH validation
Possible values: Pending, Validating, Succeeded, PartiallySucceeded, Failed
type: string
type: object
type: object
served: true
storage: true
subresources:
status: {}
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.17.1
name: migrationplans.vjailbreak.k8s.pf9.io
spec:
group: vjailbreak.k8s.pf9.io
names:
kind: MigrationPlan
listKind: MigrationPlanList
plural: migrationplans
singular: migrationplan
scope: Namespaced
versions:
- additionalPrinterColumns:
- jsonPath: .status.migrationStatus
name: Status
type: string
- jsonPath: .spec.migrationTemplate
name: Migration Template
type: string
- jsonPath: .metadata.creationTimestamp
name: Age
type: date
name: v1alpha1
schema:
openAPIV3Schema:
description: |-
MigrationPlan is the Schema for the migrationplans API that defines
how to migrate virtual machines from VMware to OpenStack including migration strategy and scheduling.
It allows administrators to configure migration parameters such as timing, health checks,
and VM-specific settings for bulk VM migration operations between environments.
properties:
apiVersion:
description: |-
APIVersion defines the versioned schema of this representation of an object.
Servers should convert recognized schemas to the latest internal value, and
may reject unrecognized values.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
type: string
kind:
description: |-
Kind is a string value representing the REST resource this object represents.
Servers may infer this from the endpoint the client submits requests to.
Cannot be updated.
In CamelCase.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
type: string
metadata:
type: object
spec:
description: |-
MigrationPlanSpec defines the desired state of MigrationPlan including
the migration template, strategy, and the list of virtual machines to migrate
properties:
advancedOptions:
description: AdvancedOptions is a list of advanced options for the
migration
properties:
acknowledgeNetworkConflictRisk:
description: AcknowledgeNetworkConflictRisk indicates that the
user acknowledges the risk of network conflicts when doing live
migration
type: boolean
granularNetworks:
description: GranularNetworks is a list of networks to be migrated
items:
type: string
type: array
granularPorts:
description: GranularPorts is a list of ports to be migrated
items:
type: string
type: array
granularVolumeTypes:
description: GranularVolumeTypes is a list of volume types to
be migrated
items:
type: string
type: array
networkPersistence:
description: NetworkPersistence instructs the migration helper
to persist the source networking configuration
type: boolean
periodicSyncEnabled:
description: PeriodicSyncEnabled is a boolean to enable periodic
sync
type: boolean
periodicSyncInterval:
description: PeriodicSyncInterval is the interval at which the
migration plan should be synced
type: string
removeVMwareTools:
description: RemoveVMwareTools instructs the migration helper
to remove VMware Tools post migration
type: boolean
type: object
assignedIPsPerVM:
additionalProperties:
type: string
description: |-
AssignedIPsPerVM is a map of VM names to comma-separated assigned IPs for cold migration
Format: {"vm-name": "IP1,IP2,IP3"} where each IP corresponds to a network interface by index
type: object
fallbackToDHCP:
type: boolean
firstBootScript:
default: echo "Add your startup script here!"
type: string
migrationStrategy:
description: MigrationStrategy is the strategy to be used for the
migration
properties:
adminInitiatedCutOver:
default: false
type: boolean
arrayOffload:
default: false
type: boolean
dataCopyStart:
format: date-time
type: string
disconnectSourceNetwork:
default: false
type: boolean
healthCheckPort:
default: "443"
type: string
performHealthChecks:
default: false
type: boolean
type:
enum:
- hot
- cold
- mock
type: string
vmCutoverEnd:
format: date-time
type: string
vmCutoverStart:
format: date-time
type: string
required:
- type
type: object
migrationTemplate:
description: MigrationTemplate is the template to be used for the
migration
type: string
networkOverridesPerVM:
additionalProperties:
items:
description: NICOverride defines per-NIC overrides for IP and
MAC preservation during migration
properties:
interfaceIndex:
description: InterfaceIndex is the zero-based index of the
NIC
type: integer
preserveIP:
description: |-
PreserveIP indicates whether to preserve the source VM's IP address for this NIC.
When nil the migration default (preserve) is used.
type: boolean
preserveMAC:
description: |-
PreserveMAC indicates whether to preserve the source VM's MAC address for this NIC.
When nil the migration default (preserve) is used.