Skip to content

Commit

Permalink
Merge pull request #2853 from rchikatw/addspecstorageconsumer
Browse files Browse the repository at this point in the history
change float32 to float64 in storageconsumer api
  • Loading branch information
openshift-merge-bot[bot] authored Oct 15, 2024
2 parents 4eacb19 + 98c8184 commit fcfd3e4
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion api/v1alpha1/storageconsumer_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions services/provider/api/interfaces/interfaces.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
6 changes: 3 additions & 3 deletions services/provider/api/provider.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion services/provider/api/storageclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion services/provider/proto/provider.proto
Original file line number Diff line number Diff line change
Expand Up @@ -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;

}

Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit fcfd3e4

Please sign in to comment.