From 98c8184c6eec597556505b51952562d6c3984481 Mon Sep 17 00:00:00 2001 From: rchikatw Date: Tue, 15 Oct 2024 12:41:40 +0530 Subject: [PATCH] change float32 to float64 in api Signed-off-by: rchikatw --- api/v1alpha1/storageconsumer_types.go | 2 +- .../ocs-operator/api/v4/v1alpha1/storageconsumer_types.go | 2 +- services/provider/api/interfaces/interfaces.go | 4 ++-- services/provider/api/provider.pb.go | 6 +++--- services/provider/api/storageclient.go | 2 +- services/provider/proto/provider.proto | 2 +- .../ocs-operator/api/v4/v1alpha1/storageconsumer_types.go | 2 +- .../services/provider/api/v4/interfaces/interfaces.go | 4 ++-- .../ocs-operator/services/provider/api/v4/provider.pb.go | 6 +++--- .../ocs-operator/services/provider/api/v4/storageclient.go | 2 +- 10 files changed, 16 insertions(+), 16 deletions(-) diff --git a/api/v1alpha1/storageconsumer_types.go b/api/v1alpha1/storageconsumer_types.go index 12cede2841..29ad6dd3ab 100644 --- a/api/v1alpha1/storageconsumer_types.go +++ b/api/v1alpha1/storageconsumer_types.go @@ -93,7 +93,7 @@ type ClientStatus struct { // StorageQuotaUtilizationRatio is the ratio of utilized quota of connected client // +optional - StorageQuotaUtilizationRatio float32 `json:"storageQuotaUtilizationRatio,omitempty"` + StorageQuotaUtilizationRatio float64 `json:"storageQuotaUtilizationRatio,omitempty"` } //+kubebuilder:object:root=true diff --git a/metrics/vendor/github.com/red-hat-storage/ocs-operator/api/v4/v1alpha1/storageconsumer_types.go b/metrics/vendor/github.com/red-hat-storage/ocs-operator/api/v4/v1alpha1/storageconsumer_types.go index 12cede2841..29ad6dd3ab 100644 --- a/metrics/vendor/github.com/red-hat-storage/ocs-operator/api/v4/v1alpha1/storageconsumer_types.go +++ b/metrics/vendor/github.com/red-hat-storage/ocs-operator/api/v4/v1alpha1/storageconsumer_types.go @@ -93,7 +93,7 @@ type ClientStatus struct { // StorageQuotaUtilizationRatio is the ratio of utilized quota of connected client // +optional - StorageQuotaUtilizationRatio float32 `json:"storageQuotaUtilizationRatio,omitempty"` + StorageQuotaUtilizationRatio float64 `json:"storageQuotaUtilizationRatio,omitempty"` } //+kubebuilder:object:root=true diff --git a/services/provider/api/interfaces/interfaces.go b/services/provider/api/interfaces/interfaces.go index 6b3f7f8f2c..e296616b1b 100644 --- a/services/provider/api/interfaces/interfaces.go +++ b/services/provider/api/interfaces/interfaces.go @@ -9,14 +9,14 @@ type StorageClientStatus interface { GetClusterID() string GetClusterName() string GetClientName() string - GetStorageQuotaUtilizationRatio() float32 + GetStorageQuotaUtilizationRatio() float64 SetPlatformVersion(string) StorageClientStatus SetOperatorVersion(string) StorageClientStatus SetClusterID(string) StorageClientStatus SetClusterName(string) StorageClientStatus SetClientName(string) StorageClientStatus - SetStorageQuotaUtilizationRatio(float32) StorageClientStatus + SetStorageQuotaUtilizationRatio(float64) StorageClientStatus } type StorageClientOnboarding interface { diff --git a/services/provider/api/provider.pb.go b/services/provider/api/provider.pb.go index de8692a7a0..a8d4e89cee 100644 --- a/services/provider/api/provider.pb.go +++ b/services/provider/api/provider.pb.go @@ -898,7 +898,7 @@ type ReportStatusRequest struct { // clientName is the name of the connected storageclient ClientName string `protobuf:"bytes,6,opt,name=clientName,proto3" json:"clientName,omitempty"` // storageQuotaUtilizationRatio is the ratio of utilized quota of connected client - StorageQuotaUtilizationRatio float32 `protobuf:"fixed32,7,opt,name=storageQuotaUtilizationRatio,proto3" json:"storageQuotaUtilizationRatio,omitempty"` + StorageQuotaUtilizationRatio float64 `protobuf:"fixed64,7,opt,name=storageQuotaUtilizationRatio,proto3" json:"storageQuotaUtilizationRatio,omitempty"` } func (x *ReportStatusRequest) Reset() { @@ -975,7 +975,7 @@ func (x *ReportStatusRequest) GetClientName() string { return "" } -func (x *ReportStatusRequest) GetStorageQuotaUtilizationRatio() float32 { +func (x *ReportStatusRequest) GetStorageQuotaUtilizationRatio() float64 { if x != nil { return x.StorageQuotaUtilizationRatio } @@ -1174,7 +1174,7 @@ var file_provider_proto_rawDesc = []byte{ 0x65, 0x6e, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x42, 0x0a, 0x1c, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x51, 0x75, 0x6f, 0x74, 0x61, 0x55, 0x74, 0x69, 0x6c, 0x69, 0x7a, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x61, 0x74, 0x69, 0x6f, 0x18, 0x07, 0x20, 0x01, 0x28, 0x02, 0x52, + 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x61, 0x74, 0x69, 0x6f, 0x18, 0x07, 0x20, 0x01, 0x28, 0x01, 0x52, 0x1c, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x51, 0x75, 0x6f, 0x74, 0x61, 0x55, 0x74, 0x69, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x61, 0x74, 0x69, 0x6f, 0x22, 0x88, 0x01, 0x0a, 0x14, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, diff --git a/services/provider/api/storageclient.go b/services/provider/api/storageclient.go index 48ef2c322b..f88489b548 100644 --- a/services/provider/api/storageclient.go +++ b/services/provider/api/storageclient.go @@ -40,7 +40,7 @@ func (r *ReportStatusRequest) SetClusterName(clusterName string) ifaces.StorageC return r } -func (r *ReportStatusRequest) SetStorageQuotaUtilizationRatio(storageQuotaUtilizationRatio float32) ifaces.StorageClientStatus { +func (r *ReportStatusRequest) SetStorageQuotaUtilizationRatio(storageQuotaUtilizationRatio float64) ifaces.StorageClientStatus { r.StorageQuotaUtilizationRatio = storageQuotaUtilizationRatio return r } diff --git a/services/provider/proto/provider.proto b/services/provider/proto/provider.proto index 3c0480b345..09fea87c03 100644 --- a/services/provider/proto/provider.proto +++ b/services/provider/proto/provider.proto @@ -172,7 +172,7 @@ message ReportStatusRequest{ // clientName is the name of the connected storageclient string clientName = 6; // storageQuotaUtilizationRatio is the ratio of utilized quota of connected client - float storageQuotaUtilizationRatio = 7; + double storageQuotaUtilizationRatio = 7; } diff --git a/vendor/github.com/red-hat-storage/ocs-operator/api/v4/v1alpha1/storageconsumer_types.go b/vendor/github.com/red-hat-storage/ocs-operator/api/v4/v1alpha1/storageconsumer_types.go index 12cede2841..29ad6dd3ab 100644 --- a/vendor/github.com/red-hat-storage/ocs-operator/api/v4/v1alpha1/storageconsumer_types.go +++ b/vendor/github.com/red-hat-storage/ocs-operator/api/v4/v1alpha1/storageconsumer_types.go @@ -93,7 +93,7 @@ type ClientStatus struct { // StorageQuotaUtilizationRatio is the ratio of utilized quota of connected client // +optional - StorageQuotaUtilizationRatio float32 `json:"storageQuotaUtilizationRatio,omitempty"` + StorageQuotaUtilizationRatio float64 `json:"storageQuotaUtilizationRatio,omitempty"` } //+kubebuilder:object:root=true diff --git a/vendor/github.com/red-hat-storage/ocs-operator/services/provider/api/v4/interfaces/interfaces.go b/vendor/github.com/red-hat-storage/ocs-operator/services/provider/api/v4/interfaces/interfaces.go index 6b3f7f8f2c..e296616b1b 100644 --- a/vendor/github.com/red-hat-storage/ocs-operator/services/provider/api/v4/interfaces/interfaces.go +++ b/vendor/github.com/red-hat-storage/ocs-operator/services/provider/api/v4/interfaces/interfaces.go @@ -9,14 +9,14 @@ type StorageClientStatus interface { GetClusterID() string GetClusterName() string GetClientName() string - GetStorageQuotaUtilizationRatio() float32 + GetStorageQuotaUtilizationRatio() float64 SetPlatformVersion(string) StorageClientStatus SetOperatorVersion(string) StorageClientStatus SetClusterID(string) StorageClientStatus SetClusterName(string) StorageClientStatus SetClientName(string) StorageClientStatus - SetStorageQuotaUtilizationRatio(float32) StorageClientStatus + SetStorageQuotaUtilizationRatio(float64) StorageClientStatus } type StorageClientOnboarding interface { diff --git a/vendor/github.com/red-hat-storage/ocs-operator/services/provider/api/v4/provider.pb.go b/vendor/github.com/red-hat-storage/ocs-operator/services/provider/api/v4/provider.pb.go index de8692a7a0..a8d4e89cee 100644 --- a/vendor/github.com/red-hat-storage/ocs-operator/services/provider/api/v4/provider.pb.go +++ b/vendor/github.com/red-hat-storage/ocs-operator/services/provider/api/v4/provider.pb.go @@ -898,7 +898,7 @@ type ReportStatusRequest struct { // clientName is the name of the connected storageclient ClientName string `protobuf:"bytes,6,opt,name=clientName,proto3" json:"clientName,omitempty"` // storageQuotaUtilizationRatio is the ratio of utilized quota of connected client - StorageQuotaUtilizationRatio float32 `protobuf:"fixed32,7,opt,name=storageQuotaUtilizationRatio,proto3" json:"storageQuotaUtilizationRatio,omitempty"` + StorageQuotaUtilizationRatio float64 `protobuf:"fixed64,7,opt,name=storageQuotaUtilizationRatio,proto3" json:"storageQuotaUtilizationRatio,omitempty"` } func (x *ReportStatusRequest) Reset() { @@ -975,7 +975,7 @@ func (x *ReportStatusRequest) GetClientName() string { return "" } -func (x *ReportStatusRequest) GetStorageQuotaUtilizationRatio() float32 { +func (x *ReportStatusRequest) GetStorageQuotaUtilizationRatio() float64 { if x != nil { return x.StorageQuotaUtilizationRatio } @@ -1174,7 +1174,7 @@ var file_provider_proto_rawDesc = []byte{ 0x65, 0x6e, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x42, 0x0a, 0x1c, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x51, 0x75, 0x6f, 0x74, 0x61, 0x55, 0x74, 0x69, 0x6c, 0x69, 0x7a, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x61, 0x74, 0x69, 0x6f, 0x18, 0x07, 0x20, 0x01, 0x28, 0x02, 0x52, + 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x61, 0x74, 0x69, 0x6f, 0x18, 0x07, 0x20, 0x01, 0x28, 0x01, 0x52, 0x1c, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x51, 0x75, 0x6f, 0x74, 0x61, 0x55, 0x74, 0x69, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x61, 0x74, 0x69, 0x6f, 0x22, 0x88, 0x01, 0x0a, 0x14, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, diff --git a/vendor/github.com/red-hat-storage/ocs-operator/services/provider/api/v4/storageclient.go b/vendor/github.com/red-hat-storage/ocs-operator/services/provider/api/v4/storageclient.go index 48ef2c322b..f88489b548 100644 --- a/vendor/github.com/red-hat-storage/ocs-operator/services/provider/api/v4/storageclient.go +++ b/vendor/github.com/red-hat-storage/ocs-operator/services/provider/api/v4/storageclient.go @@ -40,7 +40,7 @@ func (r *ReportStatusRequest) SetClusterName(clusterName string) ifaces.StorageC return r } -func (r *ReportStatusRequest) SetStorageQuotaUtilizationRatio(storageQuotaUtilizationRatio float32) ifaces.StorageClientStatus { +func (r *ReportStatusRequest) SetStorageQuotaUtilizationRatio(storageQuotaUtilizationRatio float64) ifaces.StorageClientStatus { r.StorageQuotaUtilizationRatio = storageQuotaUtilizationRatio return r }