Skip to content
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

Merged

Conversation

devang-gaur
Copy link
Contributor

@devang-gaur devang-gaur commented Jun 30, 2020

/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

@devang-gaur devang-gaur marked this pull request as draft June 30, 2020 13:03
@openshift-ci-robot openshift-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. Required by Prow. label Jun 30, 2020
@devang-gaur devang-gaur changed the title added deprecation and error messages for added deprecation and error messages for 'odo update` Jul 2, 2020
@codecov
Copy link

codecov bot commented Jul 2, 2020

Codecov Report

Merging #3453 into master will decrease coverage by 0.05%.
The diff coverage is n/a.

Impacted file tree graph

@@            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     
Impacted Files Coverage Δ
pkg/sync/sync.go 43.56% <0.00%> (-5.95%) ⬇️
pkg/devfile/adapters/kubernetes/utils/utils.go 52.48% <0.00%> (-1.93%) ⬇️
pkg/devfile/adapters/docker/component/utils.go 68.83% <0.00%> (-0.68%) ⬇️
...g/devfile/adapters/kubernetes/component/adapter.go 29.62% <0.00%> (-0.13%) ⬇️
pkg/lclient/client.go 0.00% <0.00%> (ø)
pkg/lclient/fakeclient.go 82.11% <0.00%> (ø)
pkg/devfile/adapters/common/types.go 100.00% <0.00%> (ø)
pkg/devfile/adapters/docker/component/adapter.go 74.01% <0.00%> (+0.20%) ⬆️
pkg/sync/adapter.go 82.88% <0.00%> (+1.57%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 33a73e3...547507c. Read the comment docs.

@devang-gaur devang-gaur removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. Required by Prow. label Jul 6, 2020
@girishramnani girishramnani added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. Required by Prow. label Jul 8, 2020
@girishramnani
Copy link
Contributor

adding WIP in the label as this is still draft PR

@girishramnani
Copy link
Contributor

@dev-gaur please make this as non-draft PR by clicking the Ready for review button

@devang-gaur devang-gaur marked this pull request as ready for review July 8, 2020 22:59
@openshift-ci-robot openshift-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. Required by Prow. label Jul 8, 2020
@@ -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" +
Copy link
Contributor

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

changes made.

@girishramnani
Copy link
Contributor

Please address @adisky , everything else good.
/approve

@openshift-ci-robot
Copy link
Collaborator

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. Required by Prow. label Jul 10, 2020
@devang-gaur devang-gaur requested a review from adisky July 10, 2020 10:24
@girishramnani
Copy link
Contributor

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. Required by Prow. label Jul 11, 2020
@openshift-bot
Copy link

/retest

Please review the full test history for this PR and help us cut down flakes.

1 similar comment
@openshift-bot
Copy link

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest

Please review the full test history for this PR and help us cut down flakes.

28 similar comments
@openshift-bot
Copy link

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-merge-robot openshift-merge-robot merged commit 4d69aab into redhat-developer:master Jul 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. Required by Prow. lgtm Indicates that a PR is ready to be merged. Required by Prow.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

deprecation warning for odo update
6 participants