-
Notifications
You must be signed in to change notification settings - Fork 184
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
store client information on storageconsumer status
- adds new fields to existing RPC message - these fields are updated in status of corresponding storageconsumer CRs - the status will be helpful for exporting new metrics Signed-off-by: Leela Venkaiah G <[email protected]>
- Loading branch information
Showing
14 changed files
with
265 additions
and
106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package clientstatus | ||
|
||
type StorageClientStatus interface { | ||
GetPlatformVersion() string | ||
GetOperatorVersion() string | ||
|
||
SetPlatformVersion(string) StorageClientStatus | ||
SetOperatorVersion(string) StorageClientStatus | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package providerpb | ||
|
||
import ( | ||
cs "github.com/red-hat-storage/ocs-operator/v4/services/provider/clientstatus" | ||
) | ||
|
||
// ensure ReportStatusRequest satisfies StorageClientStatus interface | ||
var _ cs.StorageClientStatus = &ReportStatusRequest{} | ||
|
||
func (r *ReportStatusRequest) GetPlatformVersion() string { | ||
return r.ClientPlatformVersion | ||
} | ||
|
||
func (r *ReportStatusRequest) GetOperatorVersion() string { | ||
return r.ClientOperatorVersion | ||
} | ||
|
||
func (r *ReportStatusRequest) SetPlatformVersion(version string) cs.StorageClientStatus { | ||
r.ClientPlatformVersion = version | ||
return r | ||
} | ||
|
||
func (r *ReportStatusRequest) SetOperatorVersion(version string) cs.StorageClientStatus { | ||
r.ClientOperatorVersion = version | ||
return r | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.