@@ -218,8 +218,8 @@ type CnsVolumeAttachDetachSpec struct {
218218 Vm types.ManagedObjectReference `xml:"vm" json:"vm"`
219219 DiskMode string `xml:"diskMode,omitempty" json:"diskMode"`
220220 Sharing string `xml:"sharing,omitempty" json:"sharing"`
221- ControllerKey int64 `xml:"controllerKey,omitempty" json:"controllerKey"`
222- UnitNumber int64 `xml:"unitNumber,omitempty" json:"unitNumber"`
221+ ControllerKey * int32 `xml:"controllerKey,omitempty" json:"controllerKey"`
222+ UnitNumber * int32 `xml:"unitNumber,omitempty" json:"unitNumber"`
223223}
224224
225225func init () {
@@ -480,12 +480,12 @@ func init() {
480480// CnsKubernetesQueryFilter enables querying CNS volumes using Kubernetes metadata such as
481481// namespaces, pod names, PVC names, and PV names.
482482//
483- // - Values in the PodNames, PvcNames, and PvNames lists are treated as OR conditions.
484- // - Values in the Namespaces list are also treated as OR conditions.
485- // - When PodNames, PvcNames, or PvNames are specified along with Namespaces,
486- // the filter applies an AND condition — i.e., the pod, PVC must belong to the specified namespace.
487- // - When only Namespaces are provided (without any pod, PVC names),
488- // all volumes associated with those namespaces will be returned.
483+ // - Values in the PodNames, PvcNames, and PvNames lists are treated as OR conditions.
484+ // - Values in the Namespaces list are also treated as OR conditions.
485+ // - When PodNames, PvcNames, or PvNames are specified along with Namespaces,
486+ // the filter applies an AND condition — i.e., the pod, PVC must belong to the specified namespace.
487+ // - When only Namespaces are provided (without any pod, PVC names),
488+ // all volumes associated with those namespaces will be returned.
489489//
490490// This allows flexible volume queries such as:
491491// - Listing all volumes in one or more namespaces.
0 commit comments