-
Notifications
You must be signed in to change notification settings - Fork 184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
services: remove Getter as they generated as part of proto #2856
base: main
Are you sure you want to change the base?
Conversation
rchikatw
commented
Oct 17, 2024
- remove Getter as they are generated as part of proto
- not removing GetPlatformVersion() & GetOperatorVersion() as they are already used. Leela will take care of removing this.
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: rchikatw The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
68867da
to
000fb1d
Compare
@@ -207,7 +208,7 @@ func (c *ocsConsumerManager) Get(ctx context.Context, id string) (*ocsv1alpha1.S | |||
return consumerObj, nil | |||
} | |||
|
|||
func (c *ocsConsumerManager) UpdateConsumerStatus(ctx context.Context, id string, status ifaces.StorageClientStatus) error { | |||
func (c *ocsConsumerManager) UpdateConsumerStatus(ctx context.Context, id string, status *pb.ReportStatusRequest) error { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is this being changed? the whole point was to abstract ReportStatusRequest as it keeps on increasing and keep on satisfying StorageClientStatus interface.
GetOperatorVersion() string | ||
GetClusterID() string | ||
GetClusterName() string | ||
GetClientName() string | ||
GetStorageQuotaUtilizationRatio() float64 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you change the comment to
These two getters are redirects for generated protobuf rpcs' and only add new getters here if you want to use different names which is not encouraged as these two are here only for backward compatibility
you can find setters at services/provider/api/storageclient.go and generated getters at services/provider/api/provider.pb.go
provider: provide namespace for storage-client-mapping config Signed-off-by: rchikatw <[email protected]>
000fb1d
to
384859e
Compare
/hold |
@rchikatw: The following tests failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |