blob: bd8b01a6621cdba0bf1b0bfc6570da7cc1de1021 [file] [log] [blame]
gio3e1b96b2026-07-21 18:52:35 +04001# Generated crds.yaml from github.com/longhorn/longhorn-manager/k8s/pkg/apis and the crds.yaml will be copied to longhorn/longhorn chart/templates and cannot be directly used by kubectl apply.
2apiVersion: apiextensions.k8s.io/v1
3kind: CustomResourceDefinition
4metadata:
5 annotations:
6 controller-gen.kubebuilder.io/version: v0.19.0
7 labels: {{- include "longhorn.labels" . | nindent 4 }}
8 longhorn-manager: ""
9 name: backingimagedatasources.longhorn.io
10spec:
11 group: longhorn.io
12 names:
13 kind: BackingImageDataSource
14 listKind: BackingImageDataSourceList
15 plural: backingimagedatasources
16 shortNames:
17 - lhbids
18 singular: backingimagedatasource
19 scope: Namespaced
20 versions:
21 - additionalPrinterColumns:
22 - description: The system generated UUID of the provisioned backing image file
23 jsonPath: .spec.uuid
24 name: UUID
25 type: string
26 - description: The current state of the pod used to provision the backing image
27 file from source
28 jsonPath: .status.currentState
29 name: State
30 type: string
31 - description: The data source type
32 jsonPath: .spec.sourceType
33 name: SourceType
34 type: string
35 - description: The backing image file size
36 jsonPath: .status.size
37 name: Size
38 type: string
39 - description: The node the backing image file will be prepared on
40 jsonPath: .spec.nodeID
41 name: Node
42 type: string
43 - description: The disk the backing image file will be prepared on
44 jsonPath: .spec.diskUUID
45 name: DiskUUID
46 type: string
47 - jsonPath: .metadata.creationTimestamp
48 name: Age
49 type: date
50 name: v1beta2
51 schema:
52 openAPIV3Schema:
53 description: BackingImageDataSource is where Longhorn stores backing image
54 data source object.
55 properties:
56 apiVersion:
57 description: |-
58 APIVersion defines the versioned schema of this representation of an object.
59 Servers should convert recognized schemas to the latest internal value, and
60 may reject unrecognized values.
61 More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
62 type: string
63 kind:
64 description: |-
65 Kind is a string value representing the REST resource this object represents.
66 Servers may infer this from the endpoint the client submits requests to.
67 Cannot be updated.
68 In CamelCase.
69 More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
70 type: string
71 metadata:
72 type: object
73 spec:
74 description: BackingImageDataSourceSpec defines the desired state of the
75 Longhorn backing image data source
76 properties:
77 checksum:
78 type: string
79 diskPath:
80 type: string
81 diskUUID:
82 type: string
83 fileTransferred:
84 type: boolean
85 nodeID:
86 type: string
87 parameters:
88 additionalProperties:
89 type: string
90 type: object
91 sourceType:
92 enum:
93 - download
94 - upload
95 - export-from-volume
96 - restore
97 - clone
98 type: string
99 uuid:
100 type: string
101 type: object
102 status:
103 description: BackingImageDataSourceStatus defines the observed state of
104 the Longhorn backing image data source
105 properties:
106 checksum:
107 type: string
108 currentState:
109 type: string
110 ip:
111 type: string
112 message:
113 type: string
114 ownerID:
115 type: string
116 progress:
117 type: integer
118 runningParameters:
119 additionalProperties:
120 type: string
121 nullable: true
122 type: object
123 size:
124 format: int64
125 type: integer
126 storageIP:
127 type: string
128 type: object
129 type: object
130 served: true
131 storage: true
132 subresources:
133 status: {}
134---
135apiVersion: apiextensions.k8s.io/v1
136kind: CustomResourceDefinition
137metadata:
138 annotations:
139 controller-gen.kubebuilder.io/version: v0.19.0
140 labels: {{- include "longhorn.labels" . | nindent 4 }}
141 longhorn-manager: ""
142 name: backingimagemanagers.longhorn.io
143spec:
144 group: longhorn.io
145 names:
146 kind: BackingImageManager
147 listKind: BackingImageManagerList
148 plural: backingimagemanagers
149 shortNames:
150 - lhbim
151 singular: backingimagemanager
152 scope: Namespaced
153 versions:
154 - additionalPrinterColumns:
155 - description: The current state of the manager
156 jsonPath: .status.currentState
157 name: State
158 type: string
159 - description: The image the manager pod will use
160 jsonPath: .spec.image
161 name: Image
162 type: string
163 - description: The node the manager is on
164 jsonPath: .spec.nodeID
165 name: Node
166 type: string
167 - description: The disk the manager is responsible for
168 jsonPath: .spec.diskUUID
169 name: DiskUUID
170 type: string
171 - description: The disk path the manager is using
172 jsonPath: .spec.diskPath
173 name: DiskPath
174 type: string
175 - jsonPath: .metadata.creationTimestamp
176 name: Age
177 type: date
178 name: v1beta2
179 schema:
180 openAPIV3Schema:
181 description: BackingImageManager is where Longhorn stores backing image manager
182 object.
183 properties:
184 apiVersion:
185 description: |-
186 APIVersion defines the versioned schema of this representation of an object.
187 Servers should convert recognized schemas to the latest internal value, and
188 may reject unrecognized values.
189 More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
190 type: string
191 kind:
192 description: |-
193 Kind is a string value representing the REST resource this object represents.
194 Servers may infer this from the endpoint the client submits requests to.
195 Cannot be updated.
196 In CamelCase.
197 More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
198 type: string
199 metadata:
200 type: object
201 spec:
202 description: BackingImageManagerSpec defines the desired state of the
203 Longhorn backing image manager
204 properties:
205 backingImages:
206 additionalProperties:
207 type: string
208 type: object
209 diskPath:
210 type: string
211 diskUUID:
212 type: string
213 image:
214 type: string
215 nodeID:
216 type: string
217 type: object
218 status:
219 description: BackingImageManagerStatus defines the observed state of the
220 Longhorn backing image manager
221 properties:
222 apiMinVersion:
223 type: integer
224 apiVersion:
225 type: integer
226 backingImageFileMap:
227 additionalProperties:
228 properties:
229 currentChecksum:
230 type: string
231 message:
232 type: string
233 name:
234 type: string
235 progress:
236 type: integer
237 realSize:
238 format: int64
239 type: integer
240 senderManagerAddress:
241 type: string
242 sendingReference:
243 type: integer
244 size:
245 format: int64
246 type: integer
247 state:
248 type: string
249 uuid:
250 type: string
251 virtualSize:
252 format: int64
253 type: integer
254 type: object
255 nullable: true
256 type: object
257 currentState:
258 type: string
259 ip:
260 type: string
261 ownerID:
262 type: string
263 storageIP:
264 type: string
265 type: object
266 type: object
267 served: true
268 storage: true
269 subresources:
270 status: {}
271---
272apiVersion: apiextensions.k8s.io/v1
273kind: CustomResourceDefinition
274metadata:
275 annotations:
276 controller-gen.kubebuilder.io/version: v0.19.0
277 labels: {{- include "longhorn.labels" . | nindent 4 }}
278 longhorn-manager: ""
279 name: backingimages.longhorn.io
280spec:
281 group: longhorn.io
282 names:
283 kind: BackingImage
284 listKind: BackingImageList
285 plural: backingimages
286 shortNames:
287 - lhbi
288 singular: backingimage
289 scope: Namespaced
290 versions:
291 - additionalPrinterColumns:
292 - description: The system generated UUID
293 jsonPath: .status.uuid
294 name: UUID
295 type: string
296 - description: The source of the backing image file data
297 jsonPath: .spec.sourceType
298 name: SourceType
299 type: string
300 - description: The backing image file size in each disk
301 jsonPath: .status.size
302 name: Size
303 type: string
304 - description: The virtual size of the image (may be larger than file size)
305 jsonPath: .status.virtualSize
306 name: VirtualSize
307 type: string
308 - jsonPath: .metadata.creationTimestamp
309 name: Age
310 type: date
311 name: v1beta2
312 schema:
313 openAPIV3Schema:
314 description: BackingImage is where Longhorn stores backing image object.
315 properties:
316 apiVersion:
317 description: |-
318 APIVersion defines the versioned schema of this representation of an object.
319 Servers should convert recognized schemas to the latest internal value, and
320 may reject unrecognized values.
321 More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
322 type: string
323 kind:
324 description: |-
325 Kind is a string value representing the REST resource this object represents.
326 Servers may infer this from the endpoint the client submits requests to.
327 Cannot be updated.
328 In CamelCase.
329 More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
330 type: string
331 metadata:
332 type: object
333 spec:
334 description: BackingImageSpec defines the desired state of the Longhorn
335 backing image
336 properties:
337 checksum:
338 type: string
339 dataEngine:
340 default: v1
341 enum:
342 - v1
343 - v2
344 type: string
345 diskFileSpecMap:
346 additionalProperties:
347 properties:
348 dataEngine:
349 enum:
350 - v1
351 - v2
352 type: string
353 evictionRequested:
354 type: boolean
355 type: object
356 type: object
357 diskSelector:
358 items:
359 type: string
360 type: array
361 disks:
362 additionalProperties:
363 type: string
364 description: Deprecated. We are now using DiskFileSpecMap to assign
365 different spec to the file on different disks.
366 type: object
367 minNumberOfCopies:
368 type: integer
369 nodeSelector:
370 items:
371 type: string
372 type: array
373 secret:
374 type: string
375 secretNamespace:
376 type: string
377 sourceParameters:
378 additionalProperties:
379 type: string
380 type: object
381 sourceType:
382 enum:
383 - download
384 - upload
385 - export-from-volume
386 - restore
387 - clone
388 type: string
389 type: object
390 status:
391 description: BackingImageStatus defines the observed state of the Longhorn
392 backing image status
393 properties:
394 checksum:
395 type: string
396 diskFileStatusMap:
397 additionalProperties:
398 properties:
399 dataEngine:
400 enum:
401 - v1
402 - v2
403 type: string
404 lastStateTransitionTime:
405 type: string
406 message:
407 type: string
408 progress:
409 type: integer
410 state:
411 type: string
412 type: object
413 nullable: true
414 type: object
415 diskLastRefAtMap:
416 additionalProperties:
417 type: string
418 nullable: true
419 type: object
420 ownerID:
421 type: string
422 realSize:
423 description: Real size of image in bytes, which may be smaller than
424 the size when the file is a sparse file. Will be zero until known
425 (e.g. while a backing image is uploading)
426 format: int64
427 type: integer
428 size:
429 format: int64
430 type: integer
431 uuid:
432 type: string
433 v2FirstCopyDisk:
434 type: string
435 v2FirstCopyStatus:
436 description: It is pending -> in-progress -> ready/failed
437 type: string
438 virtualSize:
439 description: Virtual size of image in bytes, which may be larger than
440 physical size. Will be zero until known (e.g. while a backing image
441 is uploading)
442 format: int64
443 type: integer
444 type: object
445 type: object
446 served: true
447 storage: true
448 subresources:
449 status: {}
450---
451apiVersion: apiextensions.k8s.io/v1
452kind: CustomResourceDefinition
453metadata:
454 annotations:
455 controller-gen.kubebuilder.io/version: v0.19.0
456 labels: {{- include "longhorn.labels" . | nindent 4 }}
457 longhorn-manager: ""
458 name: backupbackingimages.longhorn.io
459spec:
460 group: longhorn.io
461 names:
462 kind: BackupBackingImage
463 listKind: BackupBackingImageList
464 plural: backupbackingimages
465 shortNames:
466 - lhbbi
467 singular: backupbackingimage
468 scope: Namespaced
469 versions:
470 - additionalPrinterColumns:
471 - description: The backing image name
472 jsonPath: .status.backingImage
473 name: BackingImage
474 type: string
475 - description: The backing image size
476 jsonPath: .status.size
477 name: Size
478 type: string
479 - description: The backing image backup upload finished time
480 jsonPath: .status.backupCreatedAt
481 name: BackupCreatedAt
482 type: string
483 - description: The backing image backup state
484 jsonPath: .status.state
485 name: State
486 type: string
487 - description: The last synced time
488 jsonPath: .status.lastSyncedAt
489 name: LastSyncedAt
490 type: string
491 name: v1beta2
492 schema:
493 openAPIV3Schema:
494 description: BackupBackingImage is where Longhorn stores backing image backup
495 object.
496 properties:
497 apiVersion:
498 description: |-
499 APIVersion defines the versioned schema of this representation of an object.
500 Servers should convert recognized schemas to the latest internal value, and
501 may reject unrecognized values.
502 More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
503 type: string
504 kind:
505 description: |-
506 Kind is a string value representing the REST resource this object represents.
507 Servers may infer this from the endpoint the client submits requests to.
508 Cannot be updated.
509 In CamelCase.
510 More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
511 type: string
512 metadata:
513 type: object
514 spec:
515 description: BackupBackingImageSpec defines the desired state of the Longhorn
516 backing image backup
517 properties:
518 backingImage:
519 description: The backing image name.
520 type: string
521 backupTargetName:
522 description: The backup target name.
523 nullable: true
524 type: string
525 labels:
526 additionalProperties:
527 type: string
528 description: The labels of backing image backup.
529 type: object
530 syncRequestedAt:
531 description: The time to request run sync the remote backing image
532 backup.
533 format: date-time
534 nullable: true
535 type: string
536 userCreated:
537 description: Is this CR created by user through API or UI.
538 type: boolean
539 required:
540 - backingImage
541 - userCreated
542 type: object
543 status:
544 description: BackupBackingImageStatus defines the observed state of the
545 Longhorn backing image backup
546 properties:
547 backingImage:
548 description: The backing image name.
549 type: string
550 backupCreatedAt:
551 description: The backing image backup upload finished time.
552 type: string
553 checksum:
554 description: The checksum of the backing image.
555 type: string
556 compressionMethod:
557 description: Compression method
558 type: string
559 error:
560 description: The error message when taking the backing image backup.
561 type: string
562 labels:
563 additionalProperties:
564 type: string
565 description: The labels of backing image backup.
566 nullable: true
567 type: object
568 lastSyncedAt:
569 description: The last time that the backing image backup was synced
570 with the remote backup target.
571 format: date-time
572 nullable: true
573 type: string
574 managerAddress:
575 description: The address of the backing image manager that runs backing
576 image backup.
577 type: string
578 messages:
579 additionalProperties:
580 type: string
581 description: The error messages when listing or inspecting backing
582 image backup.
583 nullable: true
584 type: object
585 ownerID:
586 description: The node ID on which the controller is responsible to
587 reconcile this CR.
588 type: string
589 progress:
590 description: The backing image backup progress.
591 type: integer
592 secret:
593 description: Record the secret if this backup backing image is encrypted
594 type: string
595 secretNamespace:
596 description: Record the secret namespace if this backup backing image
597 is encrypted
598 type: string
599 size:
600 description: The backing image size.
601 format: int64
602 type: integer
603 state:
604 description: |-
605 The backing image backup creation state.
606 Can be "", "InProgress", "Completed", "Error", "Unknown".
607 type: string
608 url:
609 description: The backing image backup URL.
610 type: string
611 type: object
612 type: object
613 served: true
614 storage: true
615 subresources:
616 status: {}
617---
618apiVersion: apiextensions.k8s.io/v1
619kind: CustomResourceDefinition
620metadata:
621 annotations:
622 controller-gen.kubebuilder.io/version: v0.19.0
623 labels: {{- include "longhorn.labels" . | nindent 4 }}
624 longhorn-manager: ""
625 name: backups.longhorn.io
626spec:
627 group: longhorn.io
628 names:
629 kind: Backup
630 listKind: BackupList
631 plural: backups
632 shortNames:
633 - lhb
634 singular: backup
635 scope: Namespaced
636 versions:
637 - additionalPrinterColumns:
638 - description: The snapshot name
639 jsonPath: .status.snapshotName
640 name: SnapshotName
641 type: string
642 - description: The snapshot size
643 jsonPath: .status.size
644 name: SnapshotSize
645 type: string
646 - description: The snapshot creation time
647 jsonPath: .status.snapshotCreatedAt
648 name: SnapshotCreatedAt
649 type: string
650 - description: The backup target name
651 jsonPath: .status.backupTargetName
652 name: BackupTarget
653 type: string
654 - description: The backup state
655 jsonPath: .status.state
656 name: State
657 type: string
658 - description: The backup last synced time
659 jsonPath: .status.lastSyncedAt
660 name: LastSyncedAt
661 type: string
662 name: v1beta2
663 schema:
664 openAPIV3Schema:
665 description: Backup is where Longhorn stores backup object.
666 properties:
667 apiVersion:
668 description: |-
669 APIVersion defines the versioned schema of this representation of an object.
670 Servers should convert recognized schemas to the latest internal value, and
671 may reject unrecognized values.
672 More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
673 type: string
674 kind:
675 description: |-
676 Kind is a string value representing the REST resource this object represents.
677 Servers may infer this from the endpoint the client submits requests to.
678 Cannot be updated.
679 In CamelCase.
680 More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
681 type: string
682 metadata:
683 type: object
684 spec:
685 description: BackupSpec defines the desired state of the Longhorn backup
686 properties:
687 backupBlockSize:
688 description: The backup block size. 0 means the legacy default size
689 2MiB, and -1 indicate the block size is invalid.
690 enum:
691 - "-1"
692 - "2097152"
693 - "16777216"
694 format: int64
695 type: string
696 backupMode:
697 description: |-
698 The backup mode of this backup.
699 Can be "full" or "incremental"
700 enum:
701 - full
702 - incremental
703 type: string
704 labels:
705 additionalProperties:
706 type: string
707 description: The labels of snapshot backup.
708 type: object
709 snapshotName:
710 description: The snapshot name.
711 type: string
712 syncRequestedAt:
713 description: The time to request run sync the remote backup.
714 format: date-time
715 nullable: true
716 type: string
717 type: object
718 status:
719 description: BackupStatus defines the observed state of the Longhorn backup
720 properties:
721 backupCreatedAt:
722 description: The snapshot backup upload finished time.
723 type: string
724 backupTargetName:
725 description: The backup target name.
726 type: string
727 compressionMethod:
728 description: Compression method
729 type: string
730 error:
731 description: The error message when taking the snapshot backup.
732 type: string
733 labels:
734 additionalProperties:
735 type: string
736 description: The labels of snapshot backup.
737 nullable: true
738 type: object
739 lastSyncedAt:
740 description: The last time that the backup was synced with the remote
741 backup target.
742 format: date-time
743 nullable: true
744 type: string
745 messages:
746 additionalProperties:
747 type: string
748 description: The error messages when calling longhorn engine on listing
749 or inspecting backups.
750 nullable: true
751 type: object
752 newlyUploadDataSize:
753 description: Size in bytes of newly uploaded data
754 type: string
755 ownerID:
756 description: The node ID on which the controller is responsible to
757 reconcile this backup CR.
758 type: string
759 progress:
760 description: The snapshot backup progress.
761 type: integer
762 reUploadedDataSize:
763 description: Size in bytes of reuploaded data
764 type: string
765 replicaAddress:
766 description: The address of the replica that runs snapshot backup.
767 type: string
768 size:
769 description: The snapshot size.
770 type: string
771 snapshotCreatedAt:
772 description: The snapshot creation time.
773 type: string
774 snapshotName:
775 description: The snapshot name.
776 type: string
777 state:
778 description: |-
779 The backup creation state.
780 Can be "", "InProgress", "Completed", "Error", "Unknown".
781 type: string
782 url:
783 description: The snapshot backup URL.
784 type: string
785 volumeBackingImageName:
786 description: The volume's backing image name.
787 type: string
788 volumeCreated:
789 description: The volume creation time.
790 type: string
791 volumeName:
792 description: The volume name.
793 type: string
794 volumeSize:
795 description: The volume size.
796 type: string
797 type: object
798 type: object
799 served: true
800 storage: true
801 subresources:
802 status: {}
803---
804apiVersion: apiextensions.k8s.io/v1
805kind: CustomResourceDefinition
806metadata:
807 annotations:
808 controller-gen.kubebuilder.io/version: v0.19.0
809 labels: {{- include "longhorn.labels" . | nindent 4 }}
810 longhorn-manager: ""
811 name: backuptargets.longhorn.io
812spec:
813 group: longhorn.io
814 names:
815 kind: BackupTarget
816 listKind: BackupTargetList
817 plural: backuptargets
818 shortNames:
819 - lhbt
820 singular: backuptarget
821 scope: Namespaced
822 versions:
823 - additionalPrinterColumns:
824 - description: The backup target URL
825 jsonPath: .spec.backupTargetURL
826 name: URL
827 type: string
828 - description: The backup target credential secret
829 jsonPath: .spec.credentialSecret
830 name: Credential
831 type: string
832 - description: The backup target poll interval
833 jsonPath: .spec.pollInterval
834 name: LastBackupAt
835 type: string
836 - description: Indicate whether the backup target is available or not
837 jsonPath: .status.available
838 name: Available
839 type: boolean
840 - description: The backup target last synced time
841 jsonPath: .status.lastSyncedAt
842 name: LastSyncedAt
843 type: string
844 name: v1beta2
845 schema:
846 openAPIV3Schema:
847 description: BackupTarget is where Longhorn stores backup target object.
848 properties:
849 apiVersion:
850 description: |-
851 APIVersion defines the versioned schema of this representation of an object.
852 Servers should convert recognized schemas to the latest internal value, and
853 may reject unrecognized values.
854 More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
855 type: string
856 kind:
857 description: |-
858 Kind is a string value representing the REST resource this object represents.
859 Servers may infer this from the endpoint the client submits requests to.
860 Cannot be updated.
861 In CamelCase.
862 More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
863 type: string
864 metadata:
865 type: object
866 spec:
867 description: BackupTargetSpec defines the desired state of the Longhorn
868 backup target
869 properties:
870 backupTargetURL:
871 description: The backup target URL.
872 type: string
873 credentialSecret:
874 description: The backup target credential secret.
875 type: string
876 pollInterval:
877 description: The interval that the cluster needs to run sync with
878 the backup target.
879 type: string
880 syncRequestedAt:
881 description: The time to request run sync the remote backup target.
882 format: date-time
883 nullable: true
884 type: string
885 type: object
886 status:
887 description: BackupTargetStatus defines the observed state of the Longhorn
888 backup target
889 properties:
890 available:
891 description: Available indicates if the remote backup target is available
892 or not.
893 type: boolean
894 conditions:
895 description: Records the reason on why the backup target is unavailable.
896 items:
897 properties:
898 lastProbeTime:
899 description: Last time we probed the condition.
900 type: string
901 lastTransitionTime:
902 description: Last time the condition transitioned from one status
903 to another.
904 type: string
905 message:
906 description: Human-readable message indicating details about
907 last transition.
908 type: string
909 reason:
910 description: Unique, one-word, CamelCase reason for the condition's
911 last transition.
912 type: string
913 status:
914 description: |-
915 Status is the status of the condition.
916 Can be True, False, Unknown.
917 type: string
918 type:
919 description: Type is the type of the condition.
920 type: string
921 type: object
922 nullable: true
923 type: array
924 lastSyncedAt:
925 description: The last time that the controller synced with the remote
926 backup target.
927 format: date-time
928 nullable: true
929 type: string
930 ownerID:
931 description: The node ID on which the controller is responsible to
932 reconcile this backup target CR.
933 type: string
934 type: object
935 type: object
936 served: true
937 storage: true
938 subresources:
939 status: {}
940---
941apiVersion: apiextensions.k8s.io/v1
942kind: CustomResourceDefinition
943metadata:
944 annotations:
945 controller-gen.kubebuilder.io/version: v0.19.0
946 labels: {{- include "longhorn.labels" . | nindent 4 }}
947 longhorn-manager: ""
948 name: backupvolumes.longhorn.io
949spec:
950 group: longhorn.io
951 names:
952 kind: BackupVolume
953 listKind: BackupVolumeList
954 plural: backupvolumes
955 shortNames:
956 - lhbv
957 singular: backupvolume
958 scope: Namespaced
959 versions:
960 - additionalPrinterColumns:
961 - description: The backup target name
962 jsonPath: .spec.backupTargetName
963 name: BackupTarget
964 type: string
965 - description: The backup volume creation time
966 jsonPath: .status.createdAt
967 name: CreatedAt
968 type: string
969 - description: The backup volume last backup name
970 jsonPath: .status.lastBackupName
971 name: LastBackupName
972 type: string
973 - description: The backup volume last backup time
974 jsonPath: .status.lastBackupAt
975 name: LastBackupAt
976 type: string
977 - description: The backup volume last synced time
978 jsonPath: .status.lastSyncedAt
979 name: LastSyncedAt
980 type: string
981 name: v1beta2
982 schema:
983 openAPIV3Schema:
984 description: BackupVolume is where Longhorn stores backup volume object.
985 properties:
986 apiVersion:
987 description: |-
988 APIVersion defines the versioned schema of this representation of an object.
989 Servers should convert recognized schemas to the latest internal value, and
990 may reject unrecognized values.
991 More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
992 type: string
993 kind:
994 description: |-
995 Kind is a string value representing the REST resource this object represents.
996 Servers may infer this from the endpoint the client submits requests to.
997 Cannot be updated.
998 In CamelCase.
999 More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
1000 type: string
1001 metadata:
1002 type: object
1003 spec:
1004 description: BackupVolumeSpec defines the desired state of the Longhorn
1005 backup volume
1006 properties:
1007 backupTargetName:
1008 description: The backup target name that the backup volume was synced.
1009 nullable: true
1010 type: string
1011 syncRequestedAt:
1012 description: The time to request run sync the remote backup volume.
1013 format: date-time
1014 nullable: true
1015 type: string
1016 volumeName:
1017 description: The volume name that the backup volume was used to backup.
1018 type: string
1019 type: object
1020 status:
1021 description: BackupVolumeStatus defines the observed state of the Longhorn
1022 backup volume
1023 properties:
1024 backingImageChecksum:
1025 description: the backing image checksum.
1026 type: string
1027 backingImageName:
1028 description: The backing image name.
1029 type: string
1030 createdAt:
1031 description: The backup volume creation time.
1032 type: string
1033 dataStored:
1034 description: The backup volume block count.
1035 type: string
1036 labels:
1037 additionalProperties:
1038 type: string
1039 description: The backup volume labels.
1040 nullable: true
1041 type: object
1042 lastBackupAt:
1043 description: The latest volume backup time.
1044 type: string
1045 lastBackupName:
1046 description: The latest volume backup name.
1047 type: string
1048 lastModificationTime:
1049 description: The backup volume config last modification time.
1050 format: date-time
1051 nullable: true
1052 type: string
1053 lastSyncedAt:
1054 description: The last time that the backup volume was synced into
1055 the cluster.
1056 format: date-time
1057 nullable: true
1058 type: string
1059 messages:
1060 additionalProperties:
1061 type: string
1062 description: The error messages when call longhorn engine on list
1063 or inspect backup volumes.
1064 nullable: true
1065 type: object
1066 ownerID:
1067 description: The node ID on which the controller is responsible to
1068 reconcile this backup volume CR.
1069 type: string
1070 size:
1071 description: The backup volume size.
1072 type: string
1073 storageClassName:
1074 description: the storage class name of pv/pvc binding with the volume.
1075 type: string
1076 type: object
1077 type: object
1078 served: true
1079 storage: true
1080 subresources:
1081 status: {}
1082---
1083apiVersion: apiextensions.k8s.io/v1
1084kind: CustomResourceDefinition
1085metadata:
1086 annotations:
1087 controller-gen.kubebuilder.io/version: v0.19.0
1088 labels: {{- include "longhorn.labels" . | nindent 4 }}
1089 longhorn-manager: ""
1090 name: engineimages.longhorn.io
1091spec:
1092 group: longhorn.io
1093 names:
1094 kind: EngineImage
1095 listKind: EngineImageList
1096 plural: engineimages
1097 shortNames:
1098 - lhei
1099 singular: engineimage
1100 scope: Namespaced
1101 versions:
1102 - additionalPrinterColumns:
1103 - description: Compatibility of the engine image
1104 jsonPath: .status.incompatible
1105 name: Incompatible
1106 type: boolean
1107 - description: State of the engine image
1108 jsonPath: .status.state
1109 name: State
1110 type: string
1111 - description: The Longhorn engine image
1112 jsonPath: .spec.image
1113 name: Image
1114 type: string
1115 - description: Number of resources using the engine image
1116 jsonPath: .status.refCount
1117 name: RefCount
1118 type: integer
1119 - description: The build date of the engine image
1120 jsonPath: .status.buildDate
1121 name: BuildDate
1122 type: date
1123 - jsonPath: .metadata.creationTimestamp
1124 name: Age
1125 type: date
1126 name: v1beta2
1127 schema:
1128 openAPIV3Schema:
1129 description: EngineImage is where Longhorn stores engine image object.
1130 properties:
1131 apiVersion:
1132 description: |-
1133 APIVersion defines the versioned schema of this representation of an object.
1134 Servers should convert recognized schemas to the latest internal value, and
1135 may reject unrecognized values.
1136 More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
1137 type: string
1138 kind:
1139 description: |-
1140 Kind is a string value representing the REST resource this object represents.
1141 Servers may infer this from the endpoint the client submits requests to.
1142 Cannot be updated.
1143 In CamelCase.
1144 More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
1145 type: string
1146 metadata:
1147 type: object
1148 spec:
1149 description: EngineImageSpec defines the desired state of the Longhorn
1150 engine image
1151 properties:
1152 image:
1153 minLength: 1
1154 type: string
1155 required:
1156 - image
1157 type: object
1158 status:
1159 description: EngineImageStatus defines the observed state of the Longhorn
1160 engine image
1161 properties:
1162 buildDate:
1163 type: string
1164 cliAPIMinVersion:
1165 type: integer
1166 cliAPIVersion:
1167 type: integer
1168 conditions:
1169 items:
1170 properties:
1171 lastProbeTime:
1172 description: Last time we probed the condition.
1173 type: string
1174 lastTransitionTime:
1175 description: Last time the condition transitioned from one status
1176 to another.
1177 type: string
1178 message:
1179 description: Human-readable message indicating details about
1180 last transition.
1181 type: string
1182 reason:
1183 description: Unique, one-word, CamelCase reason for the condition's
1184 last transition.
1185 type: string
1186 status:
1187 description: |-
1188 Status is the status of the condition.
1189 Can be True, False, Unknown.
1190 type: string
1191 type:
1192 description: Type is the type of the condition.
1193 type: string
1194 type: object
1195 nullable: true
1196 type: array
1197 controllerAPIMinVersion:
1198 type: integer
1199 controllerAPIVersion:
1200 type: integer
1201 dataFormatMinVersion:
1202 type: integer
1203 dataFormatVersion:
1204 type: integer
1205 gitCommit:
1206 type: string
1207 incompatible:
1208 type: boolean
1209 noRefSince:
1210 type: string
1211 nodeDeploymentMap:
1212 additionalProperties:
1213 type: boolean
1214 nullable: true
1215 type: object
1216 ownerID:
1217 type: string
1218 refCount:
1219 type: integer
1220 state:
1221 type: string
1222 version:
1223 type: string
1224 type: object
1225 type: object
1226 served: true
1227 storage: true
1228 subresources:
1229 status: {}
1230---
1231apiVersion: apiextensions.k8s.io/v1
1232kind: CustomResourceDefinition
1233metadata:
1234 annotations:
1235 controller-gen.kubebuilder.io/version: v0.19.0
1236 labels: {{- include "longhorn.labels" . | nindent 4 }}
1237 longhorn-manager: ""
1238 name: engines.longhorn.io
1239spec:
1240 group: longhorn.io
1241 names:
1242 kind: Engine
1243 listKind: EngineList
1244 plural: engines
1245 shortNames:
1246 - lhe
1247 singular: engine
1248 scope: Namespaced
1249 versions:
1250 - additionalPrinterColumns:
1251 - description: The data engine of the engine
1252 jsonPath: .spec.dataEngine
1253 name: Data Engine
1254 type: string
1255 - description: The current state of the engine
1256 jsonPath: .status.currentState
1257 name: State
1258 type: string
1259 - description: The node that the engine is on
1260 jsonPath: .spec.nodeID
1261 name: Node
1262 type: string
1263 - description: The instance manager of the engine
1264 jsonPath: .status.instanceManagerName
1265 name: InstanceManager
1266 type: string
1267 - description: The current image of the engine
1268 jsonPath: .status.currentImage
1269 name: Image
1270 type: string
1271 - jsonPath: .metadata.creationTimestamp
1272 name: Age
1273 type: date
1274 name: v1beta2
1275 schema:
1276 openAPIV3Schema:
1277 description: Engine is where Longhorn stores engine object.
1278 properties:
1279 apiVersion:
1280 description: |-
1281 APIVersion defines the versioned schema of this representation of an object.
1282 Servers should convert recognized schemas to the latest internal value, and
1283 may reject unrecognized values.
1284 More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
1285 type: string
1286 kind:
1287 description: |-
1288 Kind is a string value representing the REST resource this object represents.
1289 Servers may infer this from the endpoint the client submits requests to.
1290 Cannot be updated.
1291 In CamelCase.
1292 More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
1293 type: string
1294 metadata:
1295 type: object
1296 spec:
1297 description: EngineSpec defines the desired state of the Longhorn engine
1298 properties:
1299 active:
1300 type: boolean
1301 backupVolume:
1302 type: string
1303 dataEngine:
1304 enum:
1305 - v1
1306 - v2
1307 type: string
1308 desireState:
1309 type: string
1310 disableFrontend:
1311 type: boolean
1312 frontend:
1313 enum:
1314 - blockdev
1315 - iscsi
1316 - nvmf
1317 - ublk
1318 - ""
1319 type: string
1320 image:
1321 type: string
1322 logRequested:
1323 type: boolean
1324 nodeID:
1325 type: string
1326 rebuildConcurrentSyncLimit:
1327 description: |-
1328 RebuildConcurrentSyncLimit controls the maximum number of file synchronization operations that can run
1329 concurrently during a single replica rebuild.
1330 It is determined by the global setting or the volume spec field with the same name.
1331 maximum: 5
1332 minimum: 0
1333 type: integer
1334 replicaAddressMap:
1335 additionalProperties:
1336 type: string
1337 type: object
1338 requestedBackupRestore:
1339 type: string
1340 requestedDataSource:
1341 type: string
1342 revisionCounterDisabled:
1343 type: boolean
1344 salvageRequested:
1345 type: boolean
1346 snapshotMaxCount:
1347 type: integer
1348 snapshotMaxSize:
1349 format: int64
1350 type: string
1351 ublkNumberOfQueue:
1352 description: ublkNumberOfQueue controls the number of queues for ublk
1353 frontend.
1354 type: integer
1355 ublkQueueDepth:
1356 description: ublkQueueDepth controls the depth of each queue for ublk
1357 frontend.
1358 type: integer
1359 unmapMarkSnapChainRemovedEnabled:
1360 type: boolean
1361 upgradedReplicaAddressMap:
1362 additionalProperties:
1363 type: string
1364 type: object
1365 volumeName:
1366 type: string
1367 volumeSize:
1368 format: int64
1369 type: string
1370 type: object
1371 status:
1372 description: EngineStatus defines the observed state of the Longhorn engine
1373 properties:
1374 backupStatus:
1375 additionalProperties:
1376 properties:
1377 backupURL:
1378 type: string
1379 error:
1380 type: string
1381 progress:
1382 type: integer
1383 replicaAddress:
1384 type: string
1385 snapshotName:
1386 type: string
1387 state:
1388 type: string
1389 type: object
1390 nullable: true
1391 type: object
1392 cloneStatus:
1393 additionalProperties:
1394 properties:
1395 error:
1396 type: string
1397 fromReplicaAddress:
1398 type: string
1399 isCloning:
1400 type: boolean
1401 progress:
1402 type: integer
1403 snapshotName:
1404 type: string
1405 state:
1406 type: string
1407 type: object
1408 nullable: true
1409 type: object
1410 conditions:
1411 items:
1412 properties:
1413 lastProbeTime:
1414 description: Last time we probed the condition.
1415 type: string
1416 lastTransitionTime:
1417 description: Last time the condition transitioned from one status
1418 to another.
1419 type: string
1420 message:
1421 description: Human-readable message indicating details about
1422 last transition.
1423 type: string
1424 reason:
1425 description: Unique, one-word, CamelCase reason for the condition's
1426 last transition.
1427 type: string
1428 status:
1429 description: |-
1430 Status is the status of the condition.
1431 Can be True, False, Unknown.
1432 type: string
1433 type:
1434 description: Type is the type of the condition.
1435 type: string
1436 type: object
1437 nullable: true
1438 type: array
1439 currentImage:
1440 type: string
1441 currentReplicaAddressMap:
1442 additionalProperties:
1443 type: string
1444 nullable: true
1445 type: object
1446 currentSize:
1447 format: int64
1448 type: string
1449 currentState:
1450 type: string
1451 endpoint:
1452 type: string
1453 instanceManagerName:
1454 type: string
1455 ip:
1456 type: string
1457 isExpanding:
1458 type: boolean
1459 lastExpansionError:
1460 type: string
1461 lastExpansionFailedAt:
1462 type: string
1463 lastRestoredBackup:
1464 type: string
1465 logFetched:
1466 type: boolean
1467 ownerID:
1468 type: string
1469 port:
1470 type: integer
1471 purgeStatus:
1472 additionalProperties:
1473 properties:
1474 error:
1475 type: string
1476 isPurging:
1477 type: boolean
1478 progress:
1479 type: integer
1480 state:
1481 type: string
1482 type: object
1483 nullable: true
1484 type: object
1485 rebuildConcurrentSyncLimit:
1486 description: |-
1487 RebuildConcurrentSyncLimit controls the maximum number of file synchronization operations that can run
1488 concurrently during a single replica rebuild.
1489 It is determined by the global setting or the volume spec field with the same name.
1490 minimum: 0
1491 type: integer
1492 rebuildStatus:
1493 additionalProperties:
1494 properties:
1495 appliedRebuildingMBps:
1496 format: int64
1497 type: integer
1498 error:
1499 type: string
1500 fromReplicaAddress:
1501 description: Deprecated. We are now using FromReplicaAddressList
1502 to list all source replicas.
1503 type: string
1504 fromReplicaAddressList:
1505 items:
1506 type: string
1507 type: array
1508 isRebuilding:
1509 type: boolean
1510 progress:
1511 type: integer
1512 state:
1513 type: string
1514 type: object
1515 nullable: true
1516 type: object
1517 replicaModeMap:
1518 additionalProperties:
1519 type: string
1520 nullable: true
1521 type: object
1522 replicaTransitionTimeMap:
1523 additionalProperties:
1524 type: string
1525 description: |-
1526 ReplicaTransitionTimeMap records the time a replica in ReplicaModeMap transitions from one mode to another (or
1527 from not being in the ReplicaModeMap to being in it). This information is sometimes required by other controllers
1528 (e.g. the volume controller uses it to determine the correct value for replica.Spec.lastHealthyAt).
1529 type: object
1530 restoreStatus:
1531 additionalProperties:
1532 properties:
1533 backupURL:
1534 type: string
1535 currentRestoringBackup:
1536 type: string
1537 error:
1538 type: string
1539 filename:
1540 type: string
1541 isRestoring:
1542 type: boolean
1543 lastRestored:
1544 type: string
1545 progress:
1546 type: integer
1547 state:
1548 type: string
1549 type: object
1550 nullable: true
1551 type: object
1552 salvageExecuted:
1553 type: boolean
1554 snapshotMaxCount:
1555 type: integer
1556 snapshotMaxSize:
1557 format: int64
1558 type: string
1559 snapshots:
1560 additionalProperties:
1561 properties:
1562 children:
1563 additionalProperties:
1564 type: boolean
1565 nullable: true
1566 type: object
1567 created:
1568 type: string
1569 labels:
1570 additionalProperties:
1571 type: string
1572 nullable: true
1573 type: object
1574 name:
1575 type: string
1576 parent:
1577 type: string
1578 removed:
1579 type: boolean
1580 size:
1581 type: string
1582 usercreated:
1583 type: boolean
1584 type: object
1585 nullable: true
1586 type: object
1587 snapshotsError:
1588 type: string
1589 started:
1590 type: boolean
1591 starting:
1592 type: boolean
1593 storageIP:
1594 type: string
1595 ublkID:
1596 format: int32
1597 type: integer
1598 unmapMarkSnapChainRemovedEnabled:
1599 type: boolean
1600 uuid:
1601 type: string
1602 type: object
1603 type: object
1604 served: true
1605 storage: true
1606 subresources:
1607 status: {}
1608---
1609apiVersion: apiextensions.k8s.io/v1
1610kind: CustomResourceDefinition
1611metadata:
1612 annotations:
1613 controller-gen.kubebuilder.io/version: v0.19.0
1614 labels: {{- include "longhorn.labels" . | nindent 4 }}
1615 longhorn-manager: ""
1616 name: instancemanagers.longhorn.io
1617spec:
1618 group: longhorn.io
1619 names:
1620 kind: InstanceManager
1621 listKind: InstanceManagerList
1622 plural: instancemanagers
1623 shortNames:
1624 - lhim
1625 singular: instancemanager
1626 scope: Namespaced
1627 versions:
1628 - additionalPrinterColumns:
1629 - description: The data engine of the instance manager
1630 jsonPath: .spec.dataEngine
1631 name: Data Engine
1632 type: string
1633 - description: The state of the instance manager
1634 jsonPath: .status.currentState
1635 name: State
1636 type: string
1637 - description: The type of the instance manager (engine or replica)
1638 jsonPath: .spec.type
1639 name: Type
1640 type: string
1641 - description: The node that the instance manager is running on
1642 jsonPath: .spec.nodeID
1643 name: Node
1644 type: string
1645 - jsonPath: .metadata.creationTimestamp
1646 name: Age
1647 type: date
1648 name: v1beta2
1649 schema:
1650 openAPIV3Schema:
1651 description: InstanceManager is where Longhorn stores instance manager object.
1652 properties:
1653 apiVersion:
1654 description: |-
1655 APIVersion defines the versioned schema of this representation of an object.
1656 Servers should convert recognized schemas to the latest internal value, and
1657 may reject unrecognized values.
1658 More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
1659 type: string
1660 kind:
1661 description: |-
1662 Kind is a string value representing the REST resource this object represents.
1663 Servers may infer this from the endpoint the client submits requests to.
1664 Cannot be updated.
1665 In CamelCase.
1666 More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
1667 type: string
1668 metadata:
1669 type: object
1670 spec:
1671 description: InstanceManagerSpec defines the desired state of the Longhorn
1672 instance manager
1673 properties:
1674 dataEngine:
1675 type: string
1676 dataEngineSpec:
1677 properties:
1678 v2:
1679 properties:
1680 cpuMask:
1681 type: string
1682 type: object
1683 type: object
1684 image:
1685 type: string
1686 nodeID:
1687 type: string
1688 type:
1689 enum:
1690 - aio
1691 - engine
1692 - replica
1693 type: string
1694 type: object
1695 status:
1696 description: InstanceManagerStatus defines the observed state of the Longhorn
1697 instance manager
1698 properties:
1699 apiMinVersion:
1700 type: integer
1701 apiVersion:
1702 type: integer
1703 backingImages:
1704 additionalProperties:
1705 properties:
1706 currentChecksum:
1707 type: string
1708 diskUUID:
1709 type: string
1710 message:
1711 type: string
1712 name:
1713 type: string
1714 progress:
1715 type: integer
1716 size:
1717 format: int64
1718 type: integer
1719 state:
1720 type: string
1721 uuid:
1722 type: string
1723 type: object
1724 nullable: true
1725 type: object
1726 conditions:
1727 items:
1728 properties:
1729 lastProbeTime:
1730 description: Last time we probed the condition.
1731 type: string
1732 lastTransitionTime:
1733 description: Last time the condition transitioned from one status
1734 to another.
1735 type: string
1736 message:
1737 description: Human-readable message indicating details about
1738 last transition.
1739 type: string
1740 reason:
1741 description: Unique, one-word, CamelCase reason for the condition's
1742 last transition.
1743 type: string
1744 status:
1745 description: |-
1746 Status is the status of the condition.
1747 Can be True, False, Unknown.
1748 type: string
1749 type:
1750 description: Type is the type of the condition.
1751 type: string
1752 type: object
1753 nullable: true
1754 type: array
1755 currentState:
1756 type: string
1757 dataEngineStatus:
1758 properties:
1759 v2:
1760 properties:
1761 cpuMask:
1762 type: string
1763 interruptModeEnabled:
1764 description: |-
1765 InterruptModeEnabled indicates whether the V2 data engine is running in
1766 interrupt mode (true) or polling mode (false). Set by Longhorn manager;
1767 read-only to users.
1768 enum:
1769 - ""
1770 - "true"
1771 - "false"
1772 type: string
1773 type: object
1774 type: object
1775 instanceEngines:
1776 additionalProperties:
1777 properties:
1778 spec:
1779 properties:
1780 dataEngine:
1781 type: string
1782 name:
1783 type: string
1784 type: object
1785 status:
1786 properties:
1787 conditions:
1788 additionalProperties:
1789 type: boolean
1790 nullable: true
1791 type: object
1792 endpoint:
1793 type: string
1794 errorMsg:
1795 type: string
1796 listen:
1797 type: string
1798 portEnd:
1799 format: int32
1800 type: integer
1801 portStart:
1802 format: int32
1803 type: integer
1804 resourceVersion:
1805 format: int64
1806 type: integer
1807 state:
1808 type: string
1809 targetPortEnd:
1810 format: int32
1811 type: integer
1812 targetPortStart:
1813 format: int32
1814 type: integer
1815 type:
1816 type: string
1817 ublkID:
1818 format: int32
1819 type: integer
1820 uuid:
1821 type: string
1822 type: object
1823 type: object
1824 nullable: true
1825 type: object
1826 instanceReplicas:
1827 additionalProperties:
1828 properties:
1829 spec:
1830 properties:
1831 dataEngine:
1832 type: string
1833 name:
1834 type: string
1835 type: object
1836 status:
1837 properties:
1838 conditions:
1839 additionalProperties:
1840 type: boolean
1841 nullable: true
1842 type: object
1843 endpoint:
1844 type: string
1845 errorMsg:
1846 type: string
1847 listen:
1848 type: string
1849 portEnd:
1850 format: int32
1851 type: integer
1852 portStart:
1853 format: int32
1854 type: integer
1855 resourceVersion:
1856 format: int64
1857 type: integer
1858 state:
1859 type: string
1860 targetPortEnd:
1861 format: int32
1862 type: integer
1863 targetPortStart:
1864 format: int32
1865 type: integer
1866 type:
1867 type: string
1868 ublkID:
1869 format: int32
1870 type: integer
1871 uuid:
1872 type: string
1873 type: object
1874 type: object
1875 nullable: true
1876 type: object
1877 ip:
1878 type: string
1879 ownerID:
1880 type: string
1881 proxyApiMinVersion:
1882 type: integer
1883 proxyApiVersion:
1884 type: integer
1885 type: object
1886 type: object
1887 served: true
1888 storage: true
1889 subresources:
1890 status: {}
1891---
1892apiVersion: apiextensions.k8s.io/v1
1893kind: CustomResourceDefinition
1894metadata:
1895 annotations:
1896 controller-gen.kubebuilder.io/version: v0.19.0
1897 labels: {{- include "longhorn.labels" . | nindent 4 }}
1898 longhorn-manager: ""
1899 name: nodes.longhorn.io
1900spec:
1901 group: longhorn.io
1902 names:
1903 kind: Node
1904 listKind: NodeList
1905 plural: nodes
1906 shortNames:
1907 - lhn
1908 singular: node
1909 scope: Namespaced
1910 versions:
1911 - additionalPrinterColumns:
1912 - description: Indicate whether the node is ready
1913 jsonPath: .status.conditions[?(@.type=='Ready')].status
1914 name: Ready
1915 type: string
1916 - description: Indicate whether the user disabled/enabled replica scheduling for
1917 the node
1918 jsonPath: .spec.allowScheduling
1919 name: AllowScheduling
1920 type: boolean
1921 - description: Indicate whether Longhorn can schedule replicas on the node
1922 jsonPath: .status.conditions[?(@.type=='Schedulable')].status
1923 name: Schedulable
1924 type: string
1925 - jsonPath: .metadata.creationTimestamp
1926 name: Age
1927 type: date
1928 name: v1beta2
1929 schema:
1930 openAPIV3Schema:
1931 description: Node is where Longhorn stores Longhorn node object.
1932 properties:
1933 apiVersion:
1934 description: |-
1935 APIVersion defines the versioned schema of this representation of an object.
1936 Servers should convert recognized schemas to the latest internal value, and
1937 may reject unrecognized values.
1938 More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
1939 type: string
1940 kind:
1941 description: |-
1942 Kind is a string value representing the REST resource this object represents.
1943 Servers may infer this from the endpoint the client submits requests to.
1944 Cannot be updated.
1945 In CamelCase.
1946 More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
1947 type: string
1948 metadata:
1949 type: object
1950 spec:
1951 description: NodeSpec defines the desired state of the Longhorn node
1952 properties:
1953 allowScheduling:
1954 type: boolean
1955 disks:
1956 additionalProperties:
1957 properties:
1958 allowScheduling:
1959 type: boolean
1960 diskDriver:
1961 enum:
1962 - ""
1963 - auto
1964 - aio
1965 - nvme
1966 type: string
1967 diskType:
1968 enum:
1969 - filesystem
1970 - block
1971 type: string
1972 evictionRequested:
1973 type: boolean
1974 path:
1975 type: string
1976 storageReserved:
1977 format: int64
1978 type: integer
1979 tags:
1980 items:
1981 type: string
1982 type: array
1983 type: object
1984 type: object
1985 evictionRequested:
1986 type: boolean
1987 instanceManagerCPURequest:
1988 type: integer
1989 name:
1990 type: string
1991 tags:
1992 items:
1993 type: string
1994 type: array
1995 type: object
1996 status:
1997 description: NodeStatus defines the observed state of the Longhorn node
1998 properties:
1999 autoEvicting:
2000 type: boolean
2001 conditions:
2002 items:
2003 properties:
2004 lastProbeTime:
2005 description: Last time we probed the condition.
2006 type: string
2007 lastTransitionTime:
2008 description: Last time the condition transitioned from one status
2009 to another.
2010 type: string
2011 message:
2012 description: Human-readable message indicating details about
2013 last transition.
2014 type: string
2015 reason:
2016 description: Unique, one-word, CamelCase reason for the condition's
2017 last transition.
2018 type: string
2019 status:
2020 description: |-
2021 Status is the status of the condition.
2022 Can be True, False, Unknown.
2023 type: string
2024 type:
2025 description: Type is the type of the condition.
2026 type: string
2027 type: object
2028 nullable: true
2029 type: array
2030 diskStatus:
2031 additionalProperties:
2032 properties:
2033 conditions:
2034 items:
2035 properties:
2036 lastProbeTime:
2037 description: Last time we probed the condition.
2038 type: string
2039 lastTransitionTime:
2040 description: Last time the condition transitioned from
2041 one status to another.
2042 type: string
2043 message:
2044 description: Human-readable message indicating details
2045 about last transition.
2046 type: string
2047 reason:
2048 description: Unique, one-word, CamelCase reason for the
2049 condition's last transition.
2050 type: string
2051 status:
2052 description: |-
2053 Status is the status of the condition.
2054 Can be True, False, Unknown.
2055 type: string
2056 type:
2057 description: Type is the type of the condition.
2058 type: string
2059 type: object
2060 nullable: true
2061 type: array
2062 diskDriver:
2063 type: string
2064 diskName:
2065 type: string
2066 diskPath:
2067 type: string
2068 diskType:
2069 type: string
2070 diskUUID:
2071 type: string
2072 filesystemType:
2073 type: string
2074 healthData:
2075 additionalProperties:
2076 properties:
2077 attributes:
2078 items:
2079 properties:
2080 id:
2081 type: integer
2082 name:
2083 type: string
2084 rawString:
2085 type: string
2086 rawValue:
2087 format: int64
2088 type: integer
2089 threshold:
2090 type: integer
2091 value:
2092 type: integer
2093 whenFailed:
2094 type: string
2095 worst:
2096 type: integer
2097 type: object
2098 type: array
2099 capacity:
2100 format: int64
2101 type: integer
2102 diskName:
2103 type: string
2104 diskType:
2105 type: string
2106 firmwareVersion:
2107 type: string
2108 healthStatus:
2109 enum:
2110 - FAILED
2111 - PASSED
2112 - UNKNOWN
2113 - WARNING
2114 type: string
2115 modelName:
2116 type: string
2117 serialNumber:
2118 type: string
2119 source:
2120 enum:
2121 - SMART
2122 - SPDK
2123 type: string
2124 temperature:
2125 type: integer
2126 type: object
2127 type: object
2128 healthDataLastCollectedAt:
2129 format: date-time
2130 type: string
2131 instanceManagerName:
2132 type: string
2133 scheduledBackingImage:
2134 additionalProperties:
2135 format: int64
2136 type: integer
2137 nullable: true
2138 type: object
2139 scheduledReplica:
2140 additionalProperties:
2141 format: int64
2142 type: integer
2143 nullable: true
2144 type: object
2145 storageAvailable:
2146 format: int64
2147 type: integer
2148 storageMaximum:
2149 format: int64
2150 type: integer
2151 storageScheduled:
2152 format: int64
2153 type: integer
2154 type: object
2155 nullable: true
2156 type: object
2157 region:
2158 type: string
2159 snapshotCheckStatus:
2160 properties:
2161 lastPeriodicCheckedAt:
2162 format: date-time
2163 type: string
2164 type: object
2165 zone:
2166 type: string
2167 type: object
2168 type: object
2169 served: true
2170 storage: true
2171 subresources:
2172 status: {}
2173---
2174apiVersion: apiextensions.k8s.io/v1
2175kind: CustomResourceDefinition
2176metadata:
2177 annotations:
2178 controller-gen.kubebuilder.io/version: v0.19.0
2179 labels: {{- include "longhorn.labels" . | nindent 4 }}
2180 longhorn-manager: ""
2181 name: orphans.longhorn.io
2182spec:
2183 group: longhorn.io
2184 names:
2185 kind: Orphan
2186 listKind: OrphanList
2187 plural: orphans
2188 shortNames:
2189 - lho
2190 singular: orphan
2191 scope: Namespaced
2192 versions:
2193 - additionalPrinterColumns:
2194 - description: The type of the orphan
2195 jsonPath: .spec.orphanType
2196 name: Type
2197 type: string
2198 - description: The node that the orphan is on
2199 jsonPath: .spec.nodeID
2200 name: Node
2201 type: string
2202 name: v1beta2
2203 schema:
2204 openAPIV3Schema:
2205 description: Orphan is where Longhorn stores orphan object.
2206 properties:
2207 apiVersion:
2208 description: |-
2209 APIVersion defines the versioned schema of this representation of an object.
2210 Servers should convert recognized schemas to the latest internal value, and
2211 may reject unrecognized values.
2212 More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
2213 type: string
2214 kind:
2215 description: |-
2216 Kind is a string value representing the REST resource this object represents.
2217 Servers may infer this from the endpoint the client submits requests to.
2218 Cannot be updated.
2219 In CamelCase.
2220 More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
2221 type: string
2222 metadata:
2223 type: object
2224 spec:
2225 description: OrphanSpec defines the desired state of the Longhorn orphaned
2226 data
2227 properties:
2228 dataEngine:
2229 description: |-
2230 The type of data engine for instance orphan.
2231 Can be "v1", "v2".
2232 enum:
2233 - v1
2234 - v2
2235 type: string
2236 nodeID:
2237 description: The node ID on which the controller is responsible to
2238 reconcile this orphan CR.
2239 type: string
2240 orphanType:
2241 description: |-
2242 The type of the orphaned data.
2243 Can be "replica".
2244 type: string
2245 parameters:
2246 additionalProperties:
2247 type: string
2248 description: The parameters of the orphaned data
2249 type: object
2250 type: object
2251 status:
2252 description: OrphanStatus defines the observed state of the Longhorn orphaned
2253 data
2254 properties:
2255 conditions:
2256 items:
2257 properties:
2258 lastProbeTime:
2259 description: Last time we probed the condition.
2260 type: string
2261 lastTransitionTime:
2262 description: Last time the condition transitioned from one status
2263 to another.
2264 type: string
2265 message:
2266 description: Human-readable message indicating details about
2267 last transition.
2268 type: string
2269 reason:
2270 description: Unique, one-word, CamelCase reason for the condition's
2271 last transition.
2272 type: string
2273 status:
2274 description: |-
2275 Status is the status of the condition.
2276 Can be True, False, Unknown.
2277 type: string
2278 type:
2279 description: Type is the type of the condition.
2280 type: string
2281 type: object
2282 nullable: true
2283 type: array
2284 ownerID:
2285 type: string
2286 type: object
2287 type: object
2288 served: true
2289 storage: true
2290 subresources:
2291 status: {}
2292---
2293apiVersion: apiextensions.k8s.io/v1
2294kind: CustomResourceDefinition
2295metadata:
2296 annotations:
2297 controller-gen.kubebuilder.io/version: v0.19.0
2298 labels: {{- include "longhorn.labels" . | nindent 4 }}
2299 longhorn-manager: ""
2300 name: recurringjobs.longhorn.io
2301spec:
2302 group: longhorn.io
2303 names:
2304 kind: RecurringJob
2305 listKind: RecurringJobList
2306 plural: recurringjobs
2307 shortNames:
2308 - lhrj
2309 singular: recurringjob
2310 scope: Namespaced
2311 versions:
2312 - additionalPrinterColumns:
2313 - description: Sets groupings to the jobs. When set to "default" group will be
2314 added to the volume label when no other job label exist in volume
2315 jsonPath: .spec.groups
2316 name: Groups
2317 type: string
2318 - description: Should be one of "snapshot", "snapshot-force-create", "snapshot-cleanup",
2319 "snapshot-delete", "backup", "backup-force-create", "filesystem-trim" or "system-backup"
2320 jsonPath: .spec.task
2321 name: Task
2322 type: string
2323 - description: The cron expression represents recurring job scheduling
2324 jsonPath: .spec.cron
2325 name: Cron
2326 type: string
2327 - description: The number of snapshots/backups to keep for the volume
2328 jsonPath: .spec.retain
2329 name: Retain
2330 type: integer
2331 - description: The concurrent job to run by each cron job
2332 jsonPath: .spec.concurrency
2333 name: Concurrency
2334 type: integer
2335 - jsonPath: .metadata.creationTimestamp
2336 name: Age
2337 type: date
2338 - description: Specify the labels
2339 jsonPath: .spec.labels
2340 name: Labels
2341 type: string
2342 name: v1beta2
2343 schema:
2344 openAPIV3Schema:
2345 description: RecurringJob is where Longhorn stores recurring job object.
2346 properties:
2347 apiVersion:
2348 description: |-
2349 APIVersion defines the versioned schema of this representation of an object.
2350 Servers should convert recognized schemas to the latest internal value, and
2351 may reject unrecognized values.
2352 More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
2353 type: string
2354 kind:
2355 description: |-
2356 Kind is a string value representing the REST resource this object represents.
2357 Servers may infer this from the endpoint the client submits requests to.
2358 Cannot be updated.
2359 In CamelCase.
2360 More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
2361 type: string
2362 metadata:
2363 type: object
2364 spec:
2365 description: RecurringJobSpec defines the desired state of the Longhorn
2366 recurring job
2367 properties:
2368 concurrency:
2369 description: The concurrency of taking the snapshot/backup.
2370 type: integer
2371 cron:
2372 description: The cron setting.
2373 type: string
2374 groups:
2375 description: The recurring job group.
2376 items:
2377 type: string
2378 type: array
2379 labels:
2380 additionalProperties:
2381 type: string
2382 description: The label of the snapshot/backup.
2383 type: object
2384 name:
2385 description: The recurring job name.
2386 type: string
2387 parameters:
2388 additionalProperties:
2389 type: string
2390 description: |-
2391 The parameters of the snapshot/backup.
2392 Support parameters: "full-backup-interval", "volume-backup-policy".
2393 type: object
2394 retain:
2395 description: The retain count of the snapshot/backup.
2396 type: integer
2397 task:
2398 description: |-
2399 The recurring job task.
2400 Can be "snapshot", "snapshot-force-create", "snapshot-cleanup", "snapshot-delete", "backup", "backup-force-create", "filesystem-trim" or "system-backup".
2401 enum:
2402 - snapshot
2403 - snapshot-force-create
2404 - snapshot-cleanup
2405 - snapshot-delete
2406 - backup
2407 - backup-force-create
2408 - filesystem-trim
2409 - system-backup
2410 type: string
2411 type: object
2412 status:
2413 description: RecurringJobStatus defines the observed state of the Longhorn
2414 recurring job
2415 properties:
2416 executionCount:
2417 description: The number of jobs that have been triggered.
2418 type: integer
2419 ownerID:
2420 description: The owner ID which is responsible to reconcile this recurring
2421 job CR.
2422 type: string
2423 type: object
2424 type: object
2425 served: true
2426 storage: true
2427 subresources:
2428 status: {}
2429---
2430apiVersion: apiextensions.k8s.io/v1
2431kind: CustomResourceDefinition
2432metadata:
2433 annotations:
2434 controller-gen.kubebuilder.io/version: v0.19.0
2435 labels: {{- include "longhorn.labels" . | nindent 4 }}
2436 longhorn-manager: ""
2437 name: replicas.longhorn.io
2438spec:
2439 group: longhorn.io
2440 names:
2441 kind: Replica
2442 listKind: ReplicaList
2443 plural: replicas
2444 shortNames:
2445 - lhr
2446 singular: replica
2447 scope: Namespaced
2448 versions:
2449 - additionalPrinterColumns:
2450 - description: The data engine of the replica
2451 jsonPath: .spec.dataEngine
2452 name: Data Engine
2453 type: string
2454 - description: The current state of the replica
2455 jsonPath: .status.currentState
2456 name: State
2457 type: string
2458 - description: The node that the replica is on
2459 jsonPath: .spec.nodeID
2460 name: Node
2461 type: string
2462 - description: The disk that the replica is on
2463 jsonPath: .spec.diskID
2464 name: Disk
2465 type: string
2466 - description: The instance manager of the replica
2467 jsonPath: .status.instanceManagerName
2468 name: InstanceManager
2469 type: string
2470 - description: The current image of the replica
2471 jsonPath: .status.currentImage
2472 name: Image
2473 type: string
2474 - jsonPath: .metadata.creationTimestamp
2475 name: Age
2476 type: date
2477 name: v1beta2
2478 schema:
2479 openAPIV3Schema:
2480 description: Replica is where Longhorn stores replica object.
2481 properties:
2482 apiVersion:
2483 description: |-
2484 APIVersion defines the versioned schema of this representation of an object.
2485 Servers should convert recognized schemas to the latest internal value, and
2486 may reject unrecognized values.
2487 More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
2488 type: string
2489 kind:
2490 description: |-
2491 Kind is a string value representing the REST resource this object represents.
2492 Servers may infer this from the endpoint the client submits requests to.
2493 Cannot be updated.
2494 In CamelCase.
2495 More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
2496 type: string
2497 metadata:
2498 type: object
2499 spec:
2500 description: ReplicaSpec defines the desired state of the Longhorn replica
2501 properties:
2502 active:
2503 type: boolean
2504 backingImage:
2505 type: string
2506 dataDirectoryName:
2507 type: string
2508 dataEngine:
2509 enum:
2510 - v1
2511 - v2
2512 type: string
2513 desireState:
2514 type: string
2515 diskID:
2516 type: string
2517 diskPath:
2518 type: string
2519 engineName:
2520 type: string
2521 evictionRequested:
2522 type: boolean
2523 failedAt:
2524 description: |-
2525 FailedAt is set when a running replica fails or when a running engine is unable to use a replica for any reason.
2526 FailedAt indicates the time the failure occurred. When FailedAt is set, a replica is likely to have useful
2527 (though possibly stale) data. A replica with FailedAt set must be rebuilt from a non-failed replica (or it can
2528 be used in a salvage if all replicas are failed). FailedAt is cleared before a rebuild or salvage. FailedAt may
2529 be later than the corresponding entry in an engine's replicaTransitionTimeMap because it is set when the volume
2530 controller acknowledges the change.
2531 type: string
2532 hardNodeAffinity:
2533 type: string
2534 healthyAt:
2535 description: |-
2536 HealthyAt is set the first time a replica becomes read/write in an engine after creation or rebuild. HealthyAt
2537 indicates the time the last successful rebuild occurred. When HealthyAt is set, a replica is likely to have
2538 useful (though possibly stale) data. HealthyAt is cleared before a rebuild. HealthyAt may be later than the
2539 corresponding entry in an engine's replicaTransitionTimeMap because it is set when the volume controller
2540 acknowledges the change.
2541 type: string
2542 image:
2543 type: string
2544 lastFailedAt:
2545 description: |-
2546 LastFailedAt is always set at the same time as FailedAt. Unlike FailedAt, LastFailedAt is never cleared.
2547 LastFailedAt is not a reliable indicator of the state of a replica's data. For example, a replica with
2548 LastFailedAt may already be healthy and in use again. However, because it is never cleared, it can be compared to
2549 LastHealthyAt to help prevent dangerous replica deletion in some corner cases. LastFailedAt may be later than the
2550 corresponding entry in an engine's replicaTransitionTimeMap because it is set when the volume controller
2551 acknowledges the change.
2552 type: string
2553 lastHealthyAt:
2554 description: |-
2555 LastHealthyAt is set every time a replica becomes read/write in an engine. Unlike HealthyAt, LastHealthyAt is
2556 never cleared. LastHealthyAt is not a reliable indicator of the state of a replica's data. For example, a
2557 replica with LastHealthyAt set may be in the middle of a rebuild. However, because it is never cleared, it can be
2558 compared to LastFailedAt to help prevent dangerous replica deletion in some corner cases. LastHealthyAt may be
2559 later than the corresponding entry in an engine's replicaTransitionTimeMap because it is set when the volume
2560 controller acknowledges the change.
2561 type: string
2562 logRequested:
2563 type: boolean
2564 migrationEngineName:
2565 description: |-
2566 MigrationEngineName is indicating the migrating engine which current connected to this replica. This is only
2567 used for live migration of v2 data engine
2568 type: string
2569 nodeID:
2570 type: string
2571 rebuildRetryCount:
2572 type: integer
2573 revisionCounterDisabled:
2574 type: boolean
2575 salvageRequested:
2576 type: boolean
2577 snapshotMaxCount:
2578 type: integer
2579 snapshotMaxSize:
2580 format: int64
2581 type: string
2582 unmapMarkDiskChainRemovedEnabled:
2583 type: boolean
2584 volumeName:
2585 type: string
2586 volumeSize:
2587 format: int64
2588 type: string
2589 type: object
2590 status:
2591 description: ReplicaStatus defines the observed state of the Longhorn
2592 replica
2593 properties:
2594 conditions:
2595 items:
2596 properties:
2597 lastProbeTime:
2598 description: Last time we probed the condition.
2599 type: string
2600 lastTransitionTime:
2601 description: Last time the condition transitioned from one status
2602 to another.
2603 type: string
2604 message:
2605 description: Human-readable message indicating details about
2606 last transition.
2607 type: string
2608 reason:
2609 description: Unique, one-word, CamelCase reason for the condition's
2610 last transition.
2611 type: string
2612 status:
2613 description: |-
2614 Status is the status of the condition.
2615 Can be True, False, Unknown.
2616 type: string
2617 type:
2618 description: Type is the type of the condition.
2619 type: string
2620 type: object
2621 nullable: true
2622 type: array
2623 currentImage:
2624 type: string
2625 currentState:
2626 type: string
2627 instanceManagerName:
2628 type: string
2629 ip:
2630 type: string
2631 logFetched:
2632 type: boolean
2633 ownerID:
2634 type: string
2635 port:
2636 type: integer
2637 salvageExecuted:
2638 type: boolean
2639 started:
2640 type: boolean
2641 starting:
2642 type: boolean
2643 storageIP:
2644 type: string
2645 ublkID:
2646 format: int32
2647 type: integer
2648 uuid:
2649 type: string
2650 type: object
2651 type: object
2652 served: true
2653 storage: true
2654 subresources:
2655 status: {}
2656---
2657apiVersion: apiextensions.k8s.io/v1
2658kind: CustomResourceDefinition
2659metadata:
2660 annotations:
2661 controller-gen.kubebuilder.io/version: v0.19.0
2662 labels: {{- include "longhorn.labels" . | nindent 4 }}
2663 longhorn-manager: ""
2664 name: settings.longhorn.io
2665spec:
2666 group: longhorn.io
2667 names:
2668 kind: Setting
2669 listKind: SettingList
2670 plural: settings
2671 shortNames:
2672 - lhs
2673 singular: setting
2674 scope: Namespaced
2675 versions:
2676 - additionalPrinterColumns:
2677 - description: The value of the setting
2678 jsonPath: .value
2679 name: Value
2680 type: string
2681 - description: The setting is applied
2682 jsonPath: .status.applied
2683 name: Applied
2684 type: boolean
2685 - jsonPath: .metadata.creationTimestamp
2686 name: Age
2687 type: date
2688 name: v1beta2
2689 schema:
2690 openAPIV3Schema:
2691 description: Setting is where Longhorn stores setting object.
2692 properties:
2693 apiVersion:
2694 description: |-
2695 APIVersion defines the versioned schema of this representation of an object.
2696 Servers should convert recognized schemas to the latest internal value, and
2697 may reject unrecognized values.
2698 More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
2699 type: string
2700 kind:
2701 description: |-
2702 Kind is a string value representing the REST resource this object represents.
2703 Servers may infer this from the endpoint the client submits requests to.
2704 Cannot be updated.
2705 In CamelCase.
2706 More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
2707 type: string
2708 metadata:
2709 type: object
2710 status:
2711 description: The status of the setting.
2712 properties:
2713 applied:
2714 description: The setting is applied.
2715 type: boolean
2716 required:
2717 - applied
2718 type: object
2719 value:
2720 description: |-
2721 The value of the setting.
2722 - It can be a non-JSON formatted string that is applied to all the applicable data engines listed in the setting definition.
2723 - It can be a JSON formatted string that contains values for applicable data engines listed in the setting definition's Default.
2724 type: string
2725 required:
2726 - value
2727 type: object
2728 served: true
2729 storage: true
2730 subresources:
2731 status: {}
2732---
2733apiVersion: apiextensions.k8s.io/v1
2734kind: CustomResourceDefinition
2735metadata:
2736 annotations:
2737 controller-gen.kubebuilder.io/version: v0.19.0
2738 labels: {{- include "longhorn.labels" . | nindent 4 }}
2739 longhorn-manager: ""
2740 name: sharemanagers.longhorn.io
2741spec:
2742 group: longhorn.io
2743 names:
2744 kind: ShareManager
2745 listKind: ShareManagerList
2746 plural: sharemanagers
2747 shortNames:
2748 - lhsm
2749 singular: sharemanager
2750 scope: Namespaced
2751 versions:
2752 - additionalPrinterColumns:
2753 - description: The state of the share manager
2754 jsonPath: .status.state
2755 name: State
2756 type: string
2757 - description: The node that the share manager is owned by
2758 jsonPath: .status.ownerID
2759 name: Node
2760 type: string
2761 - jsonPath: .metadata.creationTimestamp
2762 name: Age
2763 type: date
2764 name: v1beta2
2765 schema:
2766 openAPIV3Schema:
2767 description: ShareManager is where Longhorn stores share manager object.
2768 properties:
2769 apiVersion:
2770 description: |-
2771 APIVersion defines the versioned schema of this representation of an object.
2772 Servers should convert recognized schemas to the latest internal value, and
2773 may reject unrecognized values.
2774 More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
2775 type: string
2776 kind:
2777 description: |-
2778 Kind is a string value representing the REST resource this object represents.
2779 Servers may infer this from the endpoint the client submits requests to.
2780 Cannot be updated.
2781 In CamelCase.
2782 More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
2783 type: string
2784 metadata:
2785 type: object
2786 spec:
2787 description: ShareManagerSpec defines the desired state of the Longhorn
2788 share manager
2789 properties:
2790 image:
2791 description: Share manager image used for creating a share manager
2792 pod
2793 type: string
2794 type: object
2795 status:
2796 description: ShareManagerStatus defines the observed state of the Longhorn
2797 share manager
2798 properties:
2799 endpoint:
2800 description: NFS endpoint that can access the mounted filesystem of
2801 the volume
2802 type: string
2803 ownerID:
2804 description: The node ID on which the controller is responsible to
2805 reconcile this share manager resource
2806 type: string
2807 state:
2808 description: The state of the share manager resource
2809 type: string
2810 type: object
2811 type: object
2812 served: true
2813 storage: true
2814 subresources:
2815 status: {}
2816---
2817apiVersion: apiextensions.k8s.io/v1
2818kind: CustomResourceDefinition
2819metadata:
2820 annotations:
2821 controller-gen.kubebuilder.io/version: v0.19.0
2822 labels: {{- include "longhorn.labels" . | nindent 4 }}
2823 longhorn-manager: ""
2824 name: snapshots.longhorn.io
2825spec:
2826 group: longhorn.io
2827 names:
2828 kind: Snapshot
2829 listKind: SnapshotList
2830 plural: snapshots
2831 shortNames:
2832 - lhsnap
2833 singular: snapshot
2834 scope: Namespaced
2835 versions:
2836 - additionalPrinterColumns:
2837 - description: The volume that this snapshot belongs to
2838 jsonPath: .spec.volume
2839 name: Volume
2840 type: string
2841 - description: Timestamp when the point-in-time snapshot was taken
2842 jsonPath: .status.creationTime
2843 name: CreationTime
2844 type: string
2845 - description: Indicates if the snapshot is ready to be used to restore/backup
2846 a volume
2847 jsonPath: .status.readyToUse
2848 name: ReadyToUse
2849 type: boolean
2850 - description: Represents the minimum size of volume required to rehydrate from
2851 this snapshot
2852 jsonPath: .status.restoreSize
2853 name: RestoreSize
2854 type: string
2855 - description: The actual size of the snapshot
2856 jsonPath: .status.size
2857 name: Size
2858 type: string
2859 - jsonPath: .metadata.creationTimestamp
2860 name: Age
2861 type: date
2862 name: v1beta2
2863 schema:
2864 openAPIV3Schema:
2865 description: Snapshot is the Schema for the snapshots API
2866 properties:
2867 apiVersion:
2868 description: |-
2869 APIVersion defines the versioned schema of this representation of an object.
2870 Servers should convert recognized schemas to the latest internal value, and
2871 may reject unrecognized values.
2872 More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
2873 type: string
2874 kind:
2875 description: |-
2876 Kind is a string value representing the REST resource this object represents.
2877 Servers may infer this from the endpoint the client submits requests to.
2878 Cannot be updated.
2879 In CamelCase.
2880 More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
2881 type: string
2882 metadata:
2883 type: object
2884 spec:
2885 description: SnapshotSpec defines the desired state of Longhorn Snapshot
2886 properties:
2887 createSnapshot:
2888 description: require creating a new snapshot
2889 type: boolean
2890 labels:
2891 additionalProperties:
2892 type: string
2893 description: The labels of snapshot
2894 nullable: true
2895 type: object
2896 volume:
2897 description: |-
2898 the volume that this snapshot belongs to.
2899 This field is immutable after creation.
2900 type: string
2901 required:
2902 - volume
2903 type: object
2904 status:
2905 description: SnapshotStatus defines the observed state of Longhorn Snapshot
2906 properties:
2907 checksum:
2908 type: string
2909 children:
2910 additionalProperties:
2911 type: boolean
2912 nullable: true
2913 type: object
2914 creationTime:
2915 type: string
2916 error:
2917 type: string
2918 labels:
2919 additionalProperties:
2920 type: string
2921 nullable: true
2922 type: object
2923 markRemoved:
2924 type: boolean
2925 ownerID:
2926 type: string
2927 parent:
2928 type: string
2929 readyToUse:
2930 type: boolean
2931 restoreSize:
2932 format: int64
2933 type: integer
2934 size:
2935 format: int64
2936 type: integer
2937 userCreated:
2938 type: boolean
2939 type: object
2940 type: object
2941 served: true
2942 storage: true
2943 subresources:
2944 status: {}
2945---
2946apiVersion: apiextensions.k8s.io/v1
2947kind: CustomResourceDefinition
2948metadata:
2949 annotations:
2950 controller-gen.kubebuilder.io/version: v0.19.0
2951 labels: {{- include "longhorn.labels" . | nindent 4 }}
2952 longhorn-manager: ""
2953 name: supportbundles.longhorn.io
2954spec:
2955 group: longhorn.io
2956 names:
2957 kind: SupportBundle
2958 listKind: SupportBundleList
2959 plural: supportbundles
2960 shortNames:
2961 - lhbundle
2962 singular: supportbundle
2963 scope: Namespaced
2964 versions:
2965 - additionalPrinterColumns:
2966 - description: The state of the support bundle
2967 jsonPath: .status.state
2968 name: State
2969 type: string
2970 - description: The issue URL
2971 jsonPath: .spec.issueURL
2972 name: Issue
2973 type: string
2974 - description: A brief description of the issue
2975 jsonPath: .spec.description
2976 name: Description
2977 type: string
2978 - jsonPath: .metadata.creationTimestamp
2979 name: Age
2980 type: date
2981 name: v1beta2
2982 schema:
2983 openAPIV3Schema:
2984 description: SupportBundle is where Longhorn stores support bundle object
2985 properties:
2986 apiVersion:
2987 description: |-
2988 APIVersion defines the versioned schema of this representation of an object.
2989 Servers should convert recognized schemas to the latest internal value, and
2990 may reject unrecognized values.
2991 More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
2992 type: string
2993 kind:
2994 description: |-
2995 Kind is a string value representing the REST resource this object represents.
2996 Servers may infer this from the endpoint the client submits requests to.
2997 Cannot be updated.
2998 In CamelCase.
2999 More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
3000 type: string
3001 metadata:
3002 type: object
3003 spec:
3004 description: SupportBundleSpec defines the desired state of the Longhorn
3005 SupportBundle
3006 properties:
3007 description:
3008 description: A brief description of the issue
3009 type: string
3010 issueURL:
3011 description: The issue URL
3012 nullable: true
3013 type: string
3014 nodeID:
3015 description: The preferred responsible controller node ID.
3016 type: string
3017 required:
3018 - description
3019 type: object
3020 status:
3021 description: SupportBundleStatus defines the observed state of the Longhorn
3022 SupportBundle
3023 properties:
3024 conditions:
3025 items:
3026 properties:
3027 lastProbeTime:
3028 description: Last time we probed the condition.
3029 type: string
3030 lastTransitionTime:
3031 description: Last time the condition transitioned from one status
3032 to another.
3033 type: string
3034 message:
3035 description: Human-readable message indicating details about
3036 last transition.
3037 type: string
3038 reason:
3039 description: Unique, one-word, CamelCase reason for the condition's
3040 last transition.
3041 type: string
3042 status:
3043 description: |-
3044 Status is the status of the condition.
3045 Can be True, False, Unknown.
3046 type: string
3047 type:
3048 description: Type is the type of the condition.
3049 type: string
3050 type: object
3051 type: array
3052 filename:
3053 type: string
3054 filesize:
3055 format: int64
3056 type: integer
3057 image:
3058 description: The support bundle manager image
3059 type: string
3060 managerIP:
3061 description: The support bundle manager IP
3062 type: string
3063 ownerID:
3064 description: The current responsible controller node ID
3065 type: string
3066 progress:
3067 type: integer
3068 state:
3069 type: string
3070 type: object
3071 type: object
3072 served: true
3073 storage: true
3074 subresources:
3075 status: {}
3076---
3077apiVersion: apiextensions.k8s.io/v1
3078kind: CustomResourceDefinition
3079metadata:
3080 annotations:
3081 controller-gen.kubebuilder.io/version: v0.19.0
3082 labels: {{- include "longhorn.labels" . | nindent 4 }}
3083 longhorn-manager: ""
3084 name: systembackups.longhorn.io
3085spec:
3086 group: longhorn.io
3087 names:
3088 kind: SystemBackup
3089 listKind: SystemBackupList
3090 plural: systembackups
3091 shortNames:
3092 - lhsb
3093 singular: systembackup
3094 scope: Namespaced
3095 versions:
3096 - additionalPrinterColumns:
3097 - description: The system backup Longhorn version
3098 jsonPath: .status.version
3099 name: Version
3100 type: string
3101 - description: The system backup state
3102 jsonPath: .status.state
3103 name: State
3104 type: string
3105 - description: The system backup creation time
3106 jsonPath: .status.createdAt
3107 name: Created
3108 type: string
3109 - description: The last time that the system backup was synced into the cluster
3110 jsonPath: .status.lastSyncedAt
3111 name: LastSyncedAt
3112 type: string
3113 name: v1beta2
3114 schema:
3115 openAPIV3Schema:
3116 description: SystemBackup is where Longhorn stores system backup object
3117 properties:
3118 apiVersion:
3119 description: |-
3120 APIVersion defines the versioned schema of this representation of an object.
3121 Servers should convert recognized schemas to the latest internal value, and
3122 may reject unrecognized values.
3123 More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
3124 type: string
3125 kind:
3126 description: |-
3127 Kind is a string value representing the REST resource this object represents.
3128 Servers may infer this from the endpoint the client submits requests to.
3129 Cannot be updated.
3130 In CamelCase.
3131 More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
3132 type: string
3133 metadata:
3134 type: object
3135 spec:
3136 description: SystemBackupSpec defines the desired state of the Longhorn
3137 SystemBackup
3138 properties:
3139 volumeBackupPolicy:
3140 description: |-
3141 The create volume backup policy
3142 Can be "if-not-present", "always" or "disabled"
3143 nullable: true
3144 type: string
3145 type: object
3146 status:
3147 description: SystemBackupStatus defines the observed state of the Longhorn
3148 SystemBackup
3149 properties:
3150 conditions:
3151 items:
3152 properties:
3153 lastProbeTime:
3154 description: Last time we probed the condition.
3155 type: string
3156 lastTransitionTime:
3157 description: Last time the condition transitioned from one status
3158 to another.
3159 type: string
3160 message:
3161 description: Human-readable message indicating details about
3162 last transition.
3163 type: string
3164 reason:
3165 description: Unique, one-word, CamelCase reason for the condition's
3166 last transition.
3167 type: string
3168 status:
3169 description: |-
3170 Status is the status of the condition.
3171 Can be True, False, Unknown.
3172 type: string
3173 type:
3174 description: Type is the type of the condition.
3175 type: string
3176 type: object
3177 nullable: true
3178 type: array
3179 createdAt:
3180 description: The system backup creation time.
3181 format: date-time
3182 type: string
3183 gitCommit:
3184 description: The saved Longhorn manager git commit.
3185 nullable: true
3186 type: string
3187 lastSyncedAt:
3188 description: The last time that the system backup was synced into
3189 the cluster.
3190 format: date-time
3191 nullable: true
3192 type: string
3193 managerImage:
3194 description: The saved manager image.
3195 type: string
3196 ownerID:
3197 description: The node ID of the responsible controller to reconcile
3198 this SystemBackup.
3199 type: string
3200 state:
3201 description: The system backup state.
3202 type: string
3203 version:
3204 description: The saved Longhorn version.
3205 nullable: true
3206 type: string
3207 type: object
3208 type: object
3209 served: true
3210 storage: true
3211 subresources:
3212 status: {}
3213---
3214apiVersion: apiextensions.k8s.io/v1
3215kind: CustomResourceDefinition
3216metadata:
3217 annotations:
3218 controller-gen.kubebuilder.io/version: v0.19.0
3219 labels: {{- include "longhorn.labels" . | nindent 4 }}
3220 longhorn-manager: ""
3221 name: systemrestores.longhorn.io
3222spec:
3223 group: longhorn.io
3224 names:
3225 kind: SystemRestore
3226 listKind: SystemRestoreList
3227 plural: systemrestores
3228 shortNames:
3229 - lhsr
3230 singular: systemrestore
3231 scope: Namespaced
3232 versions:
3233 - additionalPrinterColumns:
3234 - description: The system restore state
3235 jsonPath: .status.state
3236 name: State
3237 type: string
3238 - jsonPath: .metadata.creationTimestamp
3239 name: Age
3240 type: date
3241 name: v1beta2
3242 schema:
3243 openAPIV3Schema:
3244 description: SystemRestore is where Longhorn stores system restore object
3245 properties:
3246 apiVersion:
3247 description: |-
3248 APIVersion defines the versioned schema of this representation of an object.
3249 Servers should convert recognized schemas to the latest internal value, and
3250 may reject unrecognized values.
3251 More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
3252 type: string
3253 kind:
3254 description: |-
3255 Kind is a string value representing the REST resource this object represents.
3256 Servers may infer this from the endpoint the client submits requests to.
3257 Cannot be updated.
3258 In CamelCase.
3259 More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
3260 type: string
3261 metadata:
3262 type: object
3263 spec:
3264 description: SystemRestoreSpec defines the desired state of the Longhorn
3265 SystemRestore
3266 properties:
3267 systemBackup:
3268 description: The system backup name in the object store.
3269 type: string
3270 required:
3271 - systemBackup
3272 type: object
3273 status:
3274 description: SystemRestoreStatus defines the observed state of the Longhorn
3275 SystemRestore
3276 properties:
3277 conditions:
3278 items:
3279 properties:
3280 lastProbeTime:
3281 description: Last time we probed the condition.
3282 type: string
3283 lastTransitionTime:
3284 description: Last time the condition transitioned from one status
3285 to another.
3286 type: string
3287 message:
3288 description: Human-readable message indicating details about
3289 last transition.
3290 type: string
3291 reason:
3292 description: Unique, one-word, CamelCase reason for the condition's
3293 last transition.
3294 type: string
3295 status:
3296 description: |-
3297 Status is the status of the condition.
3298 Can be True, False, Unknown.
3299 type: string
3300 type:
3301 description: Type is the type of the condition.
3302 type: string
3303 type: object
3304 nullable: true
3305 type: array
3306 ownerID:
3307 description: The node ID of the responsible controller to reconcile
3308 this SystemRestore.
3309 type: string
3310 sourceURL:
3311 description: The source system backup URL.
3312 type: string
3313 state:
3314 description: The system restore state.
3315 type: string
3316 type: object
3317 type: object
3318 served: true
3319 storage: true
3320 subresources:
3321 status: {}
3322---
3323apiVersion: apiextensions.k8s.io/v1
3324kind: CustomResourceDefinition
3325metadata:
3326 annotations:
3327 controller-gen.kubebuilder.io/version: v0.19.0
3328 labels: {{- include "longhorn.labels" . | nindent 4 }}
3329 longhorn-manager: ""
3330 name: volumeattachments.longhorn.io
3331spec:
3332 group: longhorn.io
3333 names:
3334 kind: VolumeAttachment
3335 listKind: VolumeAttachmentList
3336 plural: volumeattachments
3337 shortNames:
3338 - lhva
3339 singular: volumeattachment
3340 scope: Namespaced
3341 versions:
3342 - additionalPrinterColumns:
3343 - jsonPath: .metadata.creationTimestamp
3344 name: Age
3345 type: date
3346 name: v1beta2
3347 schema:
3348 openAPIV3Schema:
3349 description: VolumeAttachment stores attachment information of a Longhorn
3350 volume
3351 properties:
3352 apiVersion:
3353 description: |-
3354 APIVersion defines the versioned schema of this representation of an object.
3355 Servers should convert recognized schemas to the latest internal value, and
3356 may reject unrecognized values.
3357 More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
3358 type: string
3359 kind:
3360 description: |-
3361 Kind is a string value representing the REST resource this object represents.
3362 Servers may infer this from the endpoint the client submits requests to.
3363 Cannot be updated.
3364 In CamelCase.
3365 More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
3366 type: string
3367 metadata:
3368 type: object
3369 spec:
3370 description: VolumeAttachmentSpec defines the desired state of Longhorn
3371 VolumeAttachment
3372 properties:
3373 attachmentTickets:
3374 additionalProperties:
3375 properties:
3376 generation:
3377 description: |-
3378 A sequence number representing a specific generation of the desired state.
3379 Populated by the system. Read-only.
3380 format: int64
3381 type: integer
3382 id:
3383 description: The unique ID of this attachment. Used to differentiate
3384 different attachments of the same volume.
3385 type: string
3386 nodeID:
3387 description: The node that this attachment is requesting
3388 type: string
3389 parameters:
3390 additionalProperties:
3391 type: string
3392 description: Optional additional parameter for this attachment
3393 type: object
3394 type:
3395 type: string
3396 type: object
3397 type: object
3398 volume:
3399 description: The name of Longhorn volume of this VolumeAttachment
3400 type: string
3401 required:
3402 - volume
3403 type: object
3404 status:
3405 description: VolumeAttachmentStatus defines the observed state of Longhorn
3406 VolumeAttachment
3407 properties:
3408 attachmentTicketStatuses:
3409 additionalProperties:
3410 properties:
3411 conditions:
3412 description: Record any error when trying to fulfill this attachment
3413 items:
3414 properties:
3415 lastProbeTime:
3416 description: Last time we probed the condition.
3417 type: string
3418 lastTransitionTime:
3419 description: Last time the condition transitioned from
3420 one status to another.
3421 type: string
3422 message:
3423 description: Human-readable message indicating details
3424 about last transition.
3425 type: string
3426 reason:
3427 description: Unique, one-word, CamelCase reason for the
3428 condition's last transition.
3429 type: string
3430 status:
3431 description: |-
3432 Status is the status of the condition.
3433 Can be True, False, Unknown.
3434 type: string
3435 type:
3436 description: Type is the type of the condition.
3437 type: string
3438 type: object
3439 nullable: true
3440 type: array
3441 generation:
3442 description: |-
3443 A sequence number representing a specific generation of the desired state.
3444 Populated by the system. Read-only.
3445 format: int64
3446 type: integer
3447 id:
3448 description: The unique ID of this attachment. Used to differentiate
3449 different attachments of the same volume.
3450 type: string
3451 satisfied:
3452 description: Indicate whether this attachment ticket has been
3453 satisfied
3454 type: boolean
3455 required:
3456 - conditions
3457 - satisfied
3458 type: object
3459 type: object
3460 type: object
3461 type: object
3462 served: true
3463 storage: true
3464 subresources:
3465 status: {}
3466---
3467apiVersion: apiextensions.k8s.io/v1
3468kind: CustomResourceDefinition
3469metadata:
3470 annotations:
3471 controller-gen.kubebuilder.io/version: v0.19.0
3472 labels: {{- include "longhorn.labels" . | nindent 4 }}
3473 longhorn-manager: ""
3474 name: volumes.longhorn.io
3475spec:
3476 group: longhorn.io
3477 names:
3478 kind: Volume
3479 listKind: VolumeList
3480 plural: volumes
3481 shortNames:
3482 - lhv
3483 singular: volume
3484 scope: Namespaced
3485 versions:
3486 - additionalPrinterColumns:
3487 - description: The data engine of the volume
3488 jsonPath: .spec.dataEngine
3489 name: Data Engine
3490 type: string
3491 - description: The state of the volume
3492 jsonPath: .status.state
3493 name: State
3494 type: string
3495 - description: The robustness of the volume
3496 jsonPath: .status.robustness
3497 name: Robustness
3498 type: string
3499 - description: The scheduled condition of the volume
3500 jsonPath: .status.conditions[?(@.type=='Schedulable')].status
3501 name: Scheduled
3502 type: string
3503 - description: The size of the volume
3504 jsonPath: .spec.size
3505 name: Size
3506 type: string
3507 - description: The node that the volume is currently attaching to
3508 jsonPath: .status.currentNodeID
3509 name: Node
3510 type: string
3511 - jsonPath: .metadata.creationTimestamp
3512 name: Age
3513 type: date
3514 name: v1beta2
3515 schema:
3516 openAPIV3Schema:
3517 description: Volume is where Longhorn stores volume object.
3518 properties:
3519 apiVersion:
3520 description: |-
3521 APIVersion defines the versioned schema of this representation of an object.
3522 Servers should convert recognized schemas to the latest internal value, and
3523 may reject unrecognized values.
3524 More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
3525 type: string
3526 kind:
3527 description: |-
3528 Kind is a string value representing the REST resource this object represents.
3529 Servers may infer this from the endpoint the client submits requests to.
3530 Cannot be updated.
3531 In CamelCase.
3532 More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
3533 type: string
3534 metadata:
3535 type: object
3536 spec:
3537 description: VolumeSpec defines the desired state of the Longhorn volume
3538 properties:
3539 Standby:
3540 type: boolean
3541 accessMode:
3542 enum:
3543 - rwo
3544 - rwop
3545 - rwx
3546 type: string
3547 backingImage:
3548 type: string
3549 x-kubernetes-validations:
3550 - message: BackingImage is immutable
3551 rule: self == oldSelf
3552 backupBlockSize:
3553 description: BackupBlockSize indicate the block size to create backups.
3554 The block size is immutable.
3555 enum:
3556 - "2097152"
3557 - "16777216"
3558 format: int64
3559 type: string
3560 backupCompressionMethod:
3561 enum:
3562 - none
3563 - lz4
3564 - gzip
3565 type: string
3566 backupTargetName:
3567 description: The backup target name that the volume will be backed
3568 up to or is synced.
3569 type: string
3570 cloneMode:
3571 enum:
3572 - ""
3573 - full-copy
3574 - linked-clone
3575 type: string
3576 dataEngine:
3577 enum:
3578 - v1
3579 - v2
3580 type: string
3581 dataLocality:
3582 enum:
3583 - disabled
3584 - best-effort
3585 - strict-local
3586 type: string
3587 dataSource:
3588 type: string
3589 disableFrontend:
3590 type: boolean
3591 diskSelector:
3592 items:
3593 type: string
3594 type: array
3595 encrypted:
3596 type: boolean
3597 x-kubernetes-validations:
3598 - message: Encrypted is immutable
3599 rule: self == oldSelf
3600 freezeFilesystemForSnapshot:
3601 description: Setting that freezes the filesystem on the root partition
3602 before a snapshot is created.
3603 enum:
3604 - ignored
3605 - enabled
3606 - disabled
3607 type: string
3608 fromBackup:
3609 type: string
3610 frontend:
3611 enum:
3612 - blockdev
3613 - iscsi
3614 - nvmf
3615 - ublk
3616 - ""
3617 type: string
3618 image:
3619 type: string
3620 lastAttachedBy:
3621 type: string
3622 migratable:
3623 type: boolean
3624 migrationNodeID:
3625 type: string
3626 nodeID:
3627 type: string
3628 nodeSelector:
3629 items:
3630 type: string
3631 type: array
3632 numberOfReplicas:
3633 type: integer
3634 offlineRebuilding:
3635 description: |-
3636 Specifies whether Longhorn should rebuild replicas while the detached volume is degraded.
3637 - ignored: Use the global setting for offline replica rebuilding.
3638 - enabled: Enable offline rebuilding for this volume, regardless of the global setting.
3639 - disabled: Disable offline rebuilding for this volume, regardless of the global setting
3640 enum:
3641 - ignored
3642 - disabled
3643 - enabled
3644 type: string
3645 rebuildConcurrentSyncLimit:
3646 description: |-
3647 RebuildConcurrentSyncLimit controls the maximum number of file synchronization operations that can run
3648 concurrently during a single replica rebuild.
3649 When set to 0, it means following the global setting.
3650 maximum: 5
3651 minimum: 0
3652 type: integer
3653 replicaAutoBalance:
3654 enum:
3655 - ignored
3656 - disabled
3657 - least-effort
3658 - best-effort
3659 type: string
3660 replicaDiskSoftAntiAffinity:
3661 description: Replica disk soft anti affinity of the volume. Set enabled
3662 to allow replicas to be scheduled in the same disk.
3663 enum:
3664 - ignored
3665 - enabled
3666 - disabled
3667 type: string
3668 replicaRebuildingBandwidthLimit:
3669 description: ReplicaRebuildingBandwidthLimit controls the maximum
3670 write bandwidth (in megabytes per second) allowed on the destination
3671 replica during the rebuilding process. Set this value to 0 to disable
3672 bandwidth limiting.
3673 format: int64
3674 minimum: 0
3675 type: integer
3676 replicaSoftAntiAffinity:
3677 description: Replica soft anti affinity of the volume. Set enabled
3678 to allow replicas to be scheduled on the same node.
3679 enum:
3680 - ignored
3681 - enabled
3682 - disabled
3683 type: string
3684 replicaZoneSoftAntiAffinity:
3685 description: Replica zone soft anti affinity of the volume. Set enabled
3686 to allow replicas to be scheduled in the same zone.
3687 enum:
3688 - ignored
3689 - enabled
3690 - disabled
3691 type: string
3692 restoreVolumeRecurringJob:
3693 enum:
3694 - ignored
3695 - enabled
3696 - disabled
3697 type: string
3698 revisionCounterDisabled:
3699 type: boolean
3700 size:
3701 format: int64
3702 type: string
3703 snapshotDataIntegrity:
3704 enum:
3705 - ignored
3706 - disabled
3707 - enabled
3708 - fast-check
3709 type: string
3710 snapshotMaxCount:
3711 type: integer
3712 snapshotMaxSize:
3713 format: int64
3714 type: string
3715 staleReplicaTimeout:
3716 type: integer
3717 ublkNumberOfQueue:
3718 description: ublkNumberOfQueue controls the number of queues for ublk
3719 frontend.
3720 type: integer
3721 ublkQueueDepth:
3722 description: ublkQueueDepth controls the depth of each queue for ublk
3723 frontend.
3724 type: integer
3725 unmapMarkSnapChainRemoved:
3726 enum:
3727 - ignored
3728 - disabled
3729 - enabled
3730 type: string
3731 type: object
3732 status:
3733 description: VolumeStatus defines the observed state of the Longhorn volume
3734 properties:
3735 actualSize:
3736 format: int64
3737 type: integer
3738 cloneStatus:
3739 properties:
3740 attemptCount:
3741 type: integer
3742 nextAllowedAttemptAt:
3743 type: string
3744 snapshot:
3745 type: string
3746 sourceVolume:
3747 type: string
3748 state:
3749 type: string
3750 type: object
3751 conditions:
3752 items:
3753 properties:
3754 lastProbeTime:
3755 description: Last time we probed the condition.
3756 type: string
3757 lastTransitionTime:
3758 description: Last time the condition transitioned from one status
3759 to another.
3760 type: string
3761 message:
3762 description: Human-readable message indicating details about
3763 last transition.
3764 type: string
3765 reason:
3766 description: Unique, one-word, CamelCase reason for the condition's
3767 last transition.
3768 type: string
3769 status:
3770 description: |-
3771 Status is the status of the condition.
3772 Can be True, False, Unknown.
3773 type: string
3774 type:
3775 description: Type is the type of the condition.
3776 type: string
3777 type: object
3778 nullable: true
3779 type: array
3780 currentImage:
3781 type: string
3782 currentMigrationNodeID:
3783 description: the node that this volume is currently migrating to
3784 type: string
3785 currentNodeID:
3786 type: string
3787 expansionRequired:
3788 type: boolean
3789 frontendDisabled:
3790 type: boolean
3791 isStandby:
3792 type: boolean
3793 kubernetesStatus:
3794 properties:
3795 lastPVCRefAt:
3796 type: string
3797 lastPodRefAt:
3798 type: string
3799 namespace:
3800 description: determine if PVC/Namespace is history or not
3801 type: string
3802 pvName:
3803 type: string
3804 pvStatus:
3805 type: string
3806 pvcName:
3807 type: string
3808 workloadsStatus:
3809 description: determine if Pod/Workload is history or not
3810 items:
3811 properties:
3812 podName:
3813 type: string
3814 podStatus:
3815 type: string
3816 workloadName:
3817 type: string
3818 workloadType:
3819 type: string
3820 type: object
3821 nullable: true
3822 type: array
3823 type: object
3824 lastBackup:
3825 type: string
3826 lastBackupAt:
3827 type: string
3828 lastDegradedAt:
3829 type: string
3830 ownerID:
3831 type: string
3832 remountRequestedAt:
3833 type: string
3834 restoreInitiated:
3835 type: boolean
3836 restoreRequired:
3837 type: boolean
3838 robustness:
3839 type: string
3840 shareEndpoint:
3841 type: string
3842 shareState:
3843 type: string
3844 state:
3845 type: string
3846 type: object
3847 type: object
3848 served: true
3849 storage: true
3850 subresources:
3851 status: {}