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 Jul 15, 2024
1 parent 01bfbf8 commit 97f3068
Show file tree
Hide file tree
Showing 8 changed files with 95 additions and 57 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 string `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: string
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: string
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: string
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.

126 changes: 69 additions & 57 deletions services/provider/pb/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 @@ -165,6 +165,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
string usedCapacityInGiB = 7;

}

Expand Down

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

0 comments on commit 97f3068

Please sign in to comment.