-
Notifications
You must be signed in to change notification settings - Fork 244
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
Move "GetComponentContext" to a util package #4340
Comments
@dharmit: Please ensure the request meets the requirements listed here. If this request no longer meets these requirements, the label can be removed In response to this:
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/test-infra repository. |
@dharmit If this is ok for you, I may have a look and discuss some ideas before submitting any change. |
@niconosenzo absolutely! Discussing before coding is always welcome! If you'd like to work on this, feel free to assign it to yourself. |
/assign |
We are using the GetComponentContext() in other packages like cli for URL etc to trigger the push logic for the now flag in other packages.
The fix would be to design a way so that we can trigger Push() from the component package without requiring the dependency of the component CLI code https://github.com/openshift/odo/blob/e7664393988c11683588232b50e944484fbea999/pkg/odo/cli/url/create.go#L10 but that might need a lot of refactoring. |
Issues go stale after 90d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle stale |
Stale issues rot after 30d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle rotten |
Rotten issues close after 30d of inactivity. Reopen the issue by commenting /close |
@openshift-bot: Closing this issue. In response to this:
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/test-infra repository. |
pkg/odo/cli/url
, we are calling this method which is inpkg/odo/cli/component
.URLCreateOptions
andPushOptions
are used interchangeably (as I can see,GetComponentContext
is in the method set ofPushOptions
struct).It seems like this function belongs to some kind of util package, or other top level file for some component instead of being in
pkg/odo/cli/component/push.go
.Besides that, should it be removed from the method set of
PushOptions
and put somewhere else? Some kind of common options that are common among various different options viz.PushOptions
,URLCreateOptions
,ComponentOptions
, etc.Originally posted by @dharmit in #4311 (comment)
/kind discussion
/kind code-refactoring
/good-first-issue
The text was updated successfully, but these errors were encountered: