Skip to content

Commit

Permalink
Adding usedCapacity for storage consumer api
Browse files Browse the repository at this point in the history
Signed-off-by: rchikatw <[email protected]>
  • Loading branch information
rchikatw committed Sep 26, 2024
1 parent cfe597a commit c8d36bf
Show file tree
Hide file tree
Showing 9 changed files with 170 additions and 120 deletions.
4 changes: 4 additions & 0 deletions api/v1alpha1/storageconsumer_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@ type ClientStatus struct {
// Name is the name of connected storageclient
// +optional
Name string `json:"name,omitempty"`

// UsedCapacityInGiB is the used capacity of connected storageclient
// +optional
UsedCapacityInGiB int `json:"usedCapacityInGiB,omitempty"`
}

//+kubebuilder:object:root=true
Expand Down
4 changes: 4 additions & 0 deletions config/crd/bases/ocs.openshift.io_storageconsumers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@ spec:
platformVersion:
description: StorageClient Platform Version
type: string
usedCapacityInGiB:
description: UsedCapacityInGiB is the used capacity of connected
storageclient
type: integer
type: object
lastHeartbeat:
description: Timestamp of last heartbeat received from consumer
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@ spec:
platformVersion:
description: StorageClient Platform Version
type: string
usedCapacityInGiB:
description: UsedCapacityInGiB is the used capacity of connected
storageclient
type: integer
type: object
lastHeartbeat:
description: Timestamp of last heartbeat received from consumer
Expand Down
4 changes: 4 additions & 0 deletions deploy/ocs-operator/manifests/storageconsumer.crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@ spec:
platformVersion:
description: StorageClient Platform Version
type: string
usedCapacityInGiB:
description: UsedCapacityInGiB is the used capacity of connected
storageclient
type: integer
type: object
lastHeartbeat:
description: Timestamp of last heartbeat received from consumer
Expand Down

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

132 changes: 72 additions & 60 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: 2 additions & 0 deletions services/provider/proto/provider.proto
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,8 @@ message ReportStatusRequest{
string clusterName = 5;
// clientName is the name of the connected storageclient
string clientName = 6;
// usedCapacityInGiB is the used capacity of connected storageclient
int64 usedCapacityInGiB = 7;

}

Expand Down

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

Loading

0 comments on commit c8d36bf

Please sign in to comment.