Skip to content

Commit da803da

Browse files
committed
Add more fields for iops changes
1 parent 5624ed0 commit da803da

File tree

5 files changed

+199
-0
lines changed

5 files changed

+199
-0
lines changed

api/v1/qdrantcluster_types.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1001,6 +1001,17 @@ type NodePVCStatus struct {
10011001
// Events that happened in the last 30 minutes are stored.
10021002
// +optional
10031003
Events []KubernetesEventInfo `json:"events,omitempty"`
1004+
// capacity represents the actual resources of the underlying volume.
1005+
// +optional
1006+
Capacity corev1.ResourceList `json:"capacity,omitempty"`
1007+
// currentVolumeAttributesClassName is the current name of the VolumeAttributesClass the PVC is using.
1008+
// When unset, there is no VolumeAttributeClass applied to this PersistentVolumeClaim
1009+
// +optional
1010+
CurrentVolumeAttributesClassName *string `json:"currentVolumeAttributesClassName,omitempty"`
1011+
// ModifyVolumeStatus represents the status object of ControllerModifyVolume operation.
1012+
// When this is unset, there is no ModifyVolume operation being attempted.
1013+
// +optional
1014+
ModifyVolumeStatus *corev1.ModifyVolumeStatus `json:"modifyVolumeStatus,omitempty"`
10041015
}
10051016

10061017
//+kubebuilder:object:root=true

api/v1/zz_generated.deepcopy.go

Lines changed: 17 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

charts/qdrant-kubernetes-api/templates/region-crds/qdrant.io_qdrantclusters.yaml

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1705,6 +1705,16 @@ spec:
17051705
databasePVCStatus:
17061706
description: Status of the database storage PVC
17071707
properties:
1708+
capacity:
1709+
additionalProperties:
1710+
anyOf:
1711+
- type: integer
1712+
- type: string
1713+
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
1714+
x-kubernetes-int-or-string: true
1715+
description: capacity represents the actual resources of
1716+
the underlying volume.
1717+
type: object
17081718
conditions:
17091719
description: Conditions of the PVC
17101720
items:
@@ -1747,6 +1757,11 @@ spec:
17471757
- type
17481758
type: object
17491759
type: array
1760+
currentVolumeAttributesClassName:
1761+
description: |-
1762+
currentVolumeAttributesClassName is the current name of the VolumeAttributesClass the PVC is using.
1763+
When unset, there is no VolumeAttributeClass applied to this PersistentVolumeClaim
1764+
type: string
17501765
events:
17511766
description: |-
17521767
Recent Kubernetes Events related to the PVC
@@ -1773,6 +1788,33 @@ spec:
17731788
type: string
17741789
type: object
17751790
type: array
1791+
modifyVolumeStatus:
1792+
description: |-
1793+
ModifyVolumeStatus represents the status object of ControllerModifyVolume operation.
1794+
When this is unset, there is no ModifyVolume operation being attempted.
1795+
properties:
1796+
status:
1797+
description: "status is the status of the ControllerModifyVolume
1798+
operation. It can be in any of following states:\n
1799+
- Pending\n Pending indicates that the PersistentVolumeClaim
1800+
cannot be modified due to unmet requirements, such
1801+
as\n the specified VolumeAttributesClass not existing.\n
1802+
- InProgress\n InProgress indicates that the volume
1803+
is being modified.\n - Infeasible\n Infeasible indicates
1804+
that the request has been rejected as invalid by the
1805+
CSI driver. To\n\t resolve the error, a valid VolumeAttributesClass
1806+
needs to be specified.\nNote: New statuses can be
1807+
added in the future. Consumers should check for unknown
1808+
statuses and fail appropriately."
1809+
type: string
1810+
targetVolumeAttributesClassName:
1811+
description: targetVolumeAttributesClassName is the
1812+
name of the VolumeAttributesClass the PVC currently
1813+
being reconciled
1814+
type: string
1815+
required:
1816+
- status
1817+
type: object
17761818
phase:
17771819
description: Status phase of the PVC
17781820
type: string
@@ -1876,6 +1918,16 @@ spec:
18761918
snapshotsPVCStatus:
18771919
description: Status of the snapshots storage PVC
18781920
properties:
1921+
capacity:
1922+
additionalProperties:
1923+
anyOf:
1924+
- type: integer
1925+
- type: string
1926+
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
1927+
x-kubernetes-int-or-string: true
1928+
description: capacity represents the actual resources of
1929+
the underlying volume.
1930+
type: object
18791931
conditions:
18801932
description: Conditions of the PVC
18811933
items:
@@ -1918,6 +1970,11 @@ spec:
19181970
- type
19191971
type: object
19201972
type: array
1973+
currentVolumeAttributesClassName:
1974+
description: |-
1975+
currentVolumeAttributesClassName is the current name of the VolumeAttributesClass the PVC is using.
1976+
When unset, there is no VolumeAttributeClass applied to this PersistentVolumeClaim
1977+
type: string
19211978
events:
19221979
description: |-
19231980
Recent Kubernetes Events related to the PVC
@@ -1944,6 +2001,33 @@ spec:
19442001
type: string
19452002
type: object
19462003
type: array
2004+
modifyVolumeStatus:
2005+
description: |-
2006+
ModifyVolumeStatus represents the status object of ControllerModifyVolume operation.
2007+
When this is unset, there is no ModifyVolume operation being attempted.
2008+
properties:
2009+
status:
2010+
description: "status is the status of the ControllerModifyVolume
2011+
operation. It can be in any of following states:\n
2012+
- Pending\n Pending indicates that the PersistentVolumeClaim
2013+
cannot be modified due to unmet requirements, such
2014+
as\n the specified VolumeAttributesClass not existing.\n
2015+
- InProgress\n InProgress indicates that the volume
2016+
is being modified.\n - Infeasible\n Infeasible indicates
2017+
that the request has been rejected as invalid by the
2018+
CSI driver. To\n\t resolve the error, a valid VolumeAttributesClass
2019+
needs to be specified.\nNote: New statuses can be
2020+
added in the future. Consumers should check for unknown
2021+
statuses and fail appropriately."
2022+
type: string
2023+
targetVolumeAttributesClassName:
2024+
description: targetVolumeAttributesClassName is the
2025+
name of the VolumeAttributesClass the PVC currently
2026+
being reconciled
2027+
type: string
2028+
required:
2029+
- status
2030+
type: object
19472031
phase:
19482032
description: Status phase of the PVC
19492033
type: string

crds/qdrant.io_qdrantclusters.yaml

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1704,6 +1704,16 @@ spec:
17041704
databasePVCStatus:
17051705
description: Status of the database storage PVC
17061706
properties:
1707+
capacity:
1708+
additionalProperties:
1709+
anyOf:
1710+
- type: integer
1711+
- type: string
1712+
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
1713+
x-kubernetes-int-or-string: true
1714+
description: capacity represents the actual resources of
1715+
the underlying volume.
1716+
type: object
17071717
conditions:
17081718
description: Conditions of the PVC
17091719
items:
@@ -1746,6 +1756,11 @@ spec:
17461756
- type
17471757
type: object
17481758
type: array
1759+
currentVolumeAttributesClassName:
1760+
description: |-
1761+
currentVolumeAttributesClassName is the current name of the VolumeAttributesClass the PVC is using.
1762+
When unset, there is no VolumeAttributeClass applied to this PersistentVolumeClaim
1763+
type: string
17491764
events:
17501765
description: |-
17511766
Recent Kubernetes Events related to the PVC
@@ -1772,6 +1787,33 @@ spec:
17721787
type: string
17731788
type: object
17741789
type: array
1790+
modifyVolumeStatus:
1791+
description: |-
1792+
ModifyVolumeStatus represents the status object of ControllerModifyVolume operation.
1793+
When this is unset, there is no ModifyVolume operation being attempted.
1794+
properties:
1795+
status:
1796+
description: "status is the status of the ControllerModifyVolume
1797+
operation. It can be in any of following states:\n
1798+
- Pending\n Pending indicates that the PersistentVolumeClaim
1799+
cannot be modified due to unmet requirements, such
1800+
as\n the specified VolumeAttributesClass not existing.\n
1801+
- InProgress\n InProgress indicates that the volume
1802+
is being modified.\n - Infeasible\n Infeasible indicates
1803+
that the request has been rejected as invalid by the
1804+
CSI driver. To\n\t resolve the error, a valid VolumeAttributesClass
1805+
needs to be specified.\nNote: New statuses can be
1806+
added in the future. Consumers should check for unknown
1807+
statuses and fail appropriately."
1808+
type: string
1809+
targetVolumeAttributesClassName:
1810+
description: targetVolumeAttributesClassName is the
1811+
name of the VolumeAttributesClass the PVC currently
1812+
being reconciled
1813+
type: string
1814+
required:
1815+
- status
1816+
type: object
17751817
phase:
17761818
description: Status phase of the PVC
17771819
type: string
@@ -1875,6 +1917,16 @@ spec:
18751917
snapshotsPVCStatus:
18761918
description: Status of the snapshots storage PVC
18771919
properties:
1920+
capacity:
1921+
additionalProperties:
1922+
anyOf:
1923+
- type: integer
1924+
- type: string
1925+
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
1926+
x-kubernetes-int-or-string: true
1927+
description: capacity represents the actual resources of
1928+
the underlying volume.
1929+
type: object
18781930
conditions:
18791931
description: Conditions of the PVC
18801932
items:
@@ -1917,6 +1969,11 @@ spec:
19171969
- type
19181970
type: object
19191971
type: array
1972+
currentVolumeAttributesClassName:
1973+
description: |-
1974+
currentVolumeAttributesClassName is the current name of the VolumeAttributesClass the PVC is using.
1975+
When unset, there is no VolumeAttributeClass applied to this PersistentVolumeClaim
1976+
type: string
19201977
events:
19211978
description: |-
19221979
Recent Kubernetes Events related to the PVC
@@ -1943,6 +2000,33 @@ spec:
19432000
type: string
19442001
type: object
19452002
type: array
2003+
modifyVolumeStatus:
2004+
description: |-
2005+
ModifyVolumeStatus represents the status object of ControllerModifyVolume operation.
2006+
When this is unset, there is no ModifyVolume operation being attempted.
2007+
properties:
2008+
status:
2009+
description: "status is the status of the ControllerModifyVolume
2010+
operation. It can be in any of following states:\n
2011+
- Pending\n Pending indicates that the PersistentVolumeClaim
2012+
cannot be modified due to unmet requirements, such
2013+
as\n the specified VolumeAttributesClass not existing.\n
2014+
- InProgress\n InProgress indicates that the volume
2015+
is being modified.\n - Infeasible\n Infeasible indicates
2016+
that the request has been rejected as invalid by the
2017+
CSI driver. To\n\t resolve the error, a valid VolumeAttributesClass
2018+
needs to be specified.\nNote: New statuses can be
2019+
added in the future. Consumers should check for unknown
2020+
statuses and fail appropriately."
2021+
type: string
2022+
targetVolumeAttributesClassName:
2023+
description: targetVolumeAttributesClassName is the
2024+
name of the VolumeAttributesClass the PVC currently
2025+
being reconciled
2026+
type: string
2027+
required:
2028+
- status
2029+
type: object
19462030
phase:
19472031
description: Status phase of the PVC
19482032
type: string

docs/api.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -530,6 +530,9 @@ _Appears in:_
530530
| `phase` _[PersistentVolumeClaimPhase](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.28/#persistentvolumeclaimphase-v1-core)_ | Status phase of the PVC | | |
531531
| `conditions` _[PersistentVolumeClaimCondition](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.28/#persistentvolumeclaimcondition-v1-core) array_ | Conditions of the PVC | | |
532532
| `events` _[KubernetesEventInfo](#kuberneteseventinfo) array_ | Recent Kubernetes Events related to the PVC<br />Events that happened in the last 30 minutes are stored. | | |
533+
| `capacity` _[ResourceList](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.28/#resourcelist-v1-core)_ | capacity represents the actual resources of the underlying volume. | | |
534+
| `currentVolumeAttributesClassName` _string_ | currentVolumeAttributesClassName is the current name of the VolumeAttributesClass the PVC is using.<br />When unset, there is no VolumeAttributeClass applied to this PersistentVolumeClaim | | |
535+
| `modifyVolumeStatus` _[ModifyVolumeStatus](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.28/#modifyvolumestatus-v1-core)_ | ModifyVolumeStatus represents the status object of ControllerModifyVolume operation.<br />When this is unset, there is no ModifyVolume operation being attempted. | | |
533536

534537

535538
#### NodeResourceInfo

0 commit comments

Comments
 (0)