Skip to content

Commit

Permalink
CRD: add Provisioner field
Browse files Browse the repository at this point in the history
    - Also update the deploy crd for testing

Signed-off-by: Vicente Cheng <[email protected]>
  • Loading branch information
Vicente-Cheng committed Jun 5, 2024
1 parent 969ccdc commit 0641ea6
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ spec:
- jsonPath: .status.deviceStatus.details.deviceType
name: Type
type: string
- jsonPath: .spec.devPath
- jsonPath: .status.deviceStatus.devPath
name: DevPath
type: string
- jsonPath: .status.deviceStatus.fileSystem.mountPoint
Expand Down Expand Up @@ -84,8 +84,13 @@ spec:
nodeName:
description: name of the node to which the block device is attached
type: string
provisioner:
description: a string with the provisioner name, e.g. "Longhornv1,
Longhornv2 or LocalLVM"
type: string
tags:
description: a string with for device tag for provisioner, e.g. "default,small,ssd"
description: a string list with device tag for provisioner, e.g. ["default",
"small", "ssd"]
items:
type: string
type: array
Expand Down Expand Up @@ -274,6 +279,10 @@ spec:
- Unprovisioned
- Unprovisioning
type: string
provisioner:
description: a string with the provisioner name, e.g. "Longhornv1,
Longhornv2 or LocalLVM"
type: string
state:
description: the current state of the block device, options are "Active",
"Inactive", or "Unknown"
Expand Down
8 changes: 8 additions & 0 deletions manifests/crds/harvesterhci.io_blockdevices.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ spec:
nodeName:
description: name of the node to which the block device is attached
type: string
provisioner:
description: a string with the provisioner name, e.g. "Longhornv1,
Longhornv2 or LocalLVM"
type: string
tags:
description: a string list with device tag for provisioner, e.g. ["default",
"small", "ssd"]
Expand Down Expand Up @@ -275,6 +279,10 @@ spec:
- Unprovisioned
- Unprovisioning
type: string
provisioner:
description: a string with the provisioner name, e.g. "Longhornv1,
Longhornv2 or LocalLVM"
type: string
state:
description: the current state of the block device, options are "Active",
"Inactive", or "Unknown"
Expand Down
6 changes: 6 additions & 0 deletions pkg/apis/harvesterhci.io/v1beta1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ type BlockDeviceSpec struct {

// a string list with device tag for provisioner, e.g. ["default", "small", "ssd"]
Tags []string `json:"tags,omitempty"`

// a string with the provisioner name, e.g. "Longhornv1, Longhornv2 or LocalLVM"
Provisioner string `json:"provisioner,omitempty"`
}

type BlockDeviceStatus struct {
Expand All @@ -62,6 +65,9 @@ type BlockDeviceStatus struct {

// The current Tags of the blockdevice
Tags []string `json:"tags,omitempty"`

// a string with the provisioner name, e.g. "Longhornv1, Longhornv2 or LocalLVM"
Provisioner string `json:"provisioner,omitempty"`
}

type FilesystemInfo struct {
Expand Down

0 comments on commit 0641ea6

Please sign in to comment.