-
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
Remove devfile push cmd #2598
Remove devfile push cmd #2598
Conversation
Do we need the |
/retest |
@elsony, We may add other experimental features which are not related to devfiles (operator hub integration for example), in such a case we end up using devfiles even for these experimental features. Your suggestion would definitely be helpful, when the devfile feature is not in experimental mode anymore and devfile is accepted as the default standard for configuring odo. cc: @kadel |
/test v4.2-integration-e2e-benchmark |
I was actually also thinking that if experimental is enabled and there is devfile.yaml in the directory
|
@kadel, We can implement the above matrix, once the devfile feature implementation is complete and then gradually move the devfile feature out of the experimental mode. Another aspect here is that with the above matrix, wouldn't it be difficult for us to add any other feature into experimental mode, since we would be defaulting to |
Codecov Report
@@ Coverage Diff @@
## master #2598 +/- ##
==========================================
- Coverage 42.77% 42.62% -0.15%
==========================================
Files 74 74
Lines 7089 7089
==========================================
- Hits 3032 3022 -10
- Misses 3768 3774 +6
- Partials 289 293 +4
Continue to review full report at Codecov.
|
After having a chat with @kadel, it seems that we want the features in experimental mode to work just the way we would want them to work when these features are removed out of the experimental mode. So, I would make the necessary changes to accommodate for the suggestion given by @kadel and @elsony . |
01daee9
to
fe5fef0
Compare
/test v4.1-integration-e2e-benchmark |
@kanchwala-yusuf As a user i want to visualize the change done by this pr, so can you please elaborate it or may be the steps would really be helpful. |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: kadel 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 |
Do we think this will have any impact on the work-flow of Adapters that use our tool? If yes, have we discussed the changes they need to make? |
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 one question in the code and one question outside the code. Looks good otherwise. 👍
@@ -32,6 +34,9 @@ const PushRecommendedCommandName = "push" | |||
// PushOptions encapsulates options that push command uses | |||
type PushOptions struct { | |||
*CommonPushOptions | |||
|
|||
// devfile path | |||
devfilePath string |
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 not make this a part of the CommonPushOptions
struct in common_push.go
?
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.
Because the changes in this PR do not affect the common push code path in common_push.go
.
In my understanding, common push has code which is common to the various odo push
code paths whereas in the case of devfile there is no common code at all (atleast for now).
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 think odo push
is commong across different use cases, i.e., local sourcetype or git sourcetype or binary sourcetype. It behaves according to the underlying sourcetype. Considering DevFile is going to replace odo config (.odo/config.yaml
) at some point, IMO, it would make more sense to make devfilePath string
a part of CommonPushOptions
.
Having said that, I agree that it's probably OK to keep it as-is right now. I hope we don't forget/overlook when we make it a default behaviour. 😉
Not at this point. This is one of the reasons why we want to hide it under an experimental flag, at least for now. |
/lgtm |
/retest Please review the full test history for this PR and help us cut down flakes. |
8 similar comments
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
What type of PR is this?
What does does this PR do / why we need it:
This PR removes the
push-devfile
command and replaces it's behavior by adding the--devfile
flag to theodo push
command itself.Which issue(s) this PR fixes:
Fixes #2538
How to test changes / Special notes to the reviewer:
The experimental mode needs to be enabled and the
--devfile
flag needs to be explicitly set for the devfile feature to work.