From d468e7c8e21e384318991407abce221a6eb09b72 Mon Sep 17 00:00:00 2001 From: Vicente Cheng Date: Thu, 22 Aug 2024 16:36:02 +0800 Subject: [PATCH] chars: update NDM chart v0.7.1 - update the blockdevice CRD with new fields Signed-off-by: Vicente Cheng --- charts/harvester-node-disk-manager/Chart.yaml | 4 +- .../crds/harvesterhci.io_blockdevices.yaml | 83 ++++++++++++------- 2 files changed, 57 insertions(+), 30 deletions(-) diff --git a/charts/harvester-node-disk-manager/Chart.yaml b/charts/harvester-node-disk-manager/Chart.yaml index a23ce6ad..e78c43e0 100644 --- a/charts/harvester-node-disk-manager/Chart.yaml +++ b/charts/harvester-node-disk-manager/Chart.yaml @@ -15,13 +15,13 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.7.0 +version: 0.7.1 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to # follow Semantic Versioning. They should reflect the version the application is using. # It is recommended to use it with quotes. -appVersion: "v0.7.0" +appVersion: "v0.7.1" maintainers: - name: harvester diff --git a/charts/harvester-node-disk-manager/templates/crds/harvesterhci.io_blockdevices.yaml b/charts/harvester-node-disk-manager/templates/crds/harvesterhci.io_blockdevices.yaml index cc09566f..2fa008cf 100644 --- a/charts/harvester-node-disk-manager/templates/crds/harvesterhci.io_blockdevices.yaml +++ b/charts/harvester-node-disk-manager/templates/crds/harvesterhci.io_blockdevices.yaml @@ -1,11 +1,9 @@ - --- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: {} - creationTimestamp: null name: blockdevices.harvesterhci.io spec: group: harvesterhci.io @@ -43,14 +41,19 @@ spec: openAPIV3Schema: 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' + 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' + 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 @@ -66,9 +69,9 @@ spec: overwrite the existing one type: boolean mountPoint: - description: 'DEPRECATED: no longer use and has no effect. a string - with the partition''s mount point, or "" if no mount point was - discovered' + description: |- + DEPRECATED: no longer use and has no effect. + a string with the partition's mount point, or "" if no mount point was discovered type: string provisioned: description: a bool indicating whether the filesystem can be provisioned @@ -84,9 +87,39 @@ spec: nodeName: description: name of the node to which the block device is attached type: string + provisioner: + properties: + longhorn: + description: a provisioner for provision Longhorn volume backend + disk + properties: + engineVersion: + description: a string with the engine version for the provisioner + enum: + - LonghornV1 + - LonghornV2 + type: string + required: + - engineVersion + type: object + lvm: + description: a provisioner for provision LVM volume backend disk + properties: + parameters: + description: a string slice for the parameters + items: + type: string + type: array + vgName: + description: a string with the volume group name for the provisioner + type: string + required: + - vgName + type: object + type: object tags: - description: a string list with device tag for provisioner, e.g. ["default", - "small", "ssd"] + description: a string slice with device tag for provisioner, e.g. + ["default", "small", "ssd"] items: type: string type: array @@ -157,10 +190,9 @@ spec: - part type: string driveType: - description: a string represents the type of drive bus, options - are "HDD", "FDD", "ODD", or "SSD", which correspond to a - hard disk drive (rotational), floppy drive, optical (CD/DVD) - drive and solid-state drive + description: |- + a string represents the type of drive bus, options are "HDD", "FDD", "ODD", or "SSD", + which correspond to a hard disk drive (rotational), floppy drive, optical (CD/DVD) drive and solid-state drive enum: - HDD - FDD @@ -208,9 +240,9 @@ spec: - Unknown type: string uuid: - description: UUID is a filesystem-level UUID, which is retrieved - from the filesystem metadata inside the partition This would - be volume UUID on macOS, PartUUID on linux, empty on Windows + description: |- + UUID is a filesystem-level UUID, which is retrieved from the filesystem metadata inside the partition + This would be volume UUID on macOS, PartUUID on linux, empty on Windows type: string vendor: description: a string with the name of the hardware vendor @@ -254,8 +286,9 @@ spec: - type type: object parentDevice: - description: a string with the parent device path of the disk, - e.g. "/dev/sda" e.g `/dev/sda` is the parent for `/dev/sda1` + description: |- + a string with the parent device path of the disk, e.g. "/dev/sda" + e.g `/dev/sda` is the parent for `/dev/sda1` type: string partitioned: description: a bool indicating if the disk is partitioned @@ -300,9 +333,3 @@ spec: served: true storage: true subresources: {} -status: - acceptedNames: - kind: "" - plural: "" - conditions: [] - storedVersions: []