Commit Graph

382 Commits

Author SHA1 Message Date
Armel Soro
7b9f214299 Bump Go to 1.19 (#6586)
* Set Go version in go.mod

go mod edit -go=1.19

* Fix formatting issues reported by gofmt

* Fix SA1019 check (usage of deprecated "io/ioutil"), reported by golangci-lint

SA1019: "io/ioutil" has been deprecated since Go 1.16:
As of Go 1.16, the same functionality is now provided by package io or package os,
and those implementations should be preferred in new code.
See the specific function documentation for details. (staticcheck)

* Use Go 1.19 in our Dockerfiles

* Use Go 1.19 in the rpm-prepare.sh script

* Update the tag for the IBM Cloud CI image
2023-02-16 09:03:48 -05:00
Armel Soro
262d11e3ef Bump version to v3.7.0 (#6596)
* Bump version to v3.7.0

* Update odo version in sample outputs diplayed in the documentation
2023-02-15 08:34:25 -05:00
Parthvi Vala
5b4959272f Version bump to 3.6.0 (#6528)
Signed-off-by: Parthvi Vala <pvala@redhat.com>

Signed-off-by: Parthvi Vala <pvala@redhat.com>
2023-01-24 02:49:55 -05:00
Philippe Martin
b98c4e2f5c Bump to v3.5.0 (#6450) 2023-01-04 05:29:37 -05:00
Armel Soro
3cf729c346 Bump version to v3.4.0 (#6404) 2022-12-13 10:07:51 -05:00
Anand Kumar Singh
bb911ea3fa copy aritifacts only if ARTIFACT_DIR var is exposed (#6402)
Signed-off-by: anandrkskd <anandrkskd@gmail.com>

Signed-off-by: anandrkskd <anandrkskd@gmail.com>
2022-12-13 05:00:45 -05:00
Anand Kumar Singh
3738ca8d65 updating bindable kind instance (#6363)
* updating bindable kind instance

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

* update ansible yaml to use 1.18 for postgres operator

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

Signed-off-by: anandrkskd <anandrkskd@gmail.com>
2022-12-06 04:56:10 -05:00
Parthvi Vala
1d315866b6 Bump odo version to v3.3.0 (#6325) 2022-11-22 03:13:57 -05:00
Philippe Martin
20ea3a2043 Podman dev (#6183)
* Add runOn flag

* Instantiate Kube/Podman DevClient instance according to runOn flag

* Start and stop Podman Pod

* Unit tests for createPodFromComponent

* podman mode runs without Kube config

* Fix tests + rebase

* Add sync and exec clients to podman dev

* tbc: call sync

* Remove unnecessary kclient dependency from exec client

* Inject podman client

* Implement ExecCMDInContainer for podman client

* Move [gG]etFirstContainerWithSourceVolume to dev/common package and use it for Podman

* TBC: execute build/run commands

* Fix rebase

* Fix unit test

* Comments for refacto

* Prepare implementation of Platform

* Use ExecuteRunCommand for run handler

* Do not pass parameters present in context

* Move back instanciation of devclient to clientset package

* Move CleanupDevResources method from Watch to Dev package

* CleanupResources: Do not pass parameters present in context

* Fix deleting volumes at exit time

* Check volumes do not exist

* Add support for postStart event

* Make odo dev work when no cluster is configured

* Review

* Add more TODOs

* User interface

* More info on ExitError errors

* Display forwarded ports in output and devstate file

* Add tests for forwarded ports

* Create .odo when necessary

* Add keyboard commands message

* Add doc on podman platform
2022-11-21 08:56:44 -05:00
Anand Kumar Singh
ce42ce435e InterOP: enable test report generation for tests (#6307)
* enable test report generation for tests

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

* add test-reports to gitignore

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

Signed-off-by: anandrkskd <anandrkskd@gmail.com>
2022-11-16 20:22:49 +00:00
Philippe Martin
67272fd81d Remove localconfigLocalConfigProvider abstraction (#6285)
* Remove localconfigLocalConfigProvider abstraction

* Remove LocalConfigProvider interface

* Move LocalStorage to pkg/storage (with ListStorage)
2022-11-16 12:33:29 +00:00
Anand Kumar Singh
f96c35ac0e fix login failure on interop tests with error: x509 (#6288)
* fix login failure on interop tests with error: x509

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

* update script

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

Signed-off-by: anandrkskd <anandrkskd@gmail.com>
2022-11-09 12:30:02 -05:00
Dharmit Shah
f062c11a11 Update odo to use go 1.18 (#6166)
* Update odo to use go 1.18

Signed-off-by: Dharmit Shah <shahdharmit@gmail.com>

* Update golangci-lint version in Makefile

Signed-off-by: Dharmit Shah <shahdharmit@gmail.com>

* Use go 1.18, not go 1.19

Erroneously I had used go 1.19 at various places.

Signed-off-by: Dharmit Shah <shahdharmit@gmail.com>

* Rearrange imports; fix golangci-lint errors

Fixed a bunch of golangci-lint errors like below:

`File is not `gofmt`-ed with `-s``

using the command: `golangci-lint run --fix`

Signed-off-by: Dharmit Shah <shahdharmit@gmail.com>

* Use go install instead of go get

This is because with go 1.18, `go get` behaves as `go get -d` by
default. Which means that it will only download, but not install.

Signed-off-by: Dharmit Shah <shahdharmit@gmail.com>

Signed-off-by: Dharmit Shah <shahdharmit@gmail.com>
2022-11-09 05:31:38 -05:00
Armel Soro
8c2c633755 Fix rpminspect specname inspection failure (#6241)
To anticipate the sunsetting of rpmdiff (replaced by rpminspect), this
makes sure that the odo RPM package passes rpminspect's inspections.
The only error reported at this time was about an invalid spec
filename.

```
specname:
---------
1) Spec filename does not exactly match the primary name odo; got
'openshift-odo.spec'

Result: BAD
Waiver Authorization: Not Waivable

Suggested Remedy: The spec file name does not match the expected
NAME.spec
format.  Rename the spec file to conform to this policy.
```

See
https://docs.google.com/document/d/1PolwQHoZzf0oeOUN1IK7T_NDRAay-nurwL0xYj2JuOo/edit#
for more details.
2022-11-02 10:40:41 -04:00
Philippe Martin
233c817c50 Bump odo to v3.2.0 (#6276) 2022-10-31 12:22:20 -04:00
Armel Soro
fb9a7138d5 Exclude the 'dist' folder from 'check-gofmt.sh' script (#6252)
The 'dist' folder is created when generating an RPM Package
using the `rpm-prepare.sh` and `rpm-local-build.sh` scripts,
and might contain Go files in `dist/rpmbuild/BUILD/**/vendor`.
2022-10-28 06:33:37 -04:00
Parthvi Vala
44fcb8c18d Cleanup PR/issue template and changelog generator script (#6219)
* Cleanup PR/issue labels and changelog generator script

* Use kind/documentation instead of area/documentation to sort out documentation related issues in a better way

* Revert "Use kind/documentation instead of area/documentation to sort out documentation related issues in a better way"

This reverts commit ed935b4e4e.
2022-10-24 04:35:22 -04:00
Dharmit Shah
d02770fa30 Bump odo to v3.1.0 (#6231)
Signed-off-by: Dharmit Shah <shahdharmit@gmail.com>

Signed-off-by: Dharmit Shah <shahdharmit@gmail.com>
2022-10-18 04:10:11 -04:00
Armel Soro
f26010864b Merge tag v3.0.0 2022-10-13 10:53:55 +02:00
Philippe Martin
e03b1e0a12 Move --var-file and --var as generic flags (#6201)
* Define --var-file and --var global flags

* Fix sync mock

* Fix comments

* odo deploy: Use variables from context

* Change FlagValuesIfSet with FlagValues
2022-10-10 13:54:37 +02:00
Armel Soro
8694f19469 Bump version to v3.0.0 (#6197) 2022-10-05 11:06:56 +02:00
Philippe Martin
49fdd17458 Fix postgreSQL image failing due to file permissions errors (#6190) 2022-10-04 17:34:35 +02:00
Philippe Martin
f78096d264 Refactor remotecmd (#6169)
* Remove kclient from interface / signatures

* Create Exec package

* Call ExecuteCommand with client

* Call ExecuteCommand with client from sync package

* Fix order of dependencies
2022-09-27 09:38:54 +02:00
Philippe Martin
2c0b2ee2a6 Refacto sync pkg (#6163)
* Rename interface to SyncExtracter

* Inline PushParameters fields into SyncParameters

* Move SyncParameters to sync package

* Move ComponentName as parameter to SyncFiles

* Move SyncAdapter as handler

* Build syncclient with dependency injection system

* Move ForcePush logic outside of sync package + remove unused ForceBuild option
2022-09-23 16:30:55 +02:00
Dharmit Shah
39a9a28747 Bump odo to v3.0.0-rc2 (#6137)
Signed-off-by: Dharmit Shah <shahdharmit@gmail.com>

Signed-off-by: Dharmit Shah <shahdharmit@gmail.com>
2022-09-20 16:20:57 +02:00
Parthvi Vala
886b14d69c Fix broken links to installation guide (#6117)
Signed-off-by: Parthvi Vala <pvala@redhat.com>

Signed-off-by: Parthvi Vala <pvala@redhat.com>
2022-09-13 17:57:24 +02:00
Philippe Martin
6788db4484 Bump to version 3.0.0-rc1 (#6064) 2022-08-30 04:37:37 -04:00
Philippe Martin
23d804c348 Update script to support alpha/beta/rc versions (#6063) 2022-08-30 03:56:34 -04:00
Anand Kumar Singh
39b8c7e4c2 fix flake and use operatorhub to install EDB (#6004)
* fix flake

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

* fix flake

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

* check if namespace is created

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

* check if namespace without sercice is created

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

Signed-off-by: anandrkskd <anandrkskd@gmail.com>
2022-08-29 11:26:57 -04:00
Parthvi Vala
f4e96a4e3b Bump odo version to v3.0.0-beta3 (#6016) 2022-08-09 10:24:10 +00:00
Parthvi Vala
6fb5cc86b6 Add more checks to check-fit.sh (#6001)
Signed-off-by: Parthvi Vala <pvala@redhat.com>
2022-08-03 12:58:21 +00:00
Armel Soro
54f9bb075e Bump Alizer library to latest commit [1] (#5970)
[1] 59b004fd45

Signed-off-by: Armel Soro <asoro@redhat.com>
2022-07-23 09:40:46 +02:00
dependabot[bot]
d2c404c3f3 Go: Bump k8s.io/klog/v2 from 2.40.1 to 2.70.1 (#5953)
* Go: Bump k8s.io/klog/v2 from 2.40.1 to 2.70.1

Bumps [k8s.io/klog/v2](https://github.com/kubernetes/klog) from 2.40.1 to 2.70.1.
- [Release notes](https://github.com/kubernetes/klog/releases)
- [Changelog](https://github.com/kubernetes/klog/blob/main/RELEASE.md)
- [Commits](https://github.com/kubernetes/klog/compare/v2.40.1...v2.70.1)

---
updated-dependencies:
- dependency-name: k8s.io/klog/v2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Add 'k8s.io/klog/v2' upgrade to generate-mod.sh script

Signed-off-by: Armel Soro <asoro@redhat.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Armel Soro <asoro@redhat.com>
2022-07-22 16:31:00 +02:00
dependabot[bot]
6a46d91ed5 Go: Bump github.com/golang/mock from 1.5.0 to 1.6.0 (#5939)
* Go: Bump github.com/golang/mock from 1.5.0 to 1.6.0

Bumps [github.com/golang/mock](https://github.com/golang/mock) from 1.5.0 to 1.6.0.
- [Release notes](https://github.com/golang/mock/releases)
- [Changelog](https://github.com/golang/mock/blob/main/.goreleaser.yml)
- [Commits](https://github.com/golang/mock/compare/v1.5.0...v1.6.0)

---
updated-dependencies:
- dependency-name: github.com/golang/mock
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Add 'github.com/golang/mock' to generate-mod.sh script

* Add missing 'github.com/jedib0t/go-pretty/v6@v6.3.5' to generate-mod.sh script

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Armel Soro <asoro@redhat.com>
2022-07-22 11:26:36 +02:00
Philippe Martin
f4a860ec2e Install and use a reverse proxy for staging devfile registry (#5922)
* Kubernetes Manifests to deploy nginx reverse proxy for staging devfile registry

* Get the external address of the loadBalancer service for devfile proxy

* If DEVFILE_PROXY is defined, use it as Devfile registry

* Fix get address from Windows

* Add some log displaying proxy address found

* Filter requests on user agent

* Add Go-http-client user-agent

* Add doc
2022-07-20 11:31:25 +02:00
Armel Soro
c8e4458f49 Bump version to v3.0.0-beta2 (#5952) 2022-07-19 08:47:59 +00:00
Anand Kumar Singh
379b37f751 Sbo nightly test (#5946)
* run nightly sbo(master) tests against odo main

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

* run nightly sbo(master) tests against odo main

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

* remove startingCSV derective

Signed-off-by: anandrkskd <anandrkskd@gmail.com>
2022-07-18 13:01:08 +00:00
dependabot[bot]
d70d2e6221 Go: Bump github.com/fatih/color from 1.12.0 to 1.13.0 (#5925)
* Go: Bump github.com/fatih/color from 1.12.0 to 1.13.0

Bumps [github.com/fatih/color](https://github.com/fatih/color) from 1.12.0 to 1.13.0.
- [Release notes](https://github.com/fatih/color/releases)
- [Commits](https://github.com/fatih/color/compare/v1.12.0...v1.13.0)

---
updated-dependencies:
- dependency-name: github.com/fatih/color
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Add github.com/mattn/go-colorable@v0.1.9 to generate-mod.sh

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Philippe Martin <phmartin@redhat.com>
2022-07-18 10:16:14 +00:00
Anand Kumar Singh
c7f3f3b1d1 reduce test make targets, organize test file structure (#5931)
* reduce test make targets, organize test file structure

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

* remove report collection

Signed-off-by: anandrkskd <anandrkskd@gmail.com>
2022-07-13 05:32:11 +00:00
dependabot[bot]
8865cec8ff Go: Bump github.com/posener/complete from 1.1.1 to 1.2.3 (#5924)
* Go: Bump github.com/posener/complete from 1.1.1 to 1.2.3

Bumps [github.com/posener/complete](https://github.com/posener/complete) from 1.1.1 to 1.2.3.
- [Release notes](https://github.com/posener/complete/releases)
- [Commits](https://github.com/posener/complete/compare/v1.1.1...v1.2.3)

---
updated-dependencies:
- dependency-name: github.com/posener/complete
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Add github.com/posener/complete@v1.2.3 to generate-mod.sh

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Philippe Martin <phmartin@redhat.com>
2022-07-12 10:41:50 +00:00
dependabot[bot]
46e47a56c2 Go: Bump github.com/pborman/uuid from 1.2.0 to 1.2.1 (#5901)
* Go: Bump github.com/pborman/uuid from 1.2.0 to 1.2.1

Bumps [github.com/pborman/uuid](https://github.com/pborman/uuid) from 1.2.0 to 1.2.1.
- [Release notes](https://github.com/pborman/uuid/releases)
- [Commits](https://github.com/pborman/uuid/compare/v1.2...v1.2.1)

---
updated-dependencies:
- dependency-name: github.com/pborman/uuid
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* Add github.com/pborman/uuid to generate-mod.sh script

This also sets it as a direct dependency of odo,
as we are using it.

* Pin github.com/openshift/oc and k8s.io/utils as direct dependencies in generate-mod.sh script

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Armel Soro <asoro@redhat.com>
2022-07-12 07:23:06 +00:00
Anand Kumar Singh
722020678f Migrate to ginkgo v2 (#5809)
* migrate to ginkgo v2 for tests

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

* update to ginkgo/v2

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

* update to ginkgo v2

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

* use ginkgo binary for tests

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

* update to ginkgo v2

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

* remove GOFLAG while downloading ginkgo

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

* remove FlakeAttempts from tests

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

* use ginkgo v2.1.4

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

* mod cleanup and use mod to run ginkgo

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

* remove unnecessary goget-ginkgo from sctipt

Signed-off-by: anandrkskd <anandrkskd@gmail.com>
2022-07-06 10:31:01 +00:00
Philippe Martin
a0b0d0f3c1 Simplify pkg/devfile/adapters/... packages (#5914)
* Remove dependency on common.AdapterContext for sync.Adapter

* Simplify adapters.NewComponentAdapter

* NewComponentAdapter accepts kubernetes.KubernetesContext instead of interface{}

* Replace KubernetesContext with its only field Namespace

* Move the Push Interface and  builders to the kubernetes.component  package

* Move AdapterContext to kubernetes.component package

* Embeds component.New into NewKubernetesAdapter

* Move GetCommandsMap where it is used

* Move GetSyncFilesFromAttributes  where it is used

* Move constants where they are used

* Move types to adapters package

* Update pkg/devfile/adapters/kubernetes/component/adapter.go

Co-authored-by: Armel Soro <armel@rm3l.org>

Co-authored-by: Armel Soro <armel@rm3l.org>
2022-07-06 07:35:42 +00:00
Philippe Martin
ebdd3f063d Bump to version v3.0.0-beta1 (#5903) 2022-06-30 08:20:11 +00:00
Philippe Martin
a7fc6b7718 Install script for operators on Kubernetes + Activate tests with operators on Kubernetes cluster (#5861) 2022-06-23 09:29:10 +00:00
Parthvi Vala
ce3dc54335 Update OWNERS files (#5808)
* Update OWNERS files

* Update tests/OWNERS
2022-06-13 03:35:19 -04:00
Tomas Kral
abb12476cd bump version to v3.0.0-alpha3 (#5802) 2022-06-07 12:41:16 -04:00
Surender Yadav
fa2a1e0b14 Removed setup operator code block for s390x (#5761) 2022-05-25 03:03:29 -04:00
Mohammed Ahmed
fd3f168fc3 Bumping odo version to v3.0.0-alpha2 (#5745)
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
2022-05-16 15:51:17 +02:00
Parthvi Vala
6cf24bbc33 Create binding between devfile component and existing service (#5641)
* Skeleton for odo create binding

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

* Add logic

* Add functions to add data to devfile and create files

* Dharmit's review + make it work with <name>/<kind>.<apigroup>

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

* Add support for more formats

* Add integration tests and supporting helper functions

* create > add

* Add default ServiceBinding name

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

* Fix timeout, and move cli/add/binding.go to cli/add/binding/binding.go

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

* Update pkg/binding/binding.go

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

* Update pkg/binding/binding.go

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

* Update pkg/binding/interface.go

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

* Philippe's review

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

* Self review

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

* Fix unit test failure

* Philippe's review: round 2

* Tomas review; self review

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

* Fix windows test failure

* Randomize binding name for test

Co-authored-by: Philippe Martin <phmartin@redhat.com>
Co-authored-by: Philippe Martin <contact@elol.fr>
2022-05-12 15:05:17 +02:00