-
Notifications
You must be signed in to change notification settings - Fork 243
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
added deprecation and error messages for 'odo update` #3453
added deprecation and error messages for 'odo update` #3453
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3453 +/- ##
==========================================
- Coverage 46.51% 46.45% -0.06%
==========================================
Files 112 112
Lines 11223 11237 +14
==========================================
Hits 5220 5220
- Misses 5504 5513 +9
- Partials 499 504 +5
Continue to review full report at Codecov.
|
adding WIP in the label as this is still draft PR |
@dev-gaur please make this as non-draft PR by clicking the |
pkg/odo/cli/component/update.go
Outdated
@@ -44,6 +49,14 @@ var updateCmdExample = ktemplates.Examples(` # Change the source code path of c | |||
%[1]s --binary ./downloads/sample.war | |||
`) | |||
|
|||
const deprecationWarning string = "WARNING: 'odo update' command will be removed in the future odo version.\n" + | |||
"You should be using `odo config` command instead.\n" + |
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 we should add the same warning in odo update --help
Also can we change the color of message to yellow?
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.
Please address @adisky , everything else good. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: girishramnani 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 |
/lgtm |
/retest Please review the full test history for this PR and help us cut down flakes. |
1 similar comment
/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. |
28 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. |
/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. |
/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. |
/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. |
/kind deprecation
What does does this PR do / why we need it:
added deprecation and error messages for
odo update
Which issue(s) this PR fixes:
Fixes #3396
How to test changes / Special notes to the reviewer:
run
odo update
for 1. s2i components (expect a deprecation warning)2. devfile component (expect an error)
Its a Draft right now