From 1ecf238618f21ee6fa0cd3a0b6ac3a3f4c179965 Mon Sep 17 00:00:00 2001 From: Derek Su Date: Sun, 17 Nov 2024 15:00:12 +0800 Subject: [PATCH] feat(v2 upgrade): update crds.yaml Signed-off-by: Derek Su --- chart/templates/clusterrole.yaml | 3 +- chart/templates/crds.yaml | 585 +++++++++++++++++------------ chart/templates/daemonset-sa.yaml | 4 + deploy/longhorn-okd.yaml | 597 ++++++++++++++++++------------ deploy/longhorn.yaml | 597 ++++++++++++++++++------------ 5 files changed, 1086 insertions(+), 700 deletions(-) diff --git a/chart/templates/clusterrole.yaml b/chart/templates/clusterrole.yaml index c065f1726c..652a08e286 100644 --- a/chart/templates/clusterrole.yaml +++ b/chart/templates/clusterrole.yaml @@ -45,7 +45,8 @@ rules: "backuptargets", "backuptargets/status", "backupvolumes", "backupvolumes/status", "backups", "backups/status", "recurringjobs", "recurringjobs/status", "orphans", "orphans/status", "snapshots", "snapshots/status", "supportbundles", "supportbundles/status", "systembackups", "systembackups/status", "systemrestores", "systemrestores/status", - "volumeattachments", "volumeattachments/status", "backupbackingimages", "backupbackingimages/status"] + "volumeattachments", "volumeattachments/status", "backupbackingimages", "backupbackingimages/status", + "dataengineupgrademanagers", "dataengineupgrademanagers/status", "nodedataengineupgrades", "nodedataengineupgrades/status"] verbs: ["*"] - apiGroups: ["coordination.k8s.io"] resources: ["leases"] diff --git a/chart/templates/crds.yaml b/chart/templates/crds.yaml index 05f2f2cfb4..0af4e011e5 100644 --- a/chart/templates/crds.yaml +++ b/chart/templates/crds.yaml @@ -18,8 +18,7 @@ spec: scope: Namespaced versions: - additionalPrinterColumns: - - description: The current state of the pod used to provision the backing image - file from source + - description: The current state of the pod used to provision the backing image file from source jsonPath: .status.currentState name: State type: string @@ -41,8 +40,7 @@ spec: name: v1beta1 schema: openAPIV3Schema: - description: BackingImageDataSource is where Longhorn stores backing image - data source object. + description: BackingImageDataSource is where Longhorn stores backing image data source object. properties: apiVersion: description: |- @@ -75,8 +73,7 @@ spec: jsonPath: .spec.uuid name: UUID type: string - - description: The current state of the pod used to provision the backing image - file from source + - description: The current state of the pod used to provision the backing image file from source jsonPath: .status.currentState name: State type: string @@ -102,8 +99,7 @@ spec: name: v1beta2 schema: openAPIV3Schema: - description: BackingImageDataSource is where Longhorn stores backing image - data source object. + description: BackingImageDataSource is where Longhorn stores backing image data source object. properties: apiVersion: description: |- @@ -123,8 +119,7 @@ spec: metadata: type: object spec: - description: BackingImageDataSourceSpec defines the desired state of the - Longhorn backing image data source + description: BackingImageDataSourceSpec defines the desired state of the Longhorn backing image data source properties: checksum: type: string @@ -152,8 +147,7 @@ spec: type: string type: object status: - description: BackingImageDataSourceStatus defines the observed state of - the Longhorn backing image data source + description: BackingImageDataSourceStatus defines the observed state of the Longhorn backing image data source properties: checksum: type: string @@ -230,8 +224,7 @@ spec: name: v1beta1 schema: openAPIV3Schema: - description: BackingImageManager is where Longhorn stores backing image manager - object. + description: BackingImageManager is where Longhorn stores backing image manager object. properties: apiVersion: description: |- @@ -286,8 +279,7 @@ spec: name: v1beta2 schema: openAPIV3Schema: - description: BackingImageManager is where Longhorn stores backing image manager - object. + description: BackingImageManager is where Longhorn stores backing image manager object. properties: apiVersion: description: |- @@ -307,8 +299,7 @@ spec: metadata: type: object spec: - description: BackingImageManagerSpec defines the desired state of the - Longhorn backing image manager + description: BackingImageManagerSpec defines the desired state of the Longhorn backing image manager properties: backingImages: additionalProperties: @@ -324,8 +315,7 @@ spec: type: string type: object status: - description: BackingImageManagerStatus defines the observed state of the - Longhorn backing image manager + description: BackingImageManagerStatus defines the observed state of the Longhorn backing image manager properties: apiMinVersion: type: integer @@ -490,8 +480,7 @@ spec: metadata: type: object spec: - description: BackingImageSpec defines the desired state of the Longhorn - backing image + description: BackingImageSpec defines the desired state of the Longhorn backing image properties: checksum: type: string @@ -509,8 +498,7 @@ spec: disks: additionalProperties: type: string - description: Deprecated. We are now using DiskFileSpecMap to assign - different spec to the file on different disks. + description: Deprecated. We are now using DiskFileSpecMap to assign different spec to the file on different disks. type: object minNumberOfCopies: type: integer @@ -536,8 +524,7 @@ spec: type: string type: object status: - description: BackingImageStatus defines the observed state of the Longhorn - backing image status + description: BackingImageStatus defines the observed state of the Longhorn backing image status properties: checksum: type: string @@ -563,8 +550,7 @@ spec: ownerID: type: string realSize: - description: Real size of image in bytes, which may be smaller than the size - when the file is a sparse file. Will be zero until known (e.g. while a backing image is uploading) + description: Real size of image in bytes, which may be smaller than the size when the file is a sparse file. Will be zero until known (e.g. while a backing image is uploading) format: int64 type: integer size: @@ -573,8 +559,7 @@ spec: uuid: type: string virtualSize: - description: Virtual size of image in bytes, which may be larger than physical - size. Will be zero until known (e.g. while a backing image is uploading) + description: Virtual size of image in bytes, which may be larger than physical size. Will be zero until known (e.g. while a backing image is uploading) format: int64 type: integer type: object @@ -627,8 +612,7 @@ spec: name: v1beta2 schema: openAPIV3Schema: - description: BackupBackingImage is where Longhorn stores backing image backup - object. + description: BackupBackingImage is where Longhorn stores backing image backup object. properties: apiVersion: description: |- @@ -648,8 +632,7 @@ spec: metadata: type: object spec: - description: BackupBackingImageSpec defines the desired state of the Longhorn - backing image backup + description: BackupBackingImageSpec defines the desired state of the Longhorn backing image backup properties: labels: additionalProperties: @@ -657,8 +640,7 @@ spec: description: The labels of backing image backup. type: object syncRequestedAt: - description: The time to request run sync the remote backing image - backup. + description: The time to request run sync the remote backing image backup. format: date-time nullable: true type: string @@ -671,8 +653,7 @@ spec: - userCreated type: object status: - description: BackupBackingImageStatus defines the observed state of the - Longhorn backing image backup + description: BackupBackingImageStatus defines the observed state of the Longhorn backing image backup properties: backingImage: description: The backing image name. @@ -696,25 +677,21 @@ spec: nullable: true type: object lastSyncedAt: - description: The last time that the backing image backup was synced - with the remote backup target. + description: The last time that the backing image backup was synced with the remote backup target. format: date-time nullable: true type: string managerAddress: - description: The address of the backing image manager that runs backing - image backup. + description: The address of the backing image manager that runs backing image backup. type: string messages: additionalProperties: type: string - description: The error messages when listing or inspecting backing - image backup. + description: The error messages when listing or inspecting backing image backup. nullable: true type: object ownerID: - description: The node ID on which the controller is responsible to - reconcile this CR. + description: The node ID on which the controller is responsible to reconcile this CR. type: string progress: description: The backing image backup progress. @@ -903,24 +880,21 @@ spec: nullable: true type: object lastSyncedAt: - description: The last time that the backup was synced with the remote - backup target. + description: The last time that the backup was synced with the remote backup target. format: date-time nullable: true type: string messages: additionalProperties: type: string - description: The error messages when calling longhorn engine on listing - or inspecting backups. + description: The error messages when calling longhorn engine on listing or inspecting backups. nullable: true type: object newlyUploadDataSize: description: Size in bytes of newly uploaded data type: string ownerID: - description: The node ID on which the controller is responsible to - reconcile this backup CR. + description: The node ID on which the controller is responsible to reconcile this backup CR. type: string progress: description: The snapshot backup progress. @@ -1094,8 +1068,7 @@ spec: metadata: type: object spec: - description: BackupTargetSpec defines the desired state of the Longhorn - backup target + description: BackupTargetSpec defines the desired state of the Longhorn backup target properties: backupTargetURL: description: The backup target URL. @@ -1104,8 +1077,7 @@ spec: description: The backup target credential secret. type: string pollInterval: - description: The interval that the cluster needs to run sync with - the backup target. + description: The interval that the cluster needs to run sync with the backup target. type: string syncRequestedAt: description: The time to request run sync the remote backup target. @@ -1114,12 +1086,10 @@ spec: type: string type: object status: - description: BackupTargetStatus defines the observed state of the Longhorn - backup target + description: BackupTargetStatus defines the observed state of the Longhorn backup target properties: available: - description: Available indicates if the remote backup target is available - or not. + description: Available indicates if the remote backup target is available or not. type: boolean conditions: description: Records the reason on why the backup target is unavailable. @@ -1129,16 +1099,13 @@ spec: description: Last time we probed the condition. type: string lastTransitionTime: - description: Last time the condition transitioned from one status - to another. + description: Last time the condition transitioned from one status to another. type: string message: - description: Human-readable message indicating details about - last transition. + description: Human-readable message indicating details about last transition. type: string reason: - description: Unique, one-word, CamelCase reason for the condition's - last transition. + description: Unique, one-word, CamelCase reason for the condition's last transition. type: string status: description: |- @@ -1152,14 +1119,12 @@ spec: nullable: true type: array lastSyncedAt: - description: The last time that the controller synced with the remote - backup target. + description: The last time that the controller synced with the remote backup target. format: date-time nullable: true type: string ownerID: - description: The node ID on which the controller is responsible to - reconcile this backup target CR. + description: The node ID on which the controller is responsible to reconcile this backup target CR. type: string type: object type: object @@ -1275,8 +1240,7 @@ spec: metadata: type: object spec: - description: BackupVolumeSpec defines the desired state of the Longhorn - backup volume + description: BackupVolumeSpec defines the desired state of the Longhorn backup volume properties: syncRequestedAt: description: The time to request run sync the remote backup volume. @@ -1285,8 +1249,7 @@ spec: type: string type: object status: - description: BackupVolumeStatus defines the observed state of the Longhorn - backup volume + description: BackupVolumeStatus defines the observed state of the Longhorn backup volume properties: backingImageChecksum: description: the backing image checksum. @@ -1318,21 +1281,18 @@ spec: nullable: true type: string lastSyncedAt: - description: The last time that the backup volume was synced into - the cluster. + description: The last time that the backup volume was synced into the cluster. format: date-time nullable: true type: string messages: additionalProperties: type: string - description: The error messages when call longhorn engine on list - or inspect backup volumes. + description: The error messages when call longhorn engine on list or inspect backup volumes. nullable: true type: object ownerID: - description: The node ID on which the controller is responsible to - reconcile this backup volume CR. + description: The node ID on which the controller is responsible to reconcile this backup volume CR. type: string size: description: The backup volume size. @@ -1349,6 +1309,104 @@ spec: --- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition +metadata: + annotations: + controller-gen.kubebuilder.io/version: v0.15.0 + labels: {{- include "longhorn.labels" . | nindent 4 }} + longhorn-manager: "" + name: dataengineupgrademanagers.longhorn.io +spec: + group: longhorn.io + names: + kind: DataEngineUpgradeManager + listKind: DataEngineUpgradeManagerList + plural: dataengineupgrademanagers + shortNames: + - lhum + singular: dataengineupgrademanager + scope: Namespaced + versions: + - additionalPrinterColumns: + - description: The node that the upgrade manager is being performed on + jsonPath: .status.ownerID + name: Node + type: string + - description: The data engine targeted for upgrade + jsonPath: .spec.dataEngine + name: Data Engine + type: string + - description: The current state of the upgrade process + jsonPath: .status.state + name: State + type: string + - description: The node that is currently being upgraded + jsonPath: .status.upgradingNode + name: Upgrading Node + type: string + name: v1beta2 + schema: + openAPIV3Schema: + description: DataEngineUpgradeManager is where Longhorn stores upgrade manager object. + properties: + apiVersion: + description: |- + APIVersion defines the versioned schema of this representation of an object. + Servers should convert recognized schemas to the latest internal value, and + may reject unrecognized values. + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + type: string + kind: + description: |- + Kind is a string value representing the REST resource this object represents. + Servers may infer this from the endpoint the client submits requests to. + Cannot be updated. + In CamelCase. + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + type: string + metadata: + type: object + spec: + description: DataEngineUpgradeManagerSpec defines the desired state of the upgrade manager resource + properties: + dataEngine: + type: string + nodes: + items: + type: string + type: array + type: object + status: + description: DataEngineUpgradeManagerStatus defines the observed state of the upgrade manager resource + properties: + errorMessage: + type: string + instanceManagerImage: + type: string + ownerID: + type: string + state: + type: string + upgradeNodes: + additionalProperties: + description: UpgradeState defines the state of the node upgrade process + properties: + errorMessage: + type: string + state: + type: string + type: object + type: object + upgradingNode: + type: string + type: object + type: object + served: true + storage: true + subresources: + status: {} +--- +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition metadata: annotations: controller-gen.kubebuilder.io/version: v0.15.0 @@ -1477,8 +1535,7 @@ spec: metadata: type: object spec: - description: EngineImageSpec defines the desired state of the Longhorn - engine image + description: EngineImageSpec defines the desired state of the Longhorn engine image properties: image: minLength: 1 @@ -1487,8 +1544,7 @@ spec: - image type: object status: - description: EngineImageStatus defines the observed state of the Longhorn - engine image + description: EngineImageStatus defines the observed state of the Longhorn engine image properties: buildDate: type: string @@ -1503,16 +1559,13 @@ spec: description: Last time we probed the condition. type: string lastTransitionTime: - description: Last time the condition transitioned from one status - to another. + description: Last time the condition transitioned from one status to another. type: string message: - description: Human-readable message indicating details about - last transition. + description: Human-readable message indicating details about last transition. type: string reason: - description: Unique, one-word, CamelCase reason for the condition's - last transition. + description: Unique, one-word, CamelCase reason for the condition's last transition. type: string status: description: |- @@ -1728,6 +1781,8 @@ spec: snapshotMaxSize: format: int64 type: string + targetNodeID: + type: string unmapMarkSnapChainRemovedEnabled: type: boolean upgradedReplicaAddressMap: @@ -1786,16 +1841,13 @@ spec: description: Last time we probed the condition. type: string lastTransitionTime: - description: Last time the condition transitioned from one status - to another. + description: Last time the condition transitioned from one status to another. type: string message: - description: Human-readable message indicating details about - last transition. + description: Human-readable message indicating details about last transition. type: string reason: - description: Unique, one-word, CamelCase reason for the condition's - last transition. + description: Unique, one-word, CamelCase reason for the condition's last transition. type: string status: description: |- @@ -1820,6 +1872,8 @@ spec: type: string currentState: type: string + currentTargetNodeID: + type: string endpoint: type: string instanceManagerName: @@ -1946,6 +2000,14 @@ spec: type: boolean storageIP: type: string + storageTargetIP: + type: string + targetIP: + type: string + targetInstanceReplacementCreated: + type: boolean + targetPort: + type: integer unmapMarkSnapChainRemovedEnabled: type: boolean type: object @@ -2065,8 +2127,7 @@ spec: metadata: type: object spec: - description: InstanceManagerSpec defines the desired state of the Longhorn - instance manager + description: InstanceManagerSpec defines the desired state of the Longhorn instance manager properties: dataEngine: type: string @@ -2090,8 +2151,7 @@ spec: type: string type: object status: - description: InstanceManagerStatus defines the observed state of the Longhorn - instance manager + description: InstanceManagerStatus defines the observed state of the Longhorn instance manager properties: apiMinVersion: type: integer @@ -2142,6 +2202,12 @@ spec: resourceVersion: format: int64 type: integer + standbyTargetPortEnd: + format: int32 + type: integer + standbyTargetPortStart: + format: int32 + type: integer state: type: string targetPortEnd: @@ -2191,6 +2257,12 @@ spec: resourceVersion: format: int64 type: integer + standbyTargetPortEnd: + format: int32 + type: integer + standbyTargetPortStart: + format: int32 + type: integer state: type: string targetPortEnd: @@ -2240,6 +2312,12 @@ spec: resourceVersion: format: int64 type: integer + standbyTargetPortEnd: + format: int32 + type: integer + standbyTargetPortStart: + format: int32 + type: integer state: type: string targetPortEnd: @@ -2272,6 +2350,97 @@ spec: --- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition +metadata: + annotations: + controller-gen.kubebuilder.io/version: v0.15.0 + labels: {{- include "longhorn.labels" . | nindent 4 }} + longhorn-manager: "" + name: nodedataengineupgrades.longhorn.io +spec: + group: longhorn.io + names: + kind: NodeDataEngineUpgrade + listKind: NodeDataEngineUpgradeList + plural: nodedataengineupgrades + shortNames: + - lhnu + singular: nodedataengineupgrade + scope: Namespaced + versions: + - additionalPrinterColumns: + - description: The node that the upgrade is being performed on + jsonPath: .status.ownerID + name: Node + type: string + - description: The data engine targeted for node upgrade + jsonPath: .spec.dataEngine + name: Data Engine + type: string + - description: The current state of the node upgrade process + jsonPath: .status.state + name: State + type: string + name: v1beta2 + schema: + openAPIV3Schema: + description: NodeDataEngineUpgrade is where Longhorn stores node upgrade object. + properties: + apiVersion: + description: |- + APIVersion defines the versioned schema of this representation of an object. + Servers should convert recognized schemas to the latest internal value, and + may reject unrecognized values. + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + type: string + kind: + description: |- + Kind is a string value representing the REST resource this object represents. + Servers may infer this from the endpoint the client submits requests to. + Cannot be updated. + In CamelCase. + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + type: string + metadata: + type: object + spec: + description: NodeDataEngineUpgradeSpec defines the desired state of the node data engine upgrade resource + properties: + dataEngine: + type: string + dataEngineUpgradeManager: + type: string + instanceManagerImage: + type: string + nodeID: + type: string + type: object + status: + description: NodeDataEngineUpgradeStatus defines the observed state of the node upgrade resource + properties: + errorMessage: + type: string + ownerID: + type: string + state: + type: string + volumes: + additionalProperties: + properties: + errorMessage: + type: string + state: + type: string + type: object + type: object + type: object + type: object + served: true + storage: true + subresources: + status: {} +--- +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition metadata: annotations: controller-gen.kubebuilder.io/version: v0.15.0 @@ -2307,8 +2476,7 @@ spec: jsonPath: .status.conditions['Ready']['status'] name: Ready type: string - - description: Indicate whether the user disabled/enabled replica scheduling for - the node + - description: Indicate whether the user disabled/enabled replica scheduling for the node jsonPath: .spec.allowScheduling name: AllowScheduling type: boolean @@ -2355,8 +2523,7 @@ spec: jsonPath: .status.conditions[?(@.type=='Ready')].status name: Ready type: string - - description: Indicate whether the user disabled/enabled replica scheduling for - the node + - description: Indicate whether the user disabled/enabled replica scheduling for the node jsonPath: .spec.allowScheduling name: AllowScheduling type: boolean @@ -2394,6 +2561,9 @@ spec: properties: allowScheduling: type: boolean + dataEngineUpgradeRequested: + description: Request to upgrade the instance manager for v2 volumes on the node. + type: boolean disks: additionalProperties: properties: @@ -2446,16 +2616,13 @@ spec: description: Last time we probed the condition. type: string lastTransitionTime: - description: Last time the condition transitioned from one status - to another. + description: Last time the condition transitioned from one status to another. type: string message: - description: Human-readable message indicating details about - last transition. + description: Human-readable message indicating details about last transition. type: string reason: - description: Unique, one-word, CamelCase reason for the condition's - last transition. + description: Unique, one-word, CamelCase reason for the condition's last transition. type: string status: description: |- @@ -2478,16 +2645,13 @@ spec: description: Last time we probed the condition. type: string lastTransitionTime: - description: Last time the condition transitioned from - one status to another. + description: Last time the condition transitioned from one status to another. type: string message: - description: Human-readable message indicating details - about last transition. + description: Human-readable message indicating details about last transition. type: string reason: - description: Unique, one-word, CamelCase reason for the - condition's last transition. + description: Unique, one-word, CamelCase reason for the condition's last transition. type: string status: description: |- @@ -2560,7 +2724,7 @@ kind: CustomResourceDefinition metadata: annotations: controller-gen.kubebuilder.io/version: v0.15.0 - labels: {{- include "longhorn.labels" . | nindent 4 }} + labels: longhorn-manager: "" name: orphans.longhorn.io spec: @@ -2606,12 +2770,10 @@ spec: metadata: type: object spec: - description: OrphanSpec defines the desired state of the Longhorn orphaned - data + description: OrphanSpec defines the desired state of the Longhorn orphaned data properties: nodeID: - description: The node ID on which the controller is responsible to - reconcile this orphan CR. + description: The node ID on which the controller is responsible to reconcile this orphan CR. type: string orphanType: description: |- @@ -2625,8 +2787,7 @@ spec: type: object type: object status: - description: OrphanStatus defines the observed state of the Longhorn orphaned - data + description: OrphanStatus defines the observed state of the Longhorn orphaned data properties: conditions: items: @@ -2635,16 +2796,13 @@ spec: description: Last time we probed the condition. type: string lastTransitionTime: - description: Last time the condition transitioned from one status - to another. + description: Last time the condition transitioned from one status to another. type: string message: - description: Human-readable message indicating details about - last transition. + description: Human-readable message indicating details about last transition. type: string reason: - description: Unique, one-word, CamelCase reason for the condition's - last transition. + description: Unique, one-word, CamelCase reason for the condition's last transition. type: string status: description: |- @@ -2686,8 +2844,7 @@ spec: scope: Namespaced versions: - additionalPrinterColumns: - - description: Sets groupings to the jobs. When set to "default" group will be - added to the volume label when no other job label exist in volume + - description: Sets groupings to the jobs. When set to "default" group will be added to the volume label when no other job label exist in volume jsonPath: .spec.groups name: Groups type: string @@ -2746,13 +2903,11 @@ spec: subresources: status: {} - additionalPrinterColumns: - - description: Sets groupings to the jobs. When set to "default" group will be - added to the volume label when no other job label exist in volume + - description: Sets groupings to the jobs. When set to "default" group will be added to the volume label when no other job label exist in volume jsonPath: .spec.groups name: Groups type: string - - description: Should be one of "snapshot", "snapshot-force-create", "snapshot-cleanup", - "snapshot-delete", "backup", "backup-force-create" or "filesystem-trim" + - description: Should be one of "snapshot", "snapshot-force-create", "snapshot-cleanup", "snapshot-delete", "backup", "backup-force-create" or "filesystem-trim" jsonPath: .spec.task name: Task type: string @@ -2798,8 +2953,7 @@ spec: metadata: type: object spec: - description: RecurringJobSpec defines the desired state of the Longhorn - recurring job + description: RecurringJobSpec defines the desired state of the Longhorn recurring job properties: concurrency: description: The concurrency of taking the snapshot/backup. @@ -2845,15 +2999,13 @@ spec: type: string type: object status: - description: RecurringJobStatus defines the observed state of the Longhorn - recurring job + description: RecurringJobStatus defines the observed state of the Longhorn recurring job properties: executionCount: description: The number of jobs that have been triggered. type: integer ownerID: - description: The owner ID which is responsible to reconcile this recurring - job CR. + description: The owner ID which is responsible to reconcile this recurring job CR. type: string type: object type: object @@ -3071,6 +3223,8 @@ spec: snapshotMaxSize: format: int64 type: string + targetNodeID: + type: string unmapMarkDiskChainRemovedEnabled: type: boolean volumeName: @@ -3080,8 +3234,7 @@ spec: type: string type: object status: - description: ReplicaStatus defines the observed state of the Longhorn - replica + description: ReplicaStatus defines the observed state of the Longhorn replica properties: conditions: items: @@ -3090,16 +3243,13 @@ spec: description: Last time we probed the condition. type: string lastTransitionTime: - description: Last time the condition transitioned from one status - to another. + description: Last time the condition transitioned from one status to another. type: string message: - description: Human-readable message indicating details about - last transition. + description: Human-readable message indicating details about last transition. type: string reason: - description: Unique, one-word, CamelCase reason for the condition's - last transition. + description: Unique, one-word, CamelCase reason for the condition's last transition. type: string status: description: |- @@ -3116,6 +3266,8 @@ spec: type: string currentState: type: string + currentTargetNodeID: + type: string evictionRequested: description: 'Deprecated: Replaced by field `spec.evictionRequested`.' type: boolean @@ -3135,6 +3287,14 @@ spec: type: boolean storageIP: type: string + storageTargetIP: + type: string + targetIP: + type: string + targetInstanceReplacementCreated: + type: boolean + targetPort: + type: integer type: object type: object served: true @@ -3352,25 +3512,20 @@ spec: metadata: type: object spec: - description: ShareManagerSpec defines the desired state of the Longhorn - share manager + description: ShareManagerSpec defines the desired state of the Longhorn share manager properties: image: - description: Share manager image used for creating a share manager - pod + description: Share manager image used for creating a share manager pod type: string type: object status: - description: ShareManagerStatus defines the observed state of the Longhorn - share manager + description: ShareManagerStatus defines the observed state of the Longhorn share manager properties: endpoint: - description: NFS endpoint that can access the mounted filesystem of - the volume + description: NFS endpoint that can access the mounted filesystem of the volume type: string ownerID: - description: The node ID on which the controller is responsible to - reconcile this share manager resource + description: The node ID on which the controller is responsible to reconcile this share manager resource type: string state: description: The state of the share manager resource @@ -3410,13 +3565,11 @@ spec: jsonPath: .status.creationTime name: CreationTime type: string - - description: Indicates if the snapshot is ready to be used to restore/backup - a volume + - description: Indicates if the snapshot is ready to be used to restore/backup a volume jsonPath: .status.readyToUse name: ReadyToUse type: boolean - - description: Represents the minimum size of volume required to rehydrate from - this snapshot + - description: Represents the minimum size of volume required to rehydrate from this snapshot jsonPath: .status.restoreSize name: RestoreSize type: string @@ -3570,8 +3723,7 @@ spec: metadata: type: object spec: - description: SupportBundleSpec defines the desired state of the Longhorn - SupportBundle + description: SupportBundleSpec defines the desired state of the Longhorn SupportBundle properties: description: description: A brief description of the issue @@ -3587,8 +3739,7 @@ spec: - description type: object status: - description: SupportBundleStatus defines the observed state of the Longhorn - SupportBundle + description: SupportBundleStatus defines the observed state of the Longhorn SupportBundle properties: conditions: items: @@ -3597,16 +3748,13 @@ spec: description: Last time we probed the condition. type: string lastTransitionTime: - description: Last time the condition transitioned from one status - to another. + description: Last time the condition transitioned from one status to another. type: string message: - description: Human-readable message indicating details about - last transition. + description: Human-readable message indicating details about last transition. type: string reason: - description: Unique, one-word, CamelCase reason for the condition's - last transition. + description: Unique, one-word, CamelCase reason for the condition's last transition. type: string status: description: |- @@ -3702,8 +3850,7 @@ spec: metadata: type: object spec: - description: SystemBackupSpec defines the desired state of the Longhorn - SystemBackup + description: SystemBackupSpec defines the desired state of the Longhorn SystemBackup properties: volumeBackupPolicy: description: |- @@ -3713,8 +3860,7 @@ spec: type: string type: object status: - description: SystemBackupStatus defines the observed state of the Longhorn - SystemBackup + description: SystemBackupStatus defines the observed state of the Longhorn SystemBackup properties: conditions: items: @@ -3723,16 +3869,13 @@ spec: description: Last time we probed the condition. type: string lastTransitionTime: - description: Last time the condition transitioned from one status - to another. + description: Last time the condition transitioned from one status to another. type: string message: - description: Human-readable message indicating details about - last transition. + description: Human-readable message indicating details about last transition. type: string reason: - description: Unique, one-word, CamelCase reason for the condition's - last transition. + description: Unique, one-word, CamelCase reason for the condition's last transition. type: string status: description: |- @@ -3754,8 +3897,7 @@ spec: nullable: true type: string lastSyncedAt: - description: The last time that the system backup was synced into - the cluster. + description: The last time that the system backup was synced into the cluster. format: date-time nullable: true type: string @@ -3763,8 +3905,7 @@ spec: description: The saved manager image. type: string ownerID: - description: The node ID of the responsible controller to reconcile - this SystemBackup. + description: The node ID of the responsible controller to reconcile this SystemBackup. type: string state: description: The system backup state. @@ -3830,8 +3971,7 @@ spec: metadata: type: object spec: - description: SystemRestoreSpec defines the desired state of the Longhorn - SystemRestore + description: SystemRestoreSpec defines the desired state of the Longhorn SystemRestore properties: systemBackup: description: The system backup name in the object store. @@ -3840,8 +3980,7 @@ spec: - systemBackup type: object status: - description: SystemRestoreStatus defines the observed state of the Longhorn - SystemRestore + description: SystemRestoreStatus defines the observed state of the Longhorn SystemRestore properties: conditions: items: @@ -3850,16 +3989,13 @@ spec: description: Last time we probed the condition. type: string lastTransitionTime: - description: Last time the condition transitioned from one status - to another. + description: Last time the condition transitioned from one status to another. type: string message: - description: Human-readable message indicating details about - last transition. + description: Human-readable message indicating details about last transition. type: string reason: - description: Unique, one-word, CamelCase reason for the condition's - last transition. + description: Unique, one-word, CamelCase reason for the condition's last transition. type: string status: description: |- @@ -3873,8 +4009,7 @@ spec: nullable: true type: array ownerID: - description: The node ID of the responsible controller to reconcile - this SystemRestore. + description: The node ID of the responsible controller to reconcile this SystemRestore. type: string sourceURL: description: The source system backup URL. @@ -3915,8 +4050,7 @@ spec: name: v1beta2 schema: openAPIV3Schema: - description: VolumeAttachment stores attachment information of a Longhorn - volume + description: VolumeAttachment stores attachment information of a Longhorn volume properties: apiVersion: description: |- @@ -3936,8 +4070,7 @@ spec: metadata: type: object spec: - description: VolumeAttachmentSpec defines the desired state of Longhorn - VolumeAttachment + description: VolumeAttachmentSpec defines the desired state of Longhorn VolumeAttachment properties: attachmentTickets: additionalProperties: @@ -3949,8 +4082,7 @@ spec: format: int64 type: integer id: - description: The unique ID of this attachment. Used to differentiate - different attachments of the same volume. + description: The unique ID of this attachment. Used to differentiate different attachments of the same volume. type: string nodeID: description: The node that this attachment is requesting @@ -3971,8 +4103,7 @@ spec: - volume type: object status: - description: VolumeAttachmentStatus defines the observed state of Longhorn - VolumeAttachment + description: VolumeAttachmentStatus defines the observed state of Longhorn VolumeAttachment properties: attachmentTicketStatuses: additionalProperties: @@ -3985,16 +4116,13 @@ spec: description: Last time we probed the condition. type: string lastTransitionTime: - description: Last time the condition transitioned from - one status to another. + description: Last time the condition transitioned from one status to another. type: string message: - description: Human-readable message indicating details - about last transition. + description: Human-readable message indicating details about last transition. type: string reason: - description: Unique, one-word, CamelCase reason for the - condition's last transition. + description: Unique, one-word, CamelCase reason for the condition's last transition. type: string status: description: |- @@ -4014,12 +4142,10 @@ spec: format: int64 type: integer id: - description: The unique ID of this attachment. Used to differentiate - different attachments of the same volume. + description: The unique ID of this attachment. Used to differentiate different attachments of the same volume. type: string satisfied: - description: Indicate whether this attachment ticket has been - satisfied + description: Indicate whether this attachment ticket has been satisfied type: boolean required: - conditions @@ -4216,8 +4342,7 @@ spec: description: 'Deprecated: Replaced by field `image`.' type: string freezeFilesystemForSnapshot: - description: Setting that freezes the filesystem on the root partition - before a snapshot is created. + description: Setting that freezes the filesystem on the root partition before a snapshot is created. enum: - ignored - enabled @@ -4256,24 +4381,21 @@ spec: - best-effort type: string replicaDiskSoftAntiAffinity: - description: Replica disk soft anti affinity of the volume. Set enabled - to allow replicas to be scheduled in the same disk. + description: Replica disk soft anti affinity of the volume. Set enabled to allow replicas to be scheduled in the same disk. enum: - ignored - enabled - disabled type: string replicaSoftAntiAffinity: - description: Replica soft anti affinity of the volume. Set enabled - to allow replicas to be scheduled on the same node. + description: Replica soft anti affinity of the volume. Set enabled to allow replicas to be scheduled on the same node. enum: - ignored - enabled - disabled type: string replicaZoneSoftAntiAffinity: - description: Replica zone soft anti affinity of the volume. Set enabled - to allow replicas to be scheduled in the same zone. + description: Replica zone soft anti affinity of the volume. Set enabled to allow replicas to be scheduled in the same zone. enum: - ignored - enabled @@ -4304,6 +4426,8 @@ spec: type: string staleReplicaTimeout: type: integer + targetNodeID: + type: string unmapMarkSnapChainRemoved: enum: - ignored @@ -4337,16 +4461,13 @@ spec: description: Last time we probed the condition. type: string lastTransitionTime: - description: Last time the condition transitioned from one status - to another. + description: Last time the condition transitioned from one status to another. type: string message: - description: Human-readable message indicating details about - last transition. + description: Human-readable message indicating details about last transition. type: string reason: - description: Unique, one-word, CamelCase reason for the condition's - last transition. + description: Unique, one-word, CamelCase reason for the condition's last transition. type: string status: description: |- @@ -4366,6 +4487,8 @@ spec: type: string currentNodeID: type: string + currentTargetNodeID: + type: string expansionRequired: type: boolean frontendDisabled: diff --git a/chart/templates/daemonset-sa.yaml b/chart/templates/daemonset-sa.yaml index af7c09a409..776ae76ae0 100644 --- a/chart/templates/daemonset-sa.yaml +++ b/chart/templates/daemonset-sa.yaml @@ -103,6 +103,10 @@ spec: imagePullPolicy: {{ .Values.image.pullPolicy }} image: {{ template "registry_url" . }}{{ .Values.image.longhorn.shareManager.repository }}:{{ .Values.image.longhorn.shareManager.tag }} command: ["sh", "-c", "echo share-manager image pulled && sleep infinity"] + - name: pre-pull-instance-manager-image + imagePullPolicy: {{ .Values.image.pullPolicy }} + image: {{ template "registry_url" . }}{{ .Values.image.longhorn.instanceManager.repository }}:{{ .Values.image.longhorn.instanceManager.tag }} + command: ["sh", "-c", "echo instance-manager image pulled && sleep infinity"] volumes: - name: boot hostPath: diff --git a/deploy/longhorn-okd.yaml b/deploy/longhorn-okd.yaml index 74ebd28d81..5f481493a2 100644 --- a/deploy/longhorn-okd.yaml +++ b/deploy/longhorn-okd.yaml @@ -125,8 +125,7 @@ spec: scope: Namespaced versions: - additionalPrinterColumns: - - description: The current state of the pod used to provision the backing image - file from source + - description: The current state of the pod used to provision the backing image file from source jsonPath: .status.currentState name: State type: string @@ -148,8 +147,7 @@ spec: name: v1beta1 schema: openAPIV3Schema: - description: BackingImageDataSource is where Longhorn stores backing image - data source object. + description: BackingImageDataSource is where Longhorn stores backing image data source object. properties: apiVersion: description: |- @@ -182,8 +180,7 @@ spec: jsonPath: .spec.uuid name: UUID type: string - - description: The current state of the pod used to provision the backing image - file from source + - description: The current state of the pod used to provision the backing image file from source jsonPath: .status.currentState name: State type: string @@ -209,8 +206,7 @@ spec: name: v1beta2 schema: openAPIV3Schema: - description: BackingImageDataSource is where Longhorn stores backing image - data source object. + description: BackingImageDataSource is where Longhorn stores backing image data source object. properties: apiVersion: description: |- @@ -230,8 +226,7 @@ spec: metadata: type: object spec: - description: BackingImageDataSourceSpec defines the desired state of the - Longhorn backing image data source + description: BackingImageDataSourceSpec defines the desired state of the Longhorn backing image data source properties: checksum: type: string @@ -259,8 +254,7 @@ spec: type: string type: object status: - description: BackingImageDataSourceStatus defines the observed state of - the Longhorn backing image data source + description: BackingImageDataSourceStatus defines the observed state of the Longhorn backing image data source properties: checksum: type: string @@ -341,8 +335,7 @@ spec: name: v1beta1 schema: openAPIV3Schema: - description: BackingImageManager is where Longhorn stores backing image manager - object. + description: BackingImageManager is where Longhorn stores backing image manager object. properties: apiVersion: description: |- @@ -397,8 +390,7 @@ spec: name: v1beta2 schema: openAPIV3Schema: - description: BackingImageManager is where Longhorn stores backing image manager - object. + description: BackingImageManager is where Longhorn stores backing image manager object. properties: apiVersion: description: |- @@ -418,8 +410,7 @@ spec: metadata: type: object spec: - description: BackingImageManagerSpec defines the desired state of the - Longhorn backing image manager + description: BackingImageManagerSpec defines the desired state of the Longhorn backing image manager properties: backingImages: additionalProperties: @@ -435,8 +426,7 @@ spec: type: string type: object status: - description: BackingImageManagerStatus defines the observed state of the - Longhorn backing image manager + description: BackingImageManagerStatus defines the observed state of the Longhorn backing image manager properties: apiMinVersion: type: integer @@ -605,8 +595,7 @@ spec: metadata: type: object spec: - description: BackingImageSpec defines the desired state of the Longhorn - backing image + description: BackingImageSpec defines the desired state of the Longhorn backing image properties: checksum: type: string @@ -624,8 +613,7 @@ spec: disks: additionalProperties: type: string - description: Deprecated. We are now using DiskFileSpecMap to assign - different spec to the file on different disks. + description: Deprecated. We are now using DiskFileSpecMap to assign different spec to the file on different disks. type: object minNumberOfCopies: type: integer @@ -651,8 +639,7 @@ spec: type: string type: object status: - description: BackingImageStatus defines the observed state of the Longhorn - backing image status + description: BackingImageStatus defines the observed state of the Longhorn backing image status properties: checksum: type: string @@ -678,8 +665,7 @@ spec: ownerID: type: string realSize: - description: Real size of image in bytes, which may be smaller than the size - when the file is a sparse file. Will be zero until known (e.g. while a backing image is uploading) + description: Real size of image in bytes, which may be smaller than the size when the file is a sparse file. Will be zero until known (e.g. while a backing image is uploading) format: int64 type: integer size: @@ -688,8 +674,7 @@ spec: uuid: type: string virtualSize: - description: Virtual size of image in bytes, which may be larger than physical - size. Will be zero until known (e.g. while a backing image is uploading) + description: Virtual size of image in bytes, which may be larger than physical size. Will be zero until known (e.g. while a backing image is uploading) format: int64 type: integer type: object @@ -746,8 +731,7 @@ spec: name: v1beta2 schema: openAPIV3Schema: - description: BackupBackingImage is where Longhorn stores backing image backup - object. + description: BackupBackingImage is where Longhorn stores backing image backup object. properties: apiVersion: description: |- @@ -767,8 +751,7 @@ spec: metadata: type: object spec: - description: BackupBackingImageSpec defines the desired state of the Longhorn - backing image backup + description: BackupBackingImageSpec defines the desired state of the Longhorn backing image backup properties: labels: additionalProperties: @@ -776,8 +759,7 @@ spec: description: The labels of backing image backup. type: object syncRequestedAt: - description: The time to request run sync the remote backing image - backup. + description: The time to request run sync the remote backing image backup. format: date-time nullable: true type: string @@ -790,8 +772,7 @@ spec: - userCreated type: object status: - description: BackupBackingImageStatus defines the observed state of the - Longhorn backing image backup + description: BackupBackingImageStatus defines the observed state of the Longhorn backing image backup properties: backingImage: description: The backing image name. @@ -815,25 +796,21 @@ spec: nullable: true type: object lastSyncedAt: - description: The last time that the backing image backup was synced - with the remote backup target. + description: The last time that the backing image backup was synced with the remote backup target. format: date-time nullable: true type: string managerAddress: - description: The address of the backing image manager that runs backing - image backup. + description: The address of the backing image manager that runs backing image backup. type: string messages: additionalProperties: type: string - description: The error messages when listing or inspecting backing - image backup. + description: The error messages when listing or inspecting backing image backup. nullable: true type: object ownerID: - description: The node ID on which the controller is responsible to - reconcile this CR. + description: The node ID on which the controller is responsible to reconcile this CR. type: string progress: description: The backing image backup progress. @@ -1026,24 +1003,21 @@ spec: nullable: true type: object lastSyncedAt: - description: The last time that the backup was synced with the remote - backup target. + description: The last time that the backup was synced with the remote backup target. format: date-time nullable: true type: string messages: additionalProperties: type: string - description: The error messages when calling longhorn engine on listing - or inspecting backups. + description: The error messages when calling longhorn engine on listing or inspecting backups. nullable: true type: object newlyUploadDataSize: description: Size in bytes of newly uploaded data type: string ownerID: - description: The node ID on which the controller is responsible to - reconcile this backup CR. + description: The node ID on which the controller is responsible to reconcile this backup CR. type: string progress: description: The snapshot backup progress. @@ -1221,8 +1195,7 @@ spec: metadata: type: object spec: - description: BackupTargetSpec defines the desired state of the Longhorn - backup target + description: BackupTargetSpec defines the desired state of the Longhorn backup target properties: backupTargetURL: description: The backup target URL. @@ -1231,8 +1204,7 @@ spec: description: The backup target credential secret. type: string pollInterval: - description: The interval that the cluster needs to run sync with - the backup target. + description: The interval that the cluster needs to run sync with the backup target. type: string syncRequestedAt: description: The time to request run sync the remote backup target. @@ -1241,12 +1213,10 @@ spec: type: string type: object status: - description: BackupTargetStatus defines the observed state of the Longhorn - backup target + description: BackupTargetStatus defines the observed state of the Longhorn backup target properties: available: - description: Available indicates if the remote backup target is available - or not. + description: Available indicates if the remote backup target is available or not. type: boolean conditions: description: Records the reason on why the backup target is unavailable. @@ -1256,16 +1226,13 @@ spec: description: Last time we probed the condition. type: string lastTransitionTime: - description: Last time the condition transitioned from one status - to another. + description: Last time the condition transitioned from one status to another. type: string message: - description: Human-readable message indicating details about - last transition. + description: Human-readable message indicating details about last transition. type: string reason: - description: Unique, one-word, CamelCase reason for the condition's - last transition. + description: Unique, one-word, CamelCase reason for the condition's last transition. type: string status: description: |- @@ -1279,14 +1246,12 @@ spec: nullable: true type: array lastSyncedAt: - description: The last time that the controller synced with the remote - backup target. + description: The last time that the controller synced with the remote backup target. format: date-time nullable: true type: string ownerID: - description: The node ID on which the controller is responsible to - reconcile this backup target CR. + description: The node ID on which the controller is responsible to reconcile this backup target CR. type: string type: object type: object @@ -1406,8 +1371,7 @@ spec: metadata: type: object spec: - description: BackupVolumeSpec defines the desired state of the Longhorn - backup volume + description: BackupVolumeSpec defines the desired state of the Longhorn backup volume properties: syncRequestedAt: description: The time to request run sync the remote backup volume. @@ -1416,8 +1380,7 @@ spec: type: string type: object status: - description: BackupVolumeStatus defines the observed state of the Longhorn - backup volume + description: BackupVolumeStatus defines the observed state of the Longhorn backup volume properties: backingImageChecksum: description: the backing image checksum. @@ -1449,21 +1412,18 @@ spec: nullable: true type: string lastSyncedAt: - description: The last time that the backup volume was synced into - the cluster. + description: The last time that the backup volume was synced into the cluster. format: date-time nullable: true type: string messages: additionalProperties: type: string - description: The error messages when call longhorn engine on list - or inspect backup volumes. + description: The error messages when call longhorn engine on list or inspect backup volumes. nullable: true type: object ownerID: - description: The node ID on which the controller is responsible to - reconcile this backup volume CR. + description: The node ID on which the controller is responsible to reconcile this backup volume CR. type: string size: description: The backup volume size. @@ -1481,6 +1441,108 @@ spec: # Source: longhorn/templates/crds.yaml apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition +metadata: + annotations: + controller-gen.kubebuilder.io/version: v0.15.0 + labels: + app.kubernetes.io/name: longhorn + app.kubernetes.io/instance: longhorn + app.kubernetes.io/version: v1.8.0-dev + longhorn-manager: "" + name: dataengineupgrademanagers.longhorn.io +spec: + group: longhorn.io + names: + kind: DataEngineUpgradeManager + listKind: DataEngineUpgradeManagerList + plural: dataengineupgrademanagers + shortNames: + - lhum + singular: dataengineupgrademanager + scope: Namespaced + versions: + - additionalPrinterColumns: + - description: The node that the upgrade manager is being performed on + jsonPath: .status.ownerID + name: Node + type: string + - description: The data engine targeted for upgrade + jsonPath: .spec.dataEngine + name: Data Engine + type: string + - description: The current state of the upgrade process + jsonPath: .status.state + name: State + type: string + - description: The node that is currently being upgraded + jsonPath: .status.upgradingNode + name: Upgrading Node + type: string + name: v1beta2 + schema: + openAPIV3Schema: + description: DataEngineUpgradeManager is where Longhorn stores upgrade manager object. + properties: + apiVersion: + description: |- + APIVersion defines the versioned schema of this representation of an object. + Servers should convert recognized schemas to the latest internal value, and + may reject unrecognized values. + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + type: string + kind: + description: |- + Kind is a string value representing the REST resource this object represents. + Servers may infer this from the endpoint the client submits requests to. + Cannot be updated. + In CamelCase. + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + type: string + metadata: + type: object + spec: + description: DataEngineUpgradeManagerSpec defines the desired state of the upgrade manager resource + properties: + dataEngine: + type: string + nodes: + items: + type: string + type: array + type: object + status: + description: DataEngineUpgradeManagerStatus defines the observed state of the upgrade manager resource + properties: + errorMessage: + type: string + instanceManagerImage: + type: string + ownerID: + type: string + state: + type: string + upgradeNodes: + additionalProperties: + description: UpgradeState defines the state of the node upgrade process + properties: + errorMessage: + type: string + state: + type: string + type: object + type: object + upgradingNode: + type: string + type: object + type: object + served: true + storage: true + subresources: + status: {} +--- +# Source: longhorn/templates/crds.yaml +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition metadata: annotations: controller-gen.kubebuilder.io/version: v0.15.0 @@ -1612,8 +1674,7 @@ spec: metadata: type: object spec: - description: EngineImageSpec defines the desired state of the Longhorn - engine image + description: EngineImageSpec defines the desired state of the Longhorn engine image properties: image: minLength: 1 @@ -1622,8 +1683,7 @@ spec: - image type: object status: - description: EngineImageStatus defines the observed state of the Longhorn - engine image + description: EngineImageStatus defines the observed state of the Longhorn engine image properties: buildDate: type: string @@ -1638,16 +1698,13 @@ spec: description: Last time we probed the condition. type: string lastTransitionTime: - description: Last time the condition transitioned from one status - to another. + description: Last time the condition transitioned from one status to another. type: string message: - description: Human-readable message indicating details about - last transition. + description: Human-readable message indicating details about last transition. type: string reason: - description: Unique, one-word, CamelCase reason for the condition's - last transition. + description: Unique, one-word, CamelCase reason for the condition's last transition. type: string status: description: |- @@ -1867,6 +1924,8 @@ spec: snapshotMaxSize: format: int64 type: string + targetNodeID: + type: string unmapMarkSnapChainRemovedEnabled: type: boolean upgradedReplicaAddressMap: @@ -1925,16 +1984,13 @@ spec: description: Last time we probed the condition. type: string lastTransitionTime: - description: Last time the condition transitioned from one status - to another. + description: Last time the condition transitioned from one status to another. type: string message: - description: Human-readable message indicating details about - last transition. + description: Human-readable message indicating details about last transition. type: string reason: - description: Unique, one-word, CamelCase reason for the condition's - last transition. + description: Unique, one-word, CamelCase reason for the condition's last transition. type: string status: description: |- @@ -1959,6 +2015,8 @@ spec: type: string currentState: type: string + currentTargetNodeID: + type: string endpoint: type: string instanceManagerName: @@ -2085,6 +2143,14 @@ spec: type: boolean storageIP: type: string + storageTargetIP: + type: string + targetIP: + type: string + targetInstanceReplacementCreated: + type: boolean + targetPort: + type: integer unmapMarkSnapChainRemovedEnabled: type: boolean type: object @@ -2208,8 +2274,7 @@ spec: metadata: type: object spec: - description: InstanceManagerSpec defines the desired state of the Longhorn - instance manager + description: InstanceManagerSpec defines the desired state of the Longhorn instance manager properties: dataEngine: type: string @@ -2233,8 +2298,7 @@ spec: type: string type: object status: - description: InstanceManagerStatus defines the observed state of the Longhorn - instance manager + description: InstanceManagerStatus defines the observed state of the Longhorn instance manager properties: apiMinVersion: type: integer @@ -2285,6 +2349,12 @@ spec: resourceVersion: format: int64 type: integer + standbyTargetPortEnd: + format: int32 + type: integer + standbyTargetPortStart: + format: int32 + type: integer state: type: string targetPortEnd: @@ -2334,6 +2404,12 @@ spec: resourceVersion: format: int64 type: integer + standbyTargetPortEnd: + format: int32 + type: integer + standbyTargetPortStart: + format: int32 + type: integer state: type: string targetPortEnd: @@ -2383,6 +2459,12 @@ spec: resourceVersion: format: int64 type: integer + standbyTargetPortEnd: + format: int32 + type: integer + standbyTargetPortStart: + format: int32 + type: integer state: type: string targetPortEnd: @@ -2416,6 +2498,101 @@ spec: # Source: longhorn/templates/crds.yaml apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition +metadata: + annotations: + controller-gen.kubebuilder.io/version: v0.15.0 + labels: + app.kubernetes.io/name: longhorn + app.kubernetes.io/instance: longhorn + app.kubernetes.io/version: v1.8.0-dev + longhorn-manager: "" + name: nodedataengineupgrades.longhorn.io +spec: + group: longhorn.io + names: + kind: NodeDataEngineUpgrade + listKind: NodeDataEngineUpgradeList + plural: nodedataengineupgrades + shortNames: + - lhnu + singular: nodedataengineupgrade + scope: Namespaced + versions: + - additionalPrinterColumns: + - description: The node that the upgrade is being performed on + jsonPath: .status.ownerID + name: Node + type: string + - description: The data engine targeted for node upgrade + jsonPath: .spec.dataEngine + name: Data Engine + type: string + - description: The current state of the node upgrade process + jsonPath: .status.state + name: State + type: string + name: v1beta2 + schema: + openAPIV3Schema: + description: NodeDataEngineUpgrade is where Longhorn stores node upgrade object. + properties: + apiVersion: + description: |- + APIVersion defines the versioned schema of this representation of an object. + Servers should convert recognized schemas to the latest internal value, and + may reject unrecognized values. + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + type: string + kind: + description: |- + Kind is a string value representing the REST resource this object represents. + Servers may infer this from the endpoint the client submits requests to. + Cannot be updated. + In CamelCase. + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + type: string + metadata: + type: object + spec: + description: NodeDataEngineUpgradeSpec defines the desired state of the node data engine upgrade resource + properties: + dataEngine: + type: string + dataEngineUpgradeManager: + type: string + instanceManagerImage: + type: string + nodeID: + type: string + type: object + status: + description: NodeDataEngineUpgradeStatus defines the observed state of the node upgrade resource + properties: + errorMessage: + type: string + ownerID: + type: string + state: + type: string + volumes: + additionalProperties: + properties: + errorMessage: + type: string + state: + type: string + type: object + type: object + type: object + type: object + served: true + storage: true + subresources: + status: {} +--- +# Source: longhorn/templates/crds.yaml +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition metadata: annotations: controller-gen.kubebuilder.io/version: v0.15.0 @@ -2454,8 +2631,7 @@ spec: jsonPath: .status.conditions['Ready']['status'] name: Ready type: string - - description: Indicate whether the user disabled/enabled replica scheduling for - the node + - description: Indicate whether the user disabled/enabled replica scheduling for the node jsonPath: .spec.allowScheduling name: AllowScheduling type: boolean @@ -2502,8 +2678,7 @@ spec: jsonPath: .status.conditions[?(@.type=='Ready')].status name: Ready type: string - - description: Indicate whether the user disabled/enabled replica scheduling for - the node + - description: Indicate whether the user disabled/enabled replica scheduling for the node jsonPath: .spec.allowScheduling name: AllowScheduling type: boolean @@ -2580,6 +2755,9 @@ spec: items: type: string type: array + upgradeRequested: + description: Request to upgrade the instance manager for v2 volumes on the node. + type: boolean type: object status: description: NodeStatus defines the observed state of the Longhorn node @@ -2593,16 +2771,13 @@ spec: description: Last time we probed the condition. type: string lastTransitionTime: - description: Last time the condition transitioned from one status - to another. + description: Last time the condition transitioned from one status to another. type: string message: - description: Human-readable message indicating details about - last transition. + description: Human-readable message indicating details about last transition. type: string reason: - description: Unique, one-word, CamelCase reason for the condition's - last transition. + description: Unique, one-word, CamelCase reason for the condition's last transition. type: string status: description: |- @@ -2625,16 +2800,13 @@ spec: description: Last time we probed the condition. type: string lastTransitionTime: - description: Last time the condition transitioned from - one status to another. + description: Last time the condition transitioned from one status to another. type: string message: - description: Human-readable message indicating details - about last transition. + description: Human-readable message indicating details about last transition. type: string reason: - description: Unique, one-word, CamelCase reason for the - condition's last transition. + description: Unique, one-word, CamelCase reason for the condition's last transition. type: string status: description: |- @@ -2709,9 +2881,6 @@ metadata: annotations: controller-gen.kubebuilder.io/version: v0.15.0 labels: - app.kubernetes.io/name: longhorn - app.kubernetes.io/instance: longhorn - app.kubernetes.io/version: v1.8.0-dev longhorn-manager: "" name: orphans.longhorn.io spec: @@ -2757,12 +2926,10 @@ spec: metadata: type: object spec: - description: OrphanSpec defines the desired state of the Longhorn orphaned - data + description: OrphanSpec defines the desired state of the Longhorn orphaned data properties: nodeID: - description: The node ID on which the controller is responsible to - reconcile this orphan CR. + description: The node ID on which the controller is responsible to reconcile this orphan CR. type: string orphanType: description: |- @@ -2776,8 +2943,7 @@ spec: type: object type: object status: - description: OrphanStatus defines the observed state of the Longhorn orphaned - data + description: OrphanStatus defines the observed state of the Longhorn orphaned data properties: conditions: items: @@ -2786,16 +2952,13 @@ spec: description: Last time we probed the condition. type: string lastTransitionTime: - description: Last time the condition transitioned from one status - to another. + description: Last time the condition transitioned from one status to another. type: string message: - description: Human-readable message indicating details about - last transition. + description: Human-readable message indicating details about last transition. type: string reason: - description: Unique, one-word, CamelCase reason for the condition's - last transition. + description: Unique, one-word, CamelCase reason for the condition's last transition. type: string status: description: |- @@ -2841,8 +3004,7 @@ spec: scope: Namespaced versions: - additionalPrinterColumns: - - description: Sets groupings to the jobs. When set to "default" group will be - added to the volume label when no other job label exist in volume + - description: Sets groupings to the jobs. When set to "default" group will be added to the volume label when no other job label exist in volume jsonPath: .spec.groups name: Groups type: string @@ -2901,13 +3063,11 @@ spec: subresources: status: {} - additionalPrinterColumns: - - description: Sets groupings to the jobs. When set to "default" group will be - added to the volume label when no other job label exist in volume + - description: Sets groupings to the jobs. When set to "default" group will be added to the volume label when no other job label exist in volume jsonPath: .spec.groups name: Groups type: string - - description: Should be one of "snapshot", "snapshot-force-create", "snapshot-cleanup", - "snapshot-delete", "backup", "backup-force-create" or "filesystem-trim" + - description: Should be one of "snapshot", "snapshot-force-create", "snapshot-cleanup", "snapshot-delete", "backup", "backup-force-create" or "filesystem-trim" jsonPath: .spec.task name: Task type: string @@ -2953,8 +3113,7 @@ spec: metadata: type: object spec: - description: RecurringJobSpec defines the desired state of the Longhorn - recurring job + description: RecurringJobSpec defines the desired state of the Longhorn recurring job properties: concurrency: description: The concurrency of taking the snapshot/backup. @@ -3000,15 +3159,13 @@ spec: type: string type: object status: - description: RecurringJobStatus defines the observed state of the Longhorn - recurring job + description: RecurringJobStatus defines the observed state of the Longhorn recurring job properties: executionCount: description: The number of jobs that have been triggered. type: integer ownerID: - description: The owner ID which is responsible to reconcile this recurring - job CR. + description: The owner ID which is responsible to reconcile this recurring job CR. type: string type: object type: object @@ -3230,6 +3387,8 @@ spec: snapshotMaxSize: format: int64 type: string + targetNodeID: + type: string unmapMarkDiskChainRemovedEnabled: type: boolean volumeName: @@ -3239,8 +3398,7 @@ spec: type: string type: object status: - description: ReplicaStatus defines the observed state of the Longhorn - replica + description: ReplicaStatus defines the observed state of the Longhorn replica properties: conditions: items: @@ -3249,16 +3407,13 @@ spec: description: Last time we probed the condition. type: string lastTransitionTime: - description: Last time the condition transitioned from one status - to another. + description: Last time the condition transitioned from one status to another. type: string message: - description: Human-readable message indicating details about - last transition. + description: Human-readable message indicating details about last transition. type: string reason: - description: Unique, one-word, CamelCase reason for the condition's - last transition. + description: Unique, one-word, CamelCase reason for the condition's last transition. type: string status: description: |- @@ -3275,6 +3430,8 @@ spec: type: string currentState: type: string + currentTargetNodeID: + type: string evictionRequested: description: 'Deprecated: Replaced by field `spec.evictionRequested`.' type: boolean @@ -3294,6 +3451,14 @@ spec: type: boolean storageIP: type: string + storageTargetIP: + type: string + targetIP: + type: string + targetInstanceReplacementCreated: + type: boolean + targetPort: + type: integer type: object type: object served: true @@ -3519,25 +3684,20 @@ spec: metadata: type: object spec: - description: ShareManagerSpec defines the desired state of the Longhorn - share manager + description: ShareManagerSpec defines the desired state of the Longhorn share manager properties: image: - description: Share manager image used for creating a share manager - pod + description: Share manager image used for creating a share manager pod type: string type: object status: - description: ShareManagerStatus defines the observed state of the Longhorn - share manager + description: ShareManagerStatus defines the observed state of the Longhorn share manager properties: endpoint: - description: NFS endpoint that can access the mounted filesystem of - the volume + description: NFS endpoint that can access the mounted filesystem of the volume type: string ownerID: - description: The node ID on which the controller is responsible to - reconcile this share manager resource + description: The node ID on which the controller is responsible to reconcile this share manager resource type: string state: description: The state of the share manager resource @@ -3581,13 +3741,11 @@ spec: jsonPath: .status.creationTime name: CreationTime type: string - - description: Indicates if the snapshot is ready to be used to restore/backup - a volume + - description: Indicates if the snapshot is ready to be used to restore/backup a volume jsonPath: .status.readyToUse name: ReadyToUse type: boolean - - description: Represents the minimum size of volume required to rehydrate from - this snapshot + - description: Represents the minimum size of volume required to rehydrate from this snapshot jsonPath: .status.restoreSize name: RestoreSize type: string @@ -3745,8 +3903,7 @@ spec: metadata: type: object spec: - description: SupportBundleSpec defines the desired state of the Longhorn - SupportBundle + description: SupportBundleSpec defines the desired state of the Longhorn SupportBundle properties: description: description: A brief description of the issue @@ -3762,8 +3919,7 @@ spec: - description type: object status: - description: SupportBundleStatus defines the observed state of the Longhorn - SupportBundle + description: SupportBundleStatus defines the observed state of the Longhorn SupportBundle properties: conditions: items: @@ -3772,16 +3928,13 @@ spec: description: Last time we probed the condition. type: string lastTransitionTime: - description: Last time the condition transitioned from one status - to another. + description: Last time the condition transitioned from one status to another. type: string message: - description: Human-readable message indicating details about - last transition. + description: Human-readable message indicating details about last transition. type: string reason: - description: Unique, one-word, CamelCase reason for the condition's - last transition. + description: Unique, one-word, CamelCase reason for the condition's last transition. type: string status: description: |- @@ -3881,8 +4034,7 @@ spec: metadata: type: object spec: - description: SystemBackupSpec defines the desired state of the Longhorn - SystemBackup + description: SystemBackupSpec defines the desired state of the Longhorn SystemBackup properties: volumeBackupPolicy: description: |- @@ -3892,8 +4044,7 @@ spec: type: string type: object status: - description: SystemBackupStatus defines the observed state of the Longhorn - SystemBackup + description: SystemBackupStatus defines the observed state of the Longhorn SystemBackup properties: conditions: items: @@ -3902,16 +4053,13 @@ spec: description: Last time we probed the condition. type: string lastTransitionTime: - description: Last time the condition transitioned from one status - to another. + description: Last time the condition transitioned from one status to another. type: string message: - description: Human-readable message indicating details about - last transition. + description: Human-readable message indicating details about last transition. type: string reason: - description: Unique, one-word, CamelCase reason for the condition's - last transition. + description: Unique, one-word, CamelCase reason for the condition's last transition. type: string status: description: |- @@ -3933,8 +4081,7 @@ spec: nullable: true type: string lastSyncedAt: - description: The last time that the system backup was synced into - the cluster. + description: The last time that the system backup was synced into the cluster. format: date-time nullable: true type: string @@ -3942,8 +4089,7 @@ spec: description: The saved manager image. type: string ownerID: - description: The node ID of the responsible controller to reconcile - this SystemBackup. + description: The node ID of the responsible controller to reconcile this SystemBackup. type: string state: description: The system backup state. @@ -4013,8 +4159,7 @@ spec: metadata: type: object spec: - description: SystemRestoreSpec defines the desired state of the Longhorn - SystemRestore + description: SystemRestoreSpec defines the desired state of the Longhorn SystemRestore properties: systemBackup: description: The system backup name in the object store. @@ -4023,8 +4168,7 @@ spec: - systemBackup type: object status: - description: SystemRestoreStatus defines the observed state of the Longhorn - SystemRestore + description: SystemRestoreStatus defines the observed state of the Longhorn SystemRestore properties: conditions: items: @@ -4033,16 +4177,13 @@ spec: description: Last time we probed the condition. type: string lastTransitionTime: - description: Last time the condition transitioned from one status - to another. + description: Last time the condition transitioned from one status to another. type: string message: - description: Human-readable message indicating details about - last transition. + description: Human-readable message indicating details about last transition. type: string reason: - description: Unique, one-word, CamelCase reason for the condition's - last transition. + description: Unique, one-word, CamelCase reason for the condition's last transition. type: string status: description: |- @@ -4056,8 +4197,7 @@ spec: nullable: true type: array ownerID: - description: The node ID of the responsible controller to reconcile - this SystemRestore. + description: The node ID of the responsible controller to reconcile this SystemRestore. type: string sourceURL: description: The source system backup URL. @@ -4102,8 +4242,7 @@ spec: name: v1beta2 schema: openAPIV3Schema: - description: VolumeAttachment stores attachment information of a Longhorn - volume + description: VolumeAttachment stores attachment information of a Longhorn volume properties: apiVersion: description: |- @@ -4123,8 +4262,7 @@ spec: metadata: type: object spec: - description: VolumeAttachmentSpec defines the desired state of Longhorn - VolumeAttachment + description: VolumeAttachmentSpec defines the desired state of Longhorn VolumeAttachment properties: attachmentTickets: additionalProperties: @@ -4136,8 +4274,7 @@ spec: format: int64 type: integer id: - description: The unique ID of this attachment. Used to differentiate - different attachments of the same volume. + description: The unique ID of this attachment. Used to differentiate different attachments of the same volume. type: string nodeID: description: The node that this attachment is requesting @@ -4158,8 +4295,7 @@ spec: - volume type: object status: - description: VolumeAttachmentStatus defines the observed state of Longhorn - VolumeAttachment + description: VolumeAttachmentStatus defines the observed state of Longhorn VolumeAttachment properties: attachmentTicketStatuses: additionalProperties: @@ -4172,16 +4308,13 @@ spec: description: Last time we probed the condition. type: string lastTransitionTime: - description: Last time the condition transitioned from - one status to another. + description: Last time the condition transitioned from one status to another. type: string message: - description: Human-readable message indicating details - about last transition. + description: Human-readable message indicating details about last transition. type: string reason: - description: Unique, one-word, CamelCase reason for the - condition's last transition. + description: Unique, one-word, CamelCase reason for the condition's last transition. type: string status: description: |- @@ -4201,12 +4334,10 @@ spec: format: int64 type: integer id: - description: The unique ID of this attachment. Used to differentiate - different attachments of the same volume. + description: The unique ID of this attachment. Used to differentiate different attachments of the same volume. type: string satisfied: - description: Indicate whether this attachment ticket has been - satisfied + description: Indicate whether this attachment ticket has been satisfied type: boolean required: - conditions @@ -4407,8 +4538,7 @@ spec: description: 'Deprecated: Replaced by field `image`.' type: string freezeFilesystemForSnapshot: - description: Setting that freezes the filesystem on the root partition - before a snapshot is created. + description: Setting that freezes the filesystem on the root partition before a snapshot is created. enum: - ignored - enabled @@ -4447,24 +4577,21 @@ spec: - best-effort type: string replicaDiskSoftAntiAffinity: - description: Replica disk soft anti affinity of the volume. Set enabled - to allow replicas to be scheduled in the same disk. + description: Replica disk soft anti affinity of the volume. Set enabled to allow replicas to be scheduled in the same disk. enum: - ignored - enabled - disabled type: string replicaSoftAntiAffinity: - description: Replica soft anti affinity of the volume. Set enabled - to allow replicas to be scheduled on the same node. + description: Replica soft anti affinity of the volume. Set enabled to allow replicas to be scheduled on the same node. enum: - ignored - enabled - disabled type: string replicaZoneSoftAntiAffinity: - description: Replica zone soft anti affinity of the volume. Set enabled - to allow replicas to be scheduled in the same zone. + description: Replica zone soft anti affinity of the volume. Set enabled to allow replicas to be scheduled in the same zone. enum: - ignored - enabled @@ -4495,6 +4622,8 @@ spec: type: string staleReplicaTimeout: type: integer + targetNodeID: + type: string unmapMarkSnapChainRemoved: enum: - ignored @@ -4528,16 +4657,13 @@ spec: description: Last time we probed the condition. type: string lastTransitionTime: - description: Last time the condition transitioned from one status - to another. + description: Last time the condition transitioned from one status to another. type: string message: - description: Human-readable message indicating details about - last transition. + description: Human-readable message indicating details about last transition. type: string reason: - description: Unique, one-word, CamelCase reason for the condition's - last transition. + description: Unique, one-word, CamelCase reason for the condition's last transition. type: string status: description: |- @@ -4557,6 +4683,8 @@ spec: type: string currentNodeID: type: string + currentTargetNodeID: + type: string expansionRequired: type: boolean frontendDisabled: @@ -4675,7 +4803,8 @@ rules: "backuptargets", "backuptargets/status", "backupvolumes", "backupvolumes/status", "backups", "backups/status", "recurringjobs", "recurringjobs/status", "orphans", "orphans/status", "snapshots", "snapshots/status", "supportbundles", "supportbundles/status", "systembackups", "systembackups/status", "systemrestores", "systemrestores/status", - "volumeattachments", "volumeattachments/status", "backupbackingimages", "backupbackingimages/status"] + "volumeattachments", "volumeattachments/status", "backupbackingimages", "backupbackingimages/status", + "dataengineupgrademanagers", "dataengineupgrademanagers/status", "nodedataengineupgrades", "nodedataengineupgrades/status"] verbs: ["*"] - apiGroups: ["coordination.k8s.io"] resources: ["leases"] diff --git a/deploy/longhorn.yaml b/deploy/longhorn.yaml index aedc73eecd..95f762187d 100644 --- a/deploy/longhorn.yaml +++ b/deploy/longhorn.yaml @@ -123,8 +123,7 @@ spec: scope: Namespaced versions: - additionalPrinterColumns: - - description: The current state of the pod used to provision the backing image - file from source + - description: The current state of the pod used to provision the backing image file from source jsonPath: .status.currentState name: State type: string @@ -146,8 +145,7 @@ spec: name: v1beta1 schema: openAPIV3Schema: - description: BackingImageDataSource is where Longhorn stores backing image - data source object. + description: BackingImageDataSource is where Longhorn stores backing image data source object. properties: apiVersion: description: |- @@ -180,8 +178,7 @@ spec: jsonPath: .spec.uuid name: UUID type: string - - description: The current state of the pod used to provision the backing image - file from source + - description: The current state of the pod used to provision the backing image file from source jsonPath: .status.currentState name: State type: string @@ -207,8 +204,7 @@ spec: name: v1beta2 schema: openAPIV3Schema: - description: BackingImageDataSource is where Longhorn stores backing image - data source object. + description: BackingImageDataSource is where Longhorn stores backing image data source object. properties: apiVersion: description: |- @@ -228,8 +224,7 @@ spec: metadata: type: object spec: - description: BackingImageDataSourceSpec defines the desired state of the - Longhorn backing image data source + description: BackingImageDataSourceSpec defines the desired state of the Longhorn backing image data source properties: checksum: type: string @@ -257,8 +252,7 @@ spec: type: string type: object status: - description: BackingImageDataSourceStatus defines the observed state of - the Longhorn backing image data source + description: BackingImageDataSourceStatus defines the observed state of the Longhorn backing image data source properties: checksum: type: string @@ -339,8 +333,7 @@ spec: name: v1beta1 schema: openAPIV3Schema: - description: BackingImageManager is where Longhorn stores backing image manager - object. + description: BackingImageManager is where Longhorn stores backing image manager object. properties: apiVersion: description: |- @@ -395,8 +388,7 @@ spec: name: v1beta2 schema: openAPIV3Schema: - description: BackingImageManager is where Longhorn stores backing image manager - object. + description: BackingImageManager is where Longhorn stores backing image manager object. properties: apiVersion: description: |- @@ -416,8 +408,7 @@ spec: metadata: type: object spec: - description: BackingImageManagerSpec defines the desired state of the - Longhorn backing image manager + description: BackingImageManagerSpec defines the desired state of the Longhorn backing image manager properties: backingImages: additionalProperties: @@ -433,8 +424,7 @@ spec: type: string type: object status: - description: BackingImageManagerStatus defines the observed state of the - Longhorn backing image manager + description: BackingImageManagerStatus defines the observed state of the Longhorn backing image manager properties: apiMinVersion: type: integer @@ -603,8 +593,7 @@ spec: metadata: type: object spec: - description: BackingImageSpec defines the desired state of the Longhorn - backing image + description: BackingImageSpec defines the desired state of the Longhorn backing image properties: checksum: type: string @@ -622,8 +611,7 @@ spec: disks: additionalProperties: type: string - description: Deprecated. We are now using DiskFileSpecMap to assign - different spec to the file on different disks. + description: Deprecated. We are now using DiskFileSpecMap to assign different spec to the file on different disks. type: object minNumberOfCopies: type: integer @@ -649,8 +637,7 @@ spec: type: string type: object status: - description: BackingImageStatus defines the observed state of the Longhorn - backing image status + description: BackingImageStatus defines the observed state of the Longhorn backing image status properties: checksum: type: string @@ -676,8 +663,7 @@ spec: ownerID: type: string realSize: - description: Real size of image in bytes, which may be smaller than the size - when the file is a sparse file. Will be zero until known (e.g. while a backing image is uploading) + description: Real size of image in bytes, which may be smaller than the size when the file is a sparse file. Will be zero until known (e.g. while a backing image is uploading) format: int64 type: integer size: @@ -686,8 +672,7 @@ spec: uuid: type: string virtualSize: - description: Virtual size of image in bytes, which may be larger than physical - size. Will be zero until known (e.g. while a backing image is uploading) + description: Virtual size of image in bytes, which may be larger than physical size. Will be zero until known (e.g. while a backing image is uploading) format: int64 type: integer type: object @@ -744,8 +729,7 @@ spec: name: v1beta2 schema: openAPIV3Schema: - description: BackupBackingImage is where Longhorn stores backing image backup - object. + description: BackupBackingImage is where Longhorn stores backing image backup object. properties: apiVersion: description: |- @@ -765,8 +749,7 @@ spec: metadata: type: object spec: - description: BackupBackingImageSpec defines the desired state of the Longhorn - backing image backup + description: BackupBackingImageSpec defines the desired state of the Longhorn backing image backup properties: labels: additionalProperties: @@ -774,8 +757,7 @@ spec: description: The labels of backing image backup. type: object syncRequestedAt: - description: The time to request run sync the remote backing image - backup. + description: The time to request run sync the remote backing image backup. format: date-time nullable: true type: string @@ -788,8 +770,7 @@ spec: - userCreated type: object status: - description: BackupBackingImageStatus defines the observed state of the - Longhorn backing image backup + description: BackupBackingImageStatus defines the observed state of the Longhorn backing image backup properties: backingImage: description: The backing image name. @@ -813,25 +794,21 @@ spec: nullable: true type: object lastSyncedAt: - description: The last time that the backing image backup was synced - with the remote backup target. + description: The last time that the backing image backup was synced with the remote backup target. format: date-time nullable: true type: string managerAddress: - description: The address of the backing image manager that runs backing - image backup. + description: The address of the backing image manager that runs backing image backup. type: string messages: additionalProperties: type: string - description: The error messages when listing or inspecting backing - image backup. + description: The error messages when listing or inspecting backing image backup. nullable: true type: object ownerID: - description: The node ID on which the controller is responsible to - reconcile this CR. + description: The node ID on which the controller is responsible to reconcile this CR. type: string progress: description: The backing image backup progress. @@ -1024,24 +1001,21 @@ spec: nullable: true type: object lastSyncedAt: - description: The last time that the backup was synced with the remote - backup target. + description: The last time that the backup was synced with the remote backup target. format: date-time nullable: true type: string messages: additionalProperties: type: string - description: The error messages when calling longhorn engine on listing - or inspecting backups. + description: The error messages when calling longhorn engine on listing or inspecting backups. nullable: true type: object newlyUploadDataSize: description: Size in bytes of newly uploaded data type: string ownerID: - description: The node ID on which the controller is responsible to - reconcile this backup CR. + description: The node ID on which the controller is responsible to reconcile this backup CR. type: string progress: description: The snapshot backup progress. @@ -1219,8 +1193,7 @@ spec: metadata: type: object spec: - description: BackupTargetSpec defines the desired state of the Longhorn - backup target + description: BackupTargetSpec defines the desired state of the Longhorn backup target properties: backupTargetURL: description: The backup target URL. @@ -1229,8 +1202,7 @@ spec: description: The backup target credential secret. type: string pollInterval: - description: The interval that the cluster needs to run sync with - the backup target. + description: The interval that the cluster needs to run sync with the backup target. type: string syncRequestedAt: description: The time to request run sync the remote backup target. @@ -1239,12 +1211,10 @@ spec: type: string type: object status: - description: BackupTargetStatus defines the observed state of the Longhorn - backup target + description: BackupTargetStatus defines the observed state of the Longhorn backup target properties: available: - description: Available indicates if the remote backup target is available - or not. + description: Available indicates if the remote backup target is available or not. type: boolean conditions: description: Records the reason on why the backup target is unavailable. @@ -1254,16 +1224,13 @@ spec: description: Last time we probed the condition. type: string lastTransitionTime: - description: Last time the condition transitioned from one status - to another. + description: Last time the condition transitioned from one status to another. type: string message: - description: Human-readable message indicating details about - last transition. + description: Human-readable message indicating details about last transition. type: string reason: - description: Unique, one-word, CamelCase reason for the condition's - last transition. + description: Unique, one-word, CamelCase reason for the condition's last transition. type: string status: description: |- @@ -1277,14 +1244,12 @@ spec: nullable: true type: array lastSyncedAt: - description: The last time that the controller synced with the remote - backup target. + description: The last time that the controller synced with the remote backup target. format: date-time nullable: true type: string ownerID: - description: The node ID on which the controller is responsible to - reconcile this backup target CR. + description: The node ID on which the controller is responsible to reconcile this backup target CR. type: string type: object type: object @@ -1404,8 +1369,7 @@ spec: metadata: type: object spec: - description: BackupVolumeSpec defines the desired state of the Longhorn - backup volume + description: BackupVolumeSpec defines the desired state of the Longhorn backup volume properties: syncRequestedAt: description: The time to request run sync the remote backup volume. @@ -1414,8 +1378,7 @@ spec: type: string type: object status: - description: BackupVolumeStatus defines the observed state of the Longhorn - backup volume + description: BackupVolumeStatus defines the observed state of the Longhorn backup volume properties: backingImageChecksum: description: the backing image checksum. @@ -1447,21 +1410,18 @@ spec: nullable: true type: string lastSyncedAt: - description: The last time that the backup volume was synced into - the cluster. + description: The last time that the backup volume was synced into the cluster. format: date-time nullable: true type: string messages: additionalProperties: type: string - description: The error messages when call longhorn engine on list - or inspect backup volumes. + description: The error messages when call longhorn engine on list or inspect backup volumes. nullable: true type: object ownerID: - description: The node ID on which the controller is responsible to - reconcile this backup volume CR. + description: The node ID on which the controller is responsible to reconcile this backup volume CR. type: string size: description: The backup volume size. @@ -1479,6 +1439,108 @@ spec: # Source: longhorn/templates/crds.yaml apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition +metadata: + annotations: + controller-gen.kubebuilder.io/version: v0.15.0 + labels: + app.kubernetes.io/name: longhorn + app.kubernetes.io/instance: longhorn + app.kubernetes.io/version: v1.8.0-dev + longhorn-manager: "" + name: dataengineupgrademanagers.longhorn.io +spec: + group: longhorn.io + names: + kind: DataEngineUpgradeManager + listKind: DataEngineUpgradeManagerList + plural: dataengineupgrademanagers + shortNames: + - lhum + singular: dataengineupgrademanager + scope: Namespaced + versions: + - additionalPrinterColumns: + - description: The node that the upgrade manager is being performed on + jsonPath: .status.ownerID + name: Node + type: string + - description: The data engine targeted for upgrade + jsonPath: .spec.dataEngine + name: Data Engine + type: string + - description: The current state of the upgrade process + jsonPath: .status.state + name: State + type: string + - description: The node that is currently being upgraded + jsonPath: .status.upgradingNode + name: Upgrading Node + type: string + name: v1beta2 + schema: + openAPIV3Schema: + description: DataEngineUpgradeManager is where Longhorn stores upgrade manager object. + properties: + apiVersion: + description: |- + APIVersion defines the versioned schema of this representation of an object. + Servers should convert recognized schemas to the latest internal value, and + may reject unrecognized values. + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + type: string + kind: + description: |- + Kind is a string value representing the REST resource this object represents. + Servers may infer this from the endpoint the client submits requests to. + Cannot be updated. + In CamelCase. + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + type: string + metadata: + type: object + spec: + description: DataEngineUpgradeManagerSpec defines the desired state of the upgrade manager resource + properties: + dataEngine: + type: string + nodes: + items: + type: string + type: array + type: object + status: + description: DataEngineUpgradeManagerStatus defines the observed state of the upgrade manager resource + properties: + errorMessage: + type: string + instanceManagerImage: + type: string + ownerID: + type: string + state: + type: string + upgradeNodes: + additionalProperties: + description: UpgradeState defines the state of the node upgrade process + properties: + errorMessage: + type: string + state: + type: string + type: object + type: object + upgradingNode: + type: string + type: object + type: object + served: true + storage: true + subresources: + status: {} +--- +# Source: longhorn/templates/crds.yaml +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition metadata: annotations: controller-gen.kubebuilder.io/version: v0.15.0 @@ -1610,8 +1672,7 @@ spec: metadata: type: object spec: - description: EngineImageSpec defines the desired state of the Longhorn - engine image + description: EngineImageSpec defines the desired state of the Longhorn engine image properties: image: minLength: 1 @@ -1620,8 +1681,7 @@ spec: - image type: object status: - description: EngineImageStatus defines the observed state of the Longhorn - engine image + description: EngineImageStatus defines the observed state of the Longhorn engine image properties: buildDate: type: string @@ -1636,16 +1696,13 @@ spec: description: Last time we probed the condition. type: string lastTransitionTime: - description: Last time the condition transitioned from one status - to another. + description: Last time the condition transitioned from one status to another. type: string message: - description: Human-readable message indicating details about - last transition. + description: Human-readable message indicating details about last transition. type: string reason: - description: Unique, one-word, CamelCase reason for the condition's - last transition. + description: Unique, one-word, CamelCase reason for the condition's last transition. type: string status: description: |- @@ -1865,6 +1922,8 @@ spec: snapshotMaxSize: format: int64 type: string + targetNodeID: + type: string unmapMarkSnapChainRemovedEnabled: type: boolean upgradedReplicaAddressMap: @@ -1923,16 +1982,13 @@ spec: description: Last time we probed the condition. type: string lastTransitionTime: - description: Last time the condition transitioned from one status - to another. + description: Last time the condition transitioned from one status to another. type: string message: - description: Human-readable message indicating details about - last transition. + description: Human-readable message indicating details about last transition. type: string reason: - description: Unique, one-word, CamelCase reason for the condition's - last transition. + description: Unique, one-word, CamelCase reason for the condition's last transition. type: string status: description: |- @@ -1957,6 +2013,8 @@ spec: type: string currentState: type: string + currentTargetNodeID: + type: string endpoint: type: string instanceManagerName: @@ -2083,6 +2141,14 @@ spec: type: boolean storageIP: type: string + storageTargetIP: + type: string + targetIP: + type: string + targetInstanceReplacementCreated: + type: boolean + targetPort: + type: integer unmapMarkSnapChainRemovedEnabled: type: boolean type: object @@ -2206,8 +2272,7 @@ spec: metadata: type: object spec: - description: InstanceManagerSpec defines the desired state of the Longhorn - instance manager + description: InstanceManagerSpec defines the desired state of the Longhorn instance manager properties: dataEngine: type: string @@ -2231,8 +2296,7 @@ spec: type: string type: object status: - description: InstanceManagerStatus defines the observed state of the Longhorn - instance manager + description: InstanceManagerStatus defines the observed state of the Longhorn instance manager properties: apiMinVersion: type: integer @@ -2283,6 +2347,12 @@ spec: resourceVersion: format: int64 type: integer + standbyTargetPortEnd: + format: int32 + type: integer + standbyTargetPortStart: + format: int32 + type: integer state: type: string targetPortEnd: @@ -2332,6 +2402,12 @@ spec: resourceVersion: format: int64 type: integer + standbyTargetPortEnd: + format: int32 + type: integer + standbyTargetPortStart: + format: int32 + type: integer state: type: string targetPortEnd: @@ -2381,6 +2457,12 @@ spec: resourceVersion: format: int64 type: integer + standbyTargetPortEnd: + format: int32 + type: integer + standbyTargetPortStart: + format: int32 + type: integer state: type: string targetPortEnd: @@ -2414,6 +2496,101 @@ spec: # Source: longhorn/templates/crds.yaml apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition +metadata: + annotations: + controller-gen.kubebuilder.io/version: v0.15.0 + labels: + app.kubernetes.io/name: longhorn + app.kubernetes.io/instance: longhorn + app.kubernetes.io/version: v1.8.0-dev + longhorn-manager: "" + name: nodedataengineupgrades.longhorn.io +spec: + group: longhorn.io + names: + kind: NodeDataEngineUpgrade + listKind: NodeDataEngineUpgradeList + plural: nodedataengineupgrades + shortNames: + - lhnu + singular: nodedataengineupgrade + scope: Namespaced + versions: + - additionalPrinterColumns: + - description: The node that the upgrade is being performed on + jsonPath: .status.ownerID + name: Node + type: string + - description: The data engine targeted for node upgrade + jsonPath: .spec.dataEngine + name: Data Engine + type: string + - description: The current state of the node upgrade process + jsonPath: .status.state + name: State + type: string + name: v1beta2 + schema: + openAPIV3Schema: + description: NodeDataEngineUpgrade is where Longhorn stores node upgrade object. + properties: + apiVersion: + description: |- + APIVersion defines the versioned schema of this representation of an object. + Servers should convert recognized schemas to the latest internal value, and + may reject unrecognized values. + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + type: string + kind: + description: |- + Kind is a string value representing the REST resource this object represents. + Servers may infer this from the endpoint the client submits requests to. + Cannot be updated. + In CamelCase. + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + type: string + metadata: + type: object + spec: + description: NodeDataEngineUpgradeSpec defines the desired state of the node data engine upgrade resource + properties: + dataEngine: + type: string + dataEngineUpgradeManager: + type: string + instanceManagerImage: + type: string + nodeID: + type: string + type: object + status: + description: NodeDataEngineUpgradeStatus defines the observed state of the node upgrade resource + properties: + errorMessage: + type: string + ownerID: + type: string + state: + type: string + volumes: + additionalProperties: + properties: + errorMessage: + type: string + state: + type: string + type: object + type: object + type: object + type: object + served: true + storage: true + subresources: + status: {} +--- +# Source: longhorn/templates/crds.yaml +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition metadata: annotations: controller-gen.kubebuilder.io/version: v0.15.0 @@ -2452,8 +2629,7 @@ spec: jsonPath: .status.conditions['Ready']['status'] name: Ready type: string - - description: Indicate whether the user disabled/enabled replica scheduling for - the node + - description: Indicate whether the user disabled/enabled replica scheduling for the node jsonPath: .spec.allowScheduling name: AllowScheduling type: boolean @@ -2500,8 +2676,7 @@ spec: jsonPath: .status.conditions[?(@.type=='Ready')].status name: Ready type: string - - description: Indicate whether the user disabled/enabled replica scheduling for - the node + - description: Indicate whether the user disabled/enabled replica scheduling for the node jsonPath: .spec.allowScheduling name: AllowScheduling type: boolean @@ -2578,6 +2753,9 @@ spec: items: type: string type: array + upgradeRequested: + description: Request to upgrade the instance manager for v2 volumes on the node. + type: boolean type: object status: description: NodeStatus defines the observed state of the Longhorn node @@ -2591,16 +2769,13 @@ spec: description: Last time we probed the condition. type: string lastTransitionTime: - description: Last time the condition transitioned from one status - to another. + description: Last time the condition transitioned from one status to another. type: string message: - description: Human-readable message indicating details about - last transition. + description: Human-readable message indicating details about last transition. type: string reason: - description: Unique, one-word, CamelCase reason for the condition's - last transition. + description: Unique, one-word, CamelCase reason for the condition's last transition. type: string status: description: |- @@ -2623,16 +2798,13 @@ spec: description: Last time we probed the condition. type: string lastTransitionTime: - description: Last time the condition transitioned from - one status to another. + description: Last time the condition transitioned from one status to another. type: string message: - description: Human-readable message indicating details - about last transition. + description: Human-readable message indicating details about last transition. type: string reason: - description: Unique, one-word, CamelCase reason for the - condition's last transition. + description: Unique, one-word, CamelCase reason for the condition's last transition. type: string status: description: |- @@ -2707,9 +2879,6 @@ metadata: annotations: controller-gen.kubebuilder.io/version: v0.15.0 labels: - app.kubernetes.io/name: longhorn - app.kubernetes.io/instance: longhorn - app.kubernetes.io/version: v1.8.0-dev longhorn-manager: "" name: orphans.longhorn.io spec: @@ -2755,12 +2924,10 @@ spec: metadata: type: object spec: - description: OrphanSpec defines the desired state of the Longhorn orphaned - data + description: OrphanSpec defines the desired state of the Longhorn orphaned data properties: nodeID: - description: The node ID on which the controller is responsible to - reconcile this orphan CR. + description: The node ID on which the controller is responsible to reconcile this orphan CR. type: string orphanType: description: |- @@ -2774,8 +2941,7 @@ spec: type: object type: object status: - description: OrphanStatus defines the observed state of the Longhorn orphaned - data + description: OrphanStatus defines the observed state of the Longhorn orphaned data properties: conditions: items: @@ -2784,16 +2950,13 @@ spec: description: Last time we probed the condition. type: string lastTransitionTime: - description: Last time the condition transitioned from one status - to another. + description: Last time the condition transitioned from one status to another. type: string message: - description: Human-readable message indicating details about - last transition. + description: Human-readable message indicating details about last transition. type: string reason: - description: Unique, one-word, CamelCase reason for the condition's - last transition. + description: Unique, one-word, CamelCase reason for the condition's last transition. type: string status: description: |- @@ -2839,8 +3002,7 @@ spec: scope: Namespaced versions: - additionalPrinterColumns: - - description: Sets groupings to the jobs. When set to "default" group will be - added to the volume label when no other job label exist in volume + - description: Sets groupings to the jobs. When set to "default" group will be added to the volume label when no other job label exist in volume jsonPath: .spec.groups name: Groups type: string @@ -2899,13 +3061,11 @@ spec: subresources: status: {} - additionalPrinterColumns: - - description: Sets groupings to the jobs. When set to "default" group will be - added to the volume label when no other job label exist in volume + - description: Sets groupings to the jobs. When set to "default" group will be added to the volume label when no other job label exist in volume jsonPath: .spec.groups name: Groups type: string - - description: Should be one of "snapshot", "snapshot-force-create", "snapshot-cleanup", - "snapshot-delete", "backup", "backup-force-create" or "filesystem-trim" + - description: Should be one of "snapshot", "snapshot-force-create", "snapshot-cleanup", "snapshot-delete", "backup", "backup-force-create" or "filesystem-trim" jsonPath: .spec.task name: Task type: string @@ -2951,8 +3111,7 @@ spec: metadata: type: object spec: - description: RecurringJobSpec defines the desired state of the Longhorn - recurring job + description: RecurringJobSpec defines the desired state of the Longhorn recurring job properties: concurrency: description: The concurrency of taking the snapshot/backup. @@ -2998,15 +3157,13 @@ spec: type: string type: object status: - description: RecurringJobStatus defines the observed state of the Longhorn - recurring job + description: RecurringJobStatus defines the observed state of the Longhorn recurring job properties: executionCount: description: The number of jobs that have been triggered. type: integer ownerID: - description: The owner ID which is responsible to reconcile this recurring - job CR. + description: The owner ID which is responsible to reconcile this recurring job CR. type: string type: object type: object @@ -3228,6 +3385,8 @@ spec: snapshotMaxSize: format: int64 type: string + targetNodeID: + type: string unmapMarkDiskChainRemovedEnabled: type: boolean volumeName: @@ -3237,8 +3396,7 @@ spec: type: string type: object status: - description: ReplicaStatus defines the observed state of the Longhorn - replica + description: ReplicaStatus defines the observed state of the Longhorn replica properties: conditions: items: @@ -3247,16 +3405,13 @@ spec: description: Last time we probed the condition. type: string lastTransitionTime: - description: Last time the condition transitioned from one status - to another. + description: Last time the condition transitioned from one status to another. type: string message: - description: Human-readable message indicating details about - last transition. + description: Human-readable message indicating details about last transition. type: string reason: - description: Unique, one-word, CamelCase reason for the condition's - last transition. + description: Unique, one-word, CamelCase reason for the condition's last transition. type: string status: description: |- @@ -3273,6 +3428,8 @@ spec: type: string currentState: type: string + currentTargetNodeID: + type: string evictionRequested: description: 'Deprecated: Replaced by field `spec.evictionRequested`.' type: boolean @@ -3292,6 +3449,14 @@ spec: type: boolean storageIP: type: string + storageTargetIP: + type: string + targetIP: + type: string + targetInstanceReplacementCreated: + type: boolean + targetPort: + type: integer type: object type: object served: true @@ -3517,25 +3682,20 @@ spec: metadata: type: object spec: - description: ShareManagerSpec defines the desired state of the Longhorn - share manager + description: ShareManagerSpec defines the desired state of the Longhorn share manager properties: image: - description: Share manager image used for creating a share manager - pod + description: Share manager image used for creating a share manager pod type: string type: object status: - description: ShareManagerStatus defines the observed state of the Longhorn - share manager + description: ShareManagerStatus defines the observed state of the Longhorn share manager properties: endpoint: - description: NFS endpoint that can access the mounted filesystem of - the volume + description: NFS endpoint that can access the mounted filesystem of the volume type: string ownerID: - description: The node ID on which the controller is responsible to - reconcile this share manager resource + description: The node ID on which the controller is responsible to reconcile this share manager resource type: string state: description: The state of the share manager resource @@ -3579,13 +3739,11 @@ spec: jsonPath: .status.creationTime name: CreationTime type: string - - description: Indicates if the snapshot is ready to be used to restore/backup - a volume + - description: Indicates if the snapshot is ready to be used to restore/backup a volume jsonPath: .status.readyToUse name: ReadyToUse type: boolean - - description: Represents the minimum size of volume required to rehydrate from - this snapshot + - description: Represents the minimum size of volume required to rehydrate from this snapshot jsonPath: .status.restoreSize name: RestoreSize type: string @@ -3743,8 +3901,7 @@ spec: metadata: type: object spec: - description: SupportBundleSpec defines the desired state of the Longhorn - SupportBundle + description: SupportBundleSpec defines the desired state of the Longhorn SupportBundle properties: description: description: A brief description of the issue @@ -3760,8 +3917,7 @@ spec: - description type: object status: - description: SupportBundleStatus defines the observed state of the Longhorn - SupportBundle + description: SupportBundleStatus defines the observed state of the Longhorn SupportBundle properties: conditions: items: @@ -3770,16 +3926,13 @@ spec: description: Last time we probed the condition. type: string lastTransitionTime: - description: Last time the condition transitioned from one status - to another. + description: Last time the condition transitioned from one status to another. type: string message: - description: Human-readable message indicating details about - last transition. + description: Human-readable message indicating details about last transition. type: string reason: - description: Unique, one-word, CamelCase reason for the condition's - last transition. + description: Unique, one-word, CamelCase reason for the condition's last transition. type: string status: description: |- @@ -3879,8 +4032,7 @@ spec: metadata: type: object spec: - description: SystemBackupSpec defines the desired state of the Longhorn - SystemBackup + description: SystemBackupSpec defines the desired state of the Longhorn SystemBackup properties: volumeBackupPolicy: description: |- @@ -3890,8 +4042,7 @@ spec: type: string type: object status: - description: SystemBackupStatus defines the observed state of the Longhorn - SystemBackup + description: SystemBackupStatus defines the observed state of the Longhorn SystemBackup properties: conditions: items: @@ -3900,16 +4051,13 @@ spec: description: Last time we probed the condition. type: string lastTransitionTime: - description: Last time the condition transitioned from one status - to another. + description: Last time the condition transitioned from one status to another. type: string message: - description: Human-readable message indicating details about - last transition. + description: Human-readable message indicating details about last transition. type: string reason: - description: Unique, one-word, CamelCase reason for the condition's - last transition. + description: Unique, one-word, CamelCase reason for the condition's last transition. type: string status: description: |- @@ -3931,8 +4079,7 @@ spec: nullable: true type: string lastSyncedAt: - description: The last time that the system backup was synced into - the cluster. + description: The last time that the system backup was synced into the cluster. format: date-time nullable: true type: string @@ -3940,8 +4087,7 @@ spec: description: The saved manager image. type: string ownerID: - description: The node ID of the responsible controller to reconcile - this SystemBackup. + description: The node ID of the responsible controller to reconcile this SystemBackup. type: string state: description: The system backup state. @@ -4011,8 +4157,7 @@ spec: metadata: type: object spec: - description: SystemRestoreSpec defines the desired state of the Longhorn - SystemRestore + description: SystemRestoreSpec defines the desired state of the Longhorn SystemRestore properties: systemBackup: description: The system backup name in the object store. @@ -4021,8 +4166,7 @@ spec: - systemBackup type: object status: - description: SystemRestoreStatus defines the observed state of the Longhorn - SystemRestore + description: SystemRestoreStatus defines the observed state of the Longhorn SystemRestore properties: conditions: items: @@ -4031,16 +4175,13 @@ spec: description: Last time we probed the condition. type: string lastTransitionTime: - description: Last time the condition transitioned from one status - to another. + description: Last time the condition transitioned from one status to another. type: string message: - description: Human-readable message indicating details about - last transition. + description: Human-readable message indicating details about last transition. type: string reason: - description: Unique, one-word, CamelCase reason for the condition's - last transition. + description: Unique, one-word, CamelCase reason for the condition's last transition. type: string status: description: |- @@ -4054,8 +4195,7 @@ spec: nullable: true type: array ownerID: - description: The node ID of the responsible controller to reconcile - this SystemRestore. + description: The node ID of the responsible controller to reconcile this SystemRestore. type: string sourceURL: description: The source system backup URL. @@ -4100,8 +4240,7 @@ spec: name: v1beta2 schema: openAPIV3Schema: - description: VolumeAttachment stores attachment information of a Longhorn - volume + description: VolumeAttachment stores attachment information of a Longhorn volume properties: apiVersion: description: |- @@ -4121,8 +4260,7 @@ spec: metadata: type: object spec: - description: VolumeAttachmentSpec defines the desired state of Longhorn - VolumeAttachment + description: VolumeAttachmentSpec defines the desired state of Longhorn VolumeAttachment properties: attachmentTickets: additionalProperties: @@ -4134,8 +4272,7 @@ spec: format: int64 type: integer id: - description: The unique ID of this attachment. Used to differentiate - different attachments of the same volume. + description: The unique ID of this attachment. Used to differentiate different attachments of the same volume. type: string nodeID: description: The node that this attachment is requesting @@ -4156,8 +4293,7 @@ spec: - volume type: object status: - description: VolumeAttachmentStatus defines the observed state of Longhorn - VolumeAttachment + description: VolumeAttachmentStatus defines the observed state of Longhorn VolumeAttachment properties: attachmentTicketStatuses: additionalProperties: @@ -4170,16 +4306,13 @@ spec: description: Last time we probed the condition. type: string lastTransitionTime: - description: Last time the condition transitioned from - one status to another. + description: Last time the condition transitioned from one status to another. type: string message: - description: Human-readable message indicating details - about last transition. + description: Human-readable message indicating details about last transition. type: string reason: - description: Unique, one-word, CamelCase reason for the - condition's last transition. + description: Unique, one-word, CamelCase reason for the condition's last transition. type: string status: description: |- @@ -4199,12 +4332,10 @@ spec: format: int64 type: integer id: - description: The unique ID of this attachment. Used to differentiate - different attachments of the same volume. + description: The unique ID of this attachment. Used to differentiate different attachments of the same volume. type: string satisfied: - description: Indicate whether this attachment ticket has been - satisfied + description: Indicate whether this attachment ticket has been satisfied type: boolean required: - conditions @@ -4405,8 +4536,7 @@ spec: description: 'Deprecated: Replaced by field `image`.' type: string freezeFilesystemForSnapshot: - description: Setting that freezes the filesystem on the root partition - before a snapshot is created. + description: Setting that freezes the filesystem on the root partition before a snapshot is created. enum: - ignored - enabled @@ -4445,24 +4575,21 @@ spec: - best-effort type: string replicaDiskSoftAntiAffinity: - description: Replica disk soft anti affinity of the volume. Set enabled - to allow replicas to be scheduled in the same disk. + description: Replica disk soft anti affinity of the volume. Set enabled to allow replicas to be scheduled in the same disk. enum: - ignored - enabled - disabled type: string replicaSoftAntiAffinity: - description: Replica soft anti affinity of the volume. Set enabled - to allow replicas to be scheduled on the same node. + description: Replica soft anti affinity of the volume. Set enabled to allow replicas to be scheduled on the same node. enum: - ignored - enabled - disabled type: string replicaZoneSoftAntiAffinity: - description: Replica zone soft anti affinity of the volume. Set enabled - to allow replicas to be scheduled in the same zone. + description: Replica zone soft anti affinity of the volume. Set enabled to allow replicas to be scheduled in the same zone. enum: - ignored - enabled @@ -4493,6 +4620,8 @@ spec: type: string staleReplicaTimeout: type: integer + targetNodeID: + type: string unmapMarkSnapChainRemoved: enum: - ignored @@ -4526,16 +4655,13 @@ spec: description: Last time we probed the condition. type: string lastTransitionTime: - description: Last time the condition transitioned from one status - to another. + description: Last time the condition transitioned from one status to another. type: string message: - description: Human-readable message indicating details about - last transition. + description: Human-readable message indicating details about last transition. type: string reason: - description: Unique, one-word, CamelCase reason for the condition's - last transition. + description: Unique, one-word, CamelCase reason for the condition's last transition. type: string status: description: |- @@ -4555,6 +4681,8 @@ spec: type: string currentNodeID: type: string + currentTargetNodeID: + type: string expansionRequired: type: boolean frontendDisabled: @@ -4672,7 +4800,8 @@ rules: "backuptargets", "backuptargets/status", "backupvolumes", "backupvolumes/status", "backups", "backups/status", "recurringjobs", "recurringjobs/status", "orphans", "orphans/status", "snapshots", "snapshots/status", "supportbundles", "supportbundles/status", "systembackups", "systembackups/status", "systemrestores", "systemrestores/status", - "volumeattachments", "volumeattachments/status", "backupbackingimages", "backupbackingimages/status"] + "volumeattachments", "volumeattachments/status", "backupbackingimages", "backupbackingimages/status", + "dataengineupgrademanagers", "dataengineupgrademanagers/status", "nodedataengineupgrades", "nodedataengineupgrades/status"] verbs: ["*"] - apiGroups: ["coordination.k8s.io"] resources: ["leases"]