Commit Graph

158 Commits

Author SHA1 Message Date
Dharmit Shah
a5b561133a Makes odo work with v0.3.0 of Service Binding Operator (#4274)
* Makes odo work with v0.3.0 of Service Binding Operator

* Self-review of documentation

* Change from SBR to SB in integration test

* Fix Group and Kind when checking for SB support
2020-12-07 12:58:33 -05:00
Maysun Faisal
f8f8f1fc26 Use the generators from devfile/library (#4263)
* Use generator func from devfile library

Signed-off-by: Maysun J Faisal <maysunaneek@gmail.com>

* rebase with master

Signed-off-by: Maysun J Faisal <maysunaneek@gmail.com>
2020-11-30 14:09:45 +01:00
Stephanie Cao
adaa1b44e8 Switch to use parser library (#4188)
* cleanup git history

Signed-off-by: Stephanie <yangcao@redhat.com>

* format files

Signed-off-by: Stephanie <yangcao@redhat.com>

* add epl-2.0 into license whitelist

Signed-off-by: Stephanie <yangcao@redhat.com>

* remove componentType and commandType in convert.go

Signed-off-by: Stephanie <yangcao@redhat.com>

* pull in latest library change

Signed-off-by: Stephanie <yangcao@redhat.com>

* add --project to app list test

Signed-off-by: Stephanie <yangcao@redhat.com>

* fix integration test

Signed-off-by: Stephanie <yangcao@redhat.com>

* revert change to public doc

* move the testdevfileobj to testingutil

Signed-off-by: Stephanie <yangcao@redhat.com>
2020-11-21 01:34:32 +01:00
Priti Kumari
55c4c5a82e Writing unit tests using Gomock (#4110)
* Adding unit tests and mocks for interface and nested interface using gomock and testify

* Add testify latest verion in go mod

* Added vendor for dependencies

* Added examples with both gomock and testify for interface and embeded interface

* removed testify tests and mocks
2020-11-04 05:41:00 -05:00
Priti Kumari
282daabdbc replace util unrecognised dependency in go mod (#4012) 2020-09-23 06:13:07 +00:00
Tomas Kral
57041e8036 vendor: switch location of goautoneg to github (#3984)
original bitbucket repo is mercurial repo that is unsable and mercurial
support on bitbucket is being depricated
2020-09-18 19:16:10 +02: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