Commit Graph

24 Commits

Author SHA1 Message Date
Parthvi Vala
abc808bdec Fix oc to odo project translation (#6949)
* Fix oc to odo project translation

Signed-off-by: Parthvi <parthvi.vala@gmail.com>

* Attempt at fixing regression

Signed-off-by: Parthvi <parthvi.vala@gmail.com>

* Add unit test for filteredInformation

Signed-off-by: Parthvi <parthvi.vala@gmail.com>

* Use oc command instead of odo

Signed-off-by: Parthvi <parthvi.vala@gmail.com>
Co-authored-by: Armel Soro <asoro@redhat.com>

---------

Signed-off-by: Parthvi <parthvi.vala@gmail.com>
Co-authored-by: Parthvi Vala <pvala@localhost.localdomain>
Co-authored-by: Armel Soro <asoro@redhat.com>
2023-07-17 12:38:36 +02:00
Parthvi Vala
0f14bd9c4a Remove command: odo project (#6008)
* Remove command: odo project

* Fix integration tests

Signed-off-by: Parthvi Vala <pvala@redhat.com>

Signed-off-by: Parthvi Vala <pvala@redhat.com>
2022-08-10 16:12:42 +00:00
Philippe Martin
062160280f Add assertions for types implementing interfaces (#5893) 2022-07-01 08:12:24 +00:00
Charlie Drage
149d16f2b7 Remove italic output throughout odo (#5612)
<!--
Thank you for opening a PR! Here are some things you need to know before submitting:

1. Please read our developer guideline: https://github.com/redhat-developer/odo/wiki/Dev:-odo-Dev-Guidelines
2. Label this PR accordingly with the '/kind' line
3. Ensure you have written and ran the appropriate tests: https://github.com/redhat-developer/odo/wiki/Dev:-Writing-and-running-tests
4. Read how we approve and LGTM each PR: https://github.com/redhat-developer/odo/wiki/Pull-Requests:-Review-guideline

Documentation:

If you are pushing a change to documentation, please read: https://github.com/redhat-developer/odo/wiki/Documentation:-Contributing
-->

**What type of PR is this:**

<!--
Add one of the following kinds:
/kind bug
/kind feature
/kind cleanup
/kind tests
/kind documentation

Feel free to use other [labels](https://github.com/redhat-developer/odo/labels) as needed. However one of the above labels must be present or the PR will not be reviewed. This instruction is for reviewers as well.
-->

/kind cleanup

**What does this PR do / why we need it:**

Remove all italic output throughout odo with the exception of building
images / pushing images.

Makes all output consistent with `odo dev` and `odo deploy`

**Which issue(s) this PR fixes:**
<!--
Specifying the issue will automatically close it when this PR is merged
-->

N/A

**PR acceptance criteria:**

- [X] Unit test

- [X] Integration test

- [X] Documentation

**How to test changes / Special notes to the reviewer:**

Signed-off-by: Charlie Drage <charlie@charliedrage.com>
2022-03-31 00:54:59 -04:00
Dharmit Shah
9fcb25ecbe Add server flag to odo login (#5363)
* Add server flag to odo login

* Add unit tests

* Catch but ignore the error for Complete

* Create factory method for KubernetesClient
2022-01-28 09:46:09 -05:00
Tomas Kral
5f79c542a8 openshift/odo -> redhat-developer/odo (#5268)
* openshift/odo -> redhat-developer/odo

* update more links to redhat-developer
2021-12-01 16:38:34 +01:00
Tomasz Janiszewski
0512d3a2cf Fix shadow (#5172)
* Configure golint

* auth/login.go

* catalog/catalog.go

* component/component.go

* component/component_full_description.go

* config/config.go

* component/adapter.go

* component/podwatcher_test.go

* envinfo/envinfo.go

* envinfo/storage.go

* envinfo/url.go

* kclient/deployments.go

* occlient/occlient.go

* describe/component.go

* component/create.go

* component/delete.go

* component/list.go

* component/push.go

* config/set.go

* config/unset.go

* service/operator_backend.go

* genericclioptions/context.go

* preference/preference_test.go

* project/project.go

* service/link.go

* service/service.go

* storage/storage.go

* sync/adapter.go

* sync/adapter_test.go

* sync/sync.go

* url/kubernetes.go

* util/file_indexer.go

* util/util.go

* util/util_test.go

* watch/watch.go

* watch/watch_test.go

* helper/helper_filesystem.go

* devfile/cmd_devfile_push_test.go

* devfile/cmd_devfile_url_test.go

* devfile/cmd_devfile_watch_test.go

* operatorhub/cmd_service_test.go

* gofmt

* Enable gofmt in golangci

* Return context not nil

* reanme context

* Remove unused value in watch

* Fix pkg/catalog/catalog.go
2021-10-27 18:02:17 +00:00
Tomas Kral
89ac67e425 use server side apply (#4648)
* update to openshift 4.7 and sbo 0.7.0

* use server side apply for updating deployments

* go mod vendor

* use ApplyDeployment instad Patch and Create

* fix login message

* update unit tests to work with ApplyDeployment function

* fall back to Create/Update for k8s older than 1.16

* abstract fieldManager into const

* fix operator-framework imports
2021-05-17 13:05:21 -04:00
Madou
40232bb329 Keeping the current active project/namespace when re-logging in (#4388) 2021-01-28 05:15:29 -05:00
Chris Laprun
fcaafa2fc8 fix: typos [skip-ci] (#4158)
* fix: typos [skip-ci]

* fix: typo [skip-ci]
2020-10-28 20:21:51 -04:00
Devang Gaur
71dc1572c6 'odo login' command should suggest 'odo project list' instead of 'odo projects' (#3262) 2020-06-10 14:14:33 -04:00
Tomas Kral
a82f3e0256 Update openshift to 4.4. and k8s to 1.17 (#3081)
* update openshift libs to 4.4

* update vendor
2020-05-06 18:53:51 +02:00
Tomas Kral
de1aa2bcb4 Update vendor openshift 4.1 (#2574)
* update openshift libs in glide.yaml to 4.1

* update vendored openshift to 4.1

* add licence check exception for sigs.k8s.io/yaml
2020-02-06 20:10:14 +01:00
Tomas Kral
1d8f8e4f48 cleanup OWNERS file (#2442) 2019-12-11 10:01:20 +01:00
Charlie Drage
ff14e02c02 Add italic font when describing what to do next (#2348)
**What kind of PR is this?**
<!--
DELETE the kind(s) which are not applicable before opening the PR.
-->

/kind code refactorting
/kind docs
/kind enhancement

**What does does this PR do / why we need it**:

This PR:
 - Adds italic font when outputting what to "do next". Essentially, when
 using log.Info it's for a "bold" or "title" log. When using log.Italic
 it's mainly used for when we want to say to the user what to do next,
 such as using `odo push` to propagate changes
 - Removes random periods which aren't suppose to be there (all output
 should not be sentences with periods)

**Which issue(s) this PR fixes**:

N/A

**How to test changes / Special notes to the reviewer**:

Run: `odo create nodejs` or any other similar commands, such as `odo
url create` which have "next steps" in them.

Signed-off-by: Charlie Drage <charlie@charliedrage.com>
2019-11-15 15:15:24 +01:00
Mrinal Das
c281978f9c Adds golintCI to travis job (#2332)
* What kind of PR is this?

/kind cleanup

What does does this PR do / why we need it:

It adds golangci-lint as a travis job
It also adds the golangci-lint as make target.
It also fixes the current lint errors in our code base.

Which issue(s) this PR fixes:

Fixes #1927

How to test changes / Special notes to the reviewer:

run `golangci-lint run` and check that no errors occur

Signed-off-by: mik-dass <mrinald7@gmail.com>

* Fixes watch test by adding timeout
2019-11-07 18:24:54 +01:00
Tomas Kral
8ff9200989 Remove Suraj from OWNERS and replace him with Dharmit (#2011) 2019-08-13 16:36:36 +02:00
Charlie Drage
9d1672bdfe Fixes issue of odo login not working correctly (#1652)
* Fixes issue of odo login not working correctly

This fixes the issue of `odo login` not working correctly.

In this PR:
  - Added logging for before AND after
  - Changed stdout / stderror to the correct ones from odolog package
  - Fix up success output
  - Added Success function to odolog

Closes issue https://github.com/openshift/odo/issues/1643

* Fix error and colouring

* Re-add the color

* Fix other error

* Adds another fix with regards to filtering messages

* Remove color

* Add another filter
2019-05-12 09:46:22 +02:00
Tomas Kral
a1a0367613 update OWNERS files (#1665) 2019-04-30 11:52:59 +02:00
Tomas Kral
6bd0d73dc6 redhat-developer/odo -> openshift/odo (#1505)
* redhat-developer/odo -> openshift/odo

* gofmt

* add CircleCI tests temporary back to TravisCI
2019-03-21 17:36:28 +01:00
Mohammed Ahmed
3b7b1789c0 Fix #1400 : Adding prow style OWNERS files (#1402)
* Fix #1400 : Adding prow style OWNERS files

This PR adds OWNERS files to enable prow to ping appropriate people
and decide whose PRs warrant automatic merge

Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>

* Removing kadel from tests
2019-03-04 12:00:00 +05:30
Mohammed Zeeshan Ahmed
6fb1fd474b Fixing #1017: Intercepting login message and customising the message message (#1251)
* Fixing #1017: Intercepting login message and printing custom message

- Adding buffer to replace os.Stdout and intercept output of login
- Customizing a message from odo based on what was intercepted,
so if new-project is present in original message, appropriate
addition is done to odo message
- Printing custom message for login success case.

Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>

* Changing extra message to more closely immitate openshifts own messaging

* Changing to plan B of string replacement of new-project.

* Replacing "<projectname>" with "<project-name>"

* Splitting replace logic into 2 lines

* Adding tests to odo login

Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>

* Reducing wait time for project deletetion

* Altering trigger name for odo login test

* Adding failure case with invalid token login

* Adding odo login e2e tests to travis.

* Removing references of second teat project

* Adding explicit timing

* Increasing wait time

* Replacing explicit time with WaitForCmdOut
2019-02-01 14:46:17 +05:30
Suraj Narwade
7feae78e1a Fixed odo login
What is the purpose of this change? What does it change?

Fixes `odo login` issues

Was the change discussed in an issue?

Solves  #992

How to test changes?

`odo login`
2018-11-16 15:33:34 +05:30
Suraj Narwade
71e9bffc8d odo login 2018-11-13 15:19:46 +05:30