Commit Graph

12 Commits

Author SHA1 Message Date
Philippe Martin
0f828ec99f Ignore devstate when existing process name is not odo + delete devstate files with odo delete component (#7090)
* Ignore devstate when existing process name is not odo

* Delete orphan devstate files with odo delete component

* Update unit tests

* Create fake system

* Add unit tests for odo delete component

* Integration tests for odo dev

* Troubleshooting

* First process on Windows is 4

* Use go-ps lib for pidExists
2023-09-20 14:20:53 +02:00
Tomas Kral
6af2f9d030 Update alizer dependency (#6650)
* update alizer to ad2d305

* go mod vendor

* add wwhrd exceptions for github.com/pjbgf/sha1cd/

* update go-git to v5.6.1

* go mod vendor

* fixup! go mod vendor

---------

Co-authored-by: Armel Soro <asoro@redhat.com>
2023-03-25 15:36:24 -04:00
Anand Kumar Singh
098389b027 update go version to use go 1.17 (#5497)
* update go version to 1.17

Signed-off-by: anandrkskd <anandrkskd@gmail.com>

* update go version to 1.17 and fix failure

Signed-off-by: anandrkskd <anandrkskd@gmail.com>
2022-04-29 12:20:35 -04:00
Philippe Martin
4b601a8911 Remove unused go imports (#5444) 2022-02-08 06:16:17 -05:00
Philippe Martin
3674110c22 Validate parameters on odo service create from swagger/csv (#5074)
* Validate parameters

* Fix types

* detect errors on params

* Remove duplicated lines

* Get type from schema

* New describe

* Integration tests

* Fix kclient interface

* vendor
2021-09-29 05:16:57 -04:00
Dharmit Shah
0b735ae7b6 Fetch locale information for Telemetry (#5066)
* Fetch locale information for Telemetry

* Set locale info in traits

* Continue execution if locale detection fails

* Update pkg/segment/segment.go

Co-authored-by: Philippe Martin <contact@elol.fr>

* Update pkg/segment/segment.go

Co-authored-by: Philippe Martin <contact@elol.fr>

* Use %s instead of %w for logging error

Co-authored-by: Philippe Martin <contact@elol.fr>
2021-09-27 11:55:57 -04:00
Philippe Martin
fd6ebb27f6 Get parameters information of operator backed services from Kubernetes OpenAPI spec (#5020)
* vendor

* go mod

* remove old service structures

* Get parameters information of operator backed services from Kubernetes OpenAPI spec

* Add DisplayName

* Displays required + type

* Add some integration tests

* Unit tests

* Display a warning when no CRD or CSV info is found

* Add unit tests

* Update pkg/odo/cli/catalog/describe/operator_backend.go

Co-authored-by: Dharmit Shah <shahdharmit@gmail.com>

Co-authored-by: Dharmit Shah <shahdharmit@gmail.com>
2021-09-03 20:00:57 +02:00
Mrinal Das
dd2713915f Updates the library to the latest version (#4446)
* Updates the library to the latest version

* Updates example devfile for integration tests

* Removes tests using ExecMultipleDefaultsWithFlags()
2021-02-22 14:51:41 -05:00
Tomas Kral
0f55e33a6f use new project and starterProject git specification (#3867)
* implement new project and starterProject git spec

* fix starter project overriding devfile
 - The devfile is first downloaded and parsed in memory
 - Starter project is donwloaded into the current directory
 - Devfile is saved to the current directory
* perms 0644 for devfile is ok - nosec G306
* fix: not able to create component from local devfile
* fix: allow use of existing devfile
* fix: odo create in a directory with existing devfile
* fix: spinner not ended properly
* create and use ParseFromDataAndValidate
* show warning when someone uses revision

* remove events from parent

Events were removed from parent in Devfile spec.

* remove no longer used variable defaultGithubRef

* update unsuported devfile version message

* go mod tidy

* update vendor (go mod vendor)

* fix tests devfile

* temporary change registry in devfile test spec

* fix: add yaml tags to project git source

* fix: wrongly formated starter project in test devfile

* fix: integration tests

* update registry locations

* delete 2.0.0 types that are no longer used

* remove unused OverideEvents function

* fix: revision warning

* fix: typos

* fix: update GetDefaultSource unit tests

* roll back changes in default devfile registry
2020-09-08 16:37:52 -04:00
Tomas Kral
ebe51e886b Switch from glide to go mod (#3866)
* switch to go modules

* update vendor (go mod vendor)

* swithing to go mod: update docs and makefile

* update goget-tools

* use go mod verify to check vendor

* Update goget-tools

- pin goget-tools versions
- update gikgo to 1.14.0
- reset GOFLAGS for goget-tools
- fix ginkgo get for Prow

* go mod: replace github.com/kr/pty with github.com/creack/pty

* update vendor (go mod vendor)

* fix make cross target

-mod=vendor was not used for corss compiling
2020-09-03 07:49:41 -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
Suraj Narwade
c88f02e247 vendor 2018-11-13 13:04:05 +05:30