-
Notifications
You must be signed in to change notification settings - Fork 443
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
refactor(suggestion): Use interface #502
Conversation
/cc @johnugeorge @richardsliu @YujiOshima PTAL |
/lgtm |
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.
/approve
@hougangliu PTAL |
@gaocegege Thanks. some mini comment |
Addressed, Thanks for your review. PTAL |
/lgtm |
/lgtm |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: gaocegege, YujiOshima The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@hougangliu PTAL again, fixed a bug. |
/retest |
2 similar comments
/retest |
/retest |
Client: mgr.GetClient(), | ||
scheme: mgr.GetScheme(), | ||
} | ||
imp := viper.GetString(consts.ConfigExperimentSuggestionName) |
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.
Just to check: Is there a better way to pass flags to the manager than using viper?
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.
I have no idea. Kubebuilder does not support a built-in way, thus I use viper here.
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.
Does it work for you?
/retest |
2 similar comments
/retest |
/retest |
Signed-off-by: Ce Gao <gaoce@caicloud.io>
Signed-off-by: Ce Gao <gaoce@caicloud.io>
Signed-off-by: Ce Gao <gaoce@caicloud.io>
Signed-off-by: Ce Gao <gaoce@caicloud.io>
Signed-off-by: Ce Gao <gaoce@caicloud.io>
Signed-off-by: Ce Gao <gaoce@caicloud.io>
Signed-off-by: Ce Gao <gaoce@caicloud.io>
Signed-off-by: Ce Gao <gaoce@caicloud.io>
/retest |
4 similar comments
/retest |
/retest |
/retest |
/retest |
/lgtm |
There are some benefits to define an interface instead of using util.GetSuggestions function:
This PR:
Signed-off-by: Ce Gao gaoce@caicloud.io
This change is