55 Commits

Author SHA1 Message Date
dependabot[bot]
4bfb89102e Go: Bump golang.org/x/net from 0.21.0 to 0.23.0 (#7239)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.21.0 to 0.23.0.
- [Commits](https://github.com/golang/net/compare/v0.21.0...v0.23.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-29 18:49:53 +00:00
Theofanis Petkos
529805fbb3 Update devfile library (#7240)
* Update go.mod

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

* Update vendor

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

* Bump up devfile library to 2.2.2

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

* Update vendor

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

---------

Signed-off-by: thepetk <thepetk@gmail.com>
2024-04-29 15:21:11 +00:00
dependabot[bot]
8b50f83d1a Bump the go_modules group across 2 directories with 4 updates (#7213)
Bumps the go_modules group with 3 updates in the /. directory: [github.com/cloudflare/circl](https://github.com/cloudflare/circl), [github.com/moby/buildkit](https://github.com/moby/buildkit) and [golang.org/x/net](https://github.com/golang/net).
Bumps the go_modules group with 2 updates in the /.ibm/tools/tests-results directory: [golang.org/x/crypto](https://github.com/golang/crypto) and [golang.org/x/net](https://github.com/golang/net).


Updates `github.com/cloudflare/circl` from 1.3.3 to 1.3.7
- [Release notes](https://github.com/cloudflare/circl/releases)
- [Commits](https://github.com/cloudflare/circl/compare/v1.3.3...v1.3.7)

Updates `github.com/moby/buildkit` from 0.11.6 to 0.12.5
- [Release notes](https://github.com/moby/buildkit/releases)
- [Commits](https://github.com/moby/buildkit/compare/v0.11.6...v0.12.5)

Updates `golang.org/x/crypto` from 0.16.0 to 0.17.0
- [Commits](https://github.com/golang/crypto/compare/v0.9.0...v0.17.0)

Updates `golang.org/x/net` from 0.19.0 to 0.21.0
- [Commits](https://github.com/golang/net/compare/v0.19.0...v0.21.0)

Updates `golang.org/x/crypto` from 0.9.0 to 0.17.0
- [Commits](https://github.com/golang/crypto/compare/v0.9.0...v0.17.0)

Updates `golang.org/x/net` from 0.10.0 to 0.17.0
- [Commits](https://github.com/golang/net/compare/v0.19.0...v0.21.0)

---
updated-dependencies:
- dependency-name: github.com/cloudflare/circl
  dependency-type: indirect
  dependency-group: go_modules-security-group
- dependency-name: github.com/moby/buildkit
  dependency-type: indirect
  dependency-group: go_modules-security-group
- dependency-name: golang.org/x/crypto
  dependency-type: indirect
  dependency-group: go_modules-security-group
- dependency-name: golang.org/x/net
  dependency-type: indirect
  dependency-group: go_modules-security-group
- dependency-name: golang.org/x/crypto
  dependency-type: indirect
  dependency-group: go_modules-security-group
- dependency-name: golang.org/x/net
  dependency-type: indirect
  dependency-group: go_modules-security-group
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-10 07:55:29 +00:00
dependabot[bot]
5b66702f43 Go: Bump golang.org/x/sys from 0.15.0 to 0.16.0 (#7191)
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.15.0 to 0.16.0.
- [Commits](https://github.com/golang/sys/compare/v0.15.0...v0.16.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sys
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-29 16:08:37 +00:00
dependabot[bot]
d68d14c238 Go: Bump github.com/spf13/afero from 1.6.0 to 1.11.0 (#7186)
Bumps [github.com/spf13/afero](https://github.com/spf13/afero) from 1.6.0 to 1.11.0.
- [Release notes](https://github.com/spf13/afero/releases)
- [Commits](https://github.com/spf13/afero/compare/v1.6.0...v1.11.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-22 15:10:17 +00:00
dependabot[bot]
e72cca78eb Go: Bump golang.org/x/sync from 0.4.0 to 0.6.0 (#7187)
Bumps [golang.org/x/sync](https://github.com/golang/sync) from 0.4.0 to 0.6.0.
- [Commits](https://github.com/golang/sync/compare/v0.4.0...v0.6.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sync
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-22 11:09:03 +00:00
dependabot[bot]
646c807c5b Go: Bump github.com/go-git/go-git/v5 from 5.10.1 to 5.11.0 (#7172)
Bumps [github.com/go-git/go-git/v5](https://github.com/go-git/go-git) from 5.10.1 to 5.11.0.
- [Release notes](https://github.com/go-git/go-git/releases)
- [Commits](https://github.com/go-git/go-git/compare/v5.10.1...v5.11.0)

---
updated-dependencies:
- dependency-name: github.com/go-git/go-git/v5
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-03 08:58:54 +00:00
dependabot[bot]
6ecaa8bc30 Go: Bump github.com/securego/gosec/v2 from 2.17.0 to 2.18.2 (#7167)
Bumps [github.com/securego/gosec/v2](https://github.com/securego/gosec) from 2.17.0 to 2.18.2.
- [Release notes](https://github.com/securego/gosec/releases)
- [Changelog](https://github.com/securego/gosec/blob/master/.goreleaser.yml)
- [Commits](https://github.com/securego/gosec/compare/v2.17.0...v2.18.2)

---
updated-dependencies:
- dependency-name: github.com/securego/gosec/v2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-18 08:41:10 +00:00
dependabot[bot]
fca08d4cee Go: Bump google.golang.org/grpc from 1.54.0 to 1.56.3 (#7136)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-01 13:44:21 +01:00
dependabot[bot]
1cdaffd568 Go: Bump github.com/go-git/go-git/v5 from 5.7.0 to 5.10.1 (#7155)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-01 12:27:59 +01:00
dependabot[bot]
290e5d850f Go: Bump golang.org/x/sys from 0.12.0 to 0.13.0 (#7113)
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.12.0 to 0.13.0.
- [Commits](https://github.com/golang/sys/compare/v0.12.0...v0.13.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sys
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-13 16:11:10 +00:00
dependabot[bot]
b20ceb619c Go: Bump golang.org/x/term from 0.11.0 to 0.12.0 (#7082)
Bumps [golang.org/x/term](https://github.com/golang/term) from 0.11.0 to 0.12.0.
- [Commits](https://github.com/golang/term/compare/v0.11.0...v0.12.0)

---
updated-dependencies:
- dependency-name: golang.org/x/term
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-11 12:09:35 +02:00
dependabot[bot]
319adfa724 Go: Bump github.com/securego/gosec/v2 from 2.15.0 to 2.17.0 (#7033)
* Go: Bump github.com/securego/gosec/v2 from 2.15.0 to 2.17.0

Bumps [github.com/securego/gosec/v2](https://github.com/securego/gosec) from 2.15.0 to 2.17.0.
- [Release notes](https://github.com/securego/gosec/releases)
- [Changelog](https://github.com/securego/gosec/blob/master/.goreleaser.yml)
- [Commits](https://github.com/securego/gosec/compare/v2.15.0...v2.17.0)

---
updated-dependencies:
- dependency-name: github.com/securego/gosec/v2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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

* Go: Bump github.com/securego/gosec/v2 from 2.15.0 to 2.17.0

Bumps [github.com/securego/gosec/v2](https://github.com/securego/gosec) from 2.15.0 to 2.17.0.
- [Release notes](https://github.com/securego/gosec/releases)
- [Changelog](https://github.com/securego/gosec/blob/master/.goreleaser.yml)
- [Commits](https://github.com/securego/gosec/compare/v2.15.0...v2.17.0)

---
updated-dependencies:
- dependency-name: github.com/securego/gosec/v2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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

* Ignore gosec error

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Philippe Martin <phmartin@redhat.com>
2023-08-28 15:18:08 +02:00
Armel Soro
abdb1c568d Update go.mod with new location of the Alizer library (#6962)
* Update 'go.mod' with new location of the Alizer library

* Downgrade and pin conflicting versions of 'github.com/docker/{cli,distributions}'

Pinning it to the version we had before.
Otherwise, there were issues when running 'go mod tidy':

```
$ go mod tidy
go: downloading github.com/operator-framework/api v0.17.6
go: finding module for package github.com/docker/docker/pkg/term
github.com/redhat-developer/odo/pkg/auth imports
        github.com/openshift/oc/pkg/cli/login imports
                github.com/openshift/oc/pkg/helpers/term imports
                        github.com/docker/docker/pkg/term: module
                        github.com/docker/docker@latest found
                        (v24.0.4+incompatible), but does not contain
                        package github.com/docker/docker/pkg/term

```

* Fix expected output in quickstart guides doc automation tests
2023-07-17 12:57:31 +02:00
dependabot[bot]
3b73c806db Go: Bump golang.org/x/sys from 0.8.0 to 0.10.0 (#6948)
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.8.0 to 0.10.0.
- [Commits](https://github.com/golang/sys/compare/v0.8.0...v0.10.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sys
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-05 11:06:05 -04:00
Armel Soro
324d73fb37 Bump Alizer to fix potential panic when analyzing large projects (#6926)
* Bump Alizer to the latest commit at this time [1]

Amongst other things, this fixes an issue when analyzing large projects,
by preventing potential panics when trying to detect application ports.

[1] 14114f066c

* Downgrade and pin the versions of 'sigs.k8s.io/controller-runtime' and 'k8s.io/*' to the previous versions we had

Bumping Alizer bumped these packages to upper versions,
which seems to cause build errors due to Service Binding Operator
libraries not compatible with those new versions.
See the error below.

Since we don't want to update SBO libraries at this time
(as SBO is currently in maintenance mode only),
this makes sure we are using the versions it builds against.

Build error for reference:
```
go install -mod=vendor -ldflags="-X github.com/redhat-developer/odo/pkg/version.GITCOMMIT=cb9c13900" ./cmd/odo/
# github.com/redhat-developer/service-binding-operator/apis/spec/v1alpha3
vendor/github.com/redhat-developer/service-binding-operator/apis/spec/v1alpha3/servicebinding_webhook.go:44:27: cannot use &ServiceBinding{} (value of type *ServiceBinding) as type admission.Validator in variable declaration:
        *ServiceBinding does not implement admission.Validator (wrong type for ValidateCreate method)
                have ValidateCreate() error
                want ValidateCreate() (warnings admission.Warnings, err error)
# github.com/redhat-developer/service-binding-operator/apis/binding/v1alpha1
vendor/github.com/redhat-developer/service-binding-operator/apis/binding/v1alpha1/servicebinding_webhook.go:37:27: cannot use &ServiceBinding{} (value of type *ServiceBinding) as type admission.Validator in variable declaration:
        *ServiceBinding does not implement admission.Validator (wrong type for ValidateCreate method)
                have ValidateCreate() error
                want ValidateCreate() (warnings admission.Warnings, err error)
make: *** [Makefile:90: install] Error 2
```

* Fix expected output in doc automation tests
2023-06-27 09:34:38 +02:00
dependabot[bot]
50cb5c9b3b Go: Bump github.com/securego/gosec/v2 from 2.14.0 to 2.15.0 (#6686)
* Go: Bump github.com/securego/gosec/v2 from 2.14.0 to 2.15.0

Bumps [github.com/securego/gosec/v2](https://github.com/securego/gosec) from 2.14.0 to 2.15.0.
- [Release notes](https://github.com/securego/gosec/releases)
- [Changelog](https://github.com/securego/gosec/blob/master/.goreleaser.yml)
- [Commits](https://github.com/securego/gosec/compare/v2.14.0...v2.15.0)

---
updated-dependencies:
- dependency-name: github.com/securego/gosec/v2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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

* Make sure to handle error returned by io.Closer.Close() in 'defer' statements

This is considered unsafe by gosec otherwise.

[1] https://github.com/securego/gosec/issues/512
[2] https://github.com/securego/gosec/issues/714
[3] https://www.joeshaw.org/dont-defer-close-on-writable-files/

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Armel Soro <asoro@redhat.com>
2023-05-16 09:51:30 -04: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
dependabot[bot]
0b4ef58591 Go: Bump golang.org/x/sync (#6665)
Bumps [golang.org/x/sync](https://github.com/golang/sync) from 0.0.0-20220722155255-886fb9371eb4 to 0.1.0.
- [Release notes](https://github.com/golang/sync/releases)
- [Commits](https://github.com/golang/sync/commits/v0.1.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sync
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-20 12:54:57 -04:00
Philippe Martin
93d1330182 Patch Pods to pass pod security admission (#6602)
* Bump devfile/library

* Use generator.GetPodTemplateSpec instead of Get[Init]Containers

* Fix deprecated pointer.*

* Fix more deprecated

* Workaround for ServerPreferredResources panicking

* Pass policy to GetPodTemplateSpec

* Integration test

* document behaviour

* Review
2023-03-20 10:16:14 -04:00
dependabot[bot]
8f9ced9759 Go: Bump github.com/operator-framework/api (#6656)
Bumps [github.com/operator-framework/api](https://github.com/operator-framework/api) from 0.14.1-0.20220413143725-33310d6154f3 to 0.17.3.
- [Release notes](https://github.com/operator-framework/api/releases)
- [Commits](https://github.com/operator-framework/api/commits/v0.17.3)

---
updated-dependencies:
- dependency-name: github.com/operator-framework/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-16 11:18:13 -04:00
dependabot[bot]
5c3857367a Go: Bump github.com/fatih/color from 1.13.0 to 1.14.1 (#6571)
Bumps [github.com/fatih/color](https://github.com/fatih/color) from 1.13.0 to 1.14.1.
- [Release notes](https://github.com/fatih/color/releases)
- [Commits](https://github.com/fatih/color/compare/v1.13.0...v1.14.1)

---
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>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-06 12:21:51 +01:00
dependabot[bot]
95a6b6d81f Go: Bump golang.org/x/text from 0.3.8 to 0.6.0 (#6523)
Bumps [golang.org/x/text](https://github.com/golang/text) from 0.3.8 to 0.6.0.
- [Release notes](https://github.com/golang/text/releases)
- [Commits](https://github.com/golang/text/compare/v0.3.8...v0.6.0)

---
updated-dependencies:
- dependency-name: golang.org/x/text
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-24 08:34:13 -05:00
Tomas Kral
6883fb9de1 Update to latest Alizer (#6378)
* update to latest Alizer version

* run scripts/mockgen.sh

* go mod tidy; go mod vendor

* add wwhrd exceptions for MIT
2022-12-05 12:21:42 -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
dependabot[bot]
5a41b2606f Go: Bump github.com/securego/gosec/v2 from 2.12.0 to 2.14.0 (#6249)
Bumps [github.com/securego/gosec/v2](https://github.com/securego/gosec) from 2.12.0 to 2.14.0.
- [Release notes](https://github.com/securego/gosec/releases)
- [Changelog](https://github.com/securego/gosec/blob/master/.goreleaser.yml)
- [Commits](https://github.com/securego/gosec/compare/v2.12.0...v2.14.0)

---
updated-dependencies:
- dependency-name: github.com/securego/gosec/v2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-24 06:27:49 -04:00
Anand Kumar Singh
2337f4d0f5 update ginkgo to v2.1.6 (#6072)
Signed-off-by: anandrkskd <anandrkskd@gmail.com>

Signed-off-by: anandrkskd <anandrkskd@gmail.com>
2022-09-01 14:49:16 +02:00
Tomas Kral
bda53f15f3 update to OpenShift 4.11 (#6060)
* update openshift to 4.11

* go mod vendor
2022-08-29 04:43:48 -04: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
f73ae5bf9a Upgrade to registry-library v1.0.1 to ignore OWNERS files (#5712) 2022-05-05 02:36:26 -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
Dharmit Shah
f80207b029 Implements odo dev (#5441)
* Skeleton for odo dev and a unit test

* Update go mod for fsnotify

* Start method Pushes and then Watches

* More understandable code comments

* Client and interface for watch package

* Mocks for watch package

* Add CLI layer

* Fix infinite watch & push trigger

* Remove context flag from odo dev

* Add integration tests for odo dev

* Add klog to dev.go

* Replace errors.Wrap with fmt.Errorf

* Self review

* Removes `odo watch` command, but the business logic exists as it's
  used by odo dev
* Removes integration tests for `odo watch`
* Removes errors.go and types.go from pkg/dev/ since they are empty

* Check if error is not nil

* Use real client in watch unit tests

* Uncomment AfterEach from tests

* Modify the logs printed to stdout

* Changes based on Philippe's review

* Remove unused clients

* Parthvi's PR review and unit test fixes

* Fix gofmt message, remove message to not expect

* Fix lint complains, add mistakenly deleted URL creation logic

* Remove or modify tests that rely on odo push output

* Remove unused variables based on golangci-lint

* Fixes based on Philippe's review

* Initialize first index after first run of odo dev

* Modify odo dev test, and uncomment a mistake
2022-03-03 04:15:37 -05:00
Philippe Martin
ff03b8e49a Select and pull a devfile using Alizer (#5464)
* Add alizer library and test functionality

<!--
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/Developer-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/Writing-and-running-tests
4. Read how we approve and LGTM each PR: https://github.com/redhat-developer/odo/wiki/PR-Review

Documentation:

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

**What type of PR is this:**

<!--
Add one of the following kinds:
/kind bug
/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 feature

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

Adds the alizer library from
https://github.com/redhat-developer/alizer/tree/main/go as part of our
implementaion of `odo dev` and `odo init`.

This builds upon @feloy 's PR located here: https://github.com/redhat-developer/odo/pull/5434

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

Fixes #

**PR acceptance criteria:**

- [X] Unit test

- [X] Integration test

- [X] Documentation

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

N/A. Only function implementation

* New alizer version

* Use alizer for odo init

* Add integration tests

* Add Alizer to odo deploy

* review

* Ask component name for odo deploy

* Fix unit test

Co-authored-by: Charlie Drage <charlie@charliedrage.com>
2022-02-23 01:52:51 -05:00
Tomas Kral
88e89104ee update dependencies to OpenShift 4.9 (#5133)
* update to openshift-4.9/k8s-1.22

* go mod vendor
2021-11-09 20:16:30 +01:00
Jingfu Wang
1eff3210c4 Devfile registry telemetry integration (#5101)
* feat: devfile registry telemetry

Signed-off-by: Jingfu Wang <jingfwan@redhat.com>

* fix: resolve conflict issue

Signed-off-by: Jingfu Wang <jingfwan@redhat.com>

* refactor: centralize consts

Signed-off-by: Jingfu Wang <jingfwan@redhat.com>
2021-10-05 03:46:52 -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
Tomas Kral
7b44d593e4 use -mod=vendor with all go commands in Makefile and use vendoring to manage ginkgo (#4784)
* export GOFLAGS=-mod=vendor in Makefile

* use go get instead of go install

for installing test dependencies

* use tools approach to manage testing dependencies

When using this apporoach we can make sure that all dependencies in a
proper version are vendored with the source code.

* go mod vendor

* add wwhrd expection for github.com/hinshun/vt10x
2021-06-09 11:18:51 +02: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
Jingfu Wang
cdd92ef3a5 OCI-based devifle registry support (#4525)
* feat: OCI-based registry support

Signed-off-by: jingfu wang <jingfwan@redhat.com>

* refactor: download the whole stack by default

Signed-off-by: jingfu wang <jingfwan@redhat.com>

* fix: invalid folder issue

Signed-off-by: jingfu wang <jingfwan@redhat.com>

* fix: address comments

Signed-off-by: jingfu wang <jingfwan@redhat.com>

* fix: test case and auto migration

Signed-off-by: jingfu wang <jingfwan@redhat.com>

* fix: code issue detected by unit test

Signed-off-by: jingfu wang <jingfwan@redhat.com>

* test: fix unit test

Signed-off-by: jingfu wang <jingfwan@redhat.com>

* Merge branch 'master' of github.com:openshift/odo into odoMigration

Signed-off-by: jingfu wang <jingfwan@redhat.com>

* refactor: adopt the latest devfile library

Signed-off-by: jingfu wang <jingfwan@redhat.com>

* test: fix unit tests

Signed-off-by: jingfu wang <jingfwan@redhat.com>

* test: fix unit tests

Signed-off-by: jingfu wang <jingfwan@redhat.com>

* Merge branch 'master' of github.com:openshift/odo into odoMigration

Signed-off-by: jingfu wang <jingfwan@redhat.com>
2021-04-15 18:20:07 -04:00
Aditi Sharma
c194899343 Add Support for specifying git branch and tag in devfile (#4260)
* Update go-git

* Add support for specifying branch and tag name

* Fix gosec error
Fix Integration test

* Added warning if commit id is used as revision

Added Integration tests

* fix devfile

* Fix failing test update tag version

* Address review comment 1
2020-12-07 17:52:55 -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
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
Suraj Narwade
64f9db2e17 Updated vendor with service catalog and client-go (#716)
* Updated client-go, service-catalog

* updated vendor

* Removed go-github and k8s.io/api to resolve conflicts

* updated vendor
2018-09-11 11:14:57 -04:00
Charlie Drage
c7f7f53b35 Update vendoring for adding olekukonko/tablewriter 2018-05-28 10:06:36 -04:00
Tomas Kral
6f4e4605c4 Update vendor (glide up -v) to resolve missing dependencies 2018-05-04 13:56:27 +02:00
Charlie Drage
0d5cd93e96 Update vendoring 2018-04-19 09:13:59 -04:00
Tomas Kral
46cd5f0ee1 vendor: add fsnotify 2018-04-16 19:31:45 +05:30
Shubham Minglani
e74e858bc1 Add service-catalog to vendor/
This commit adds github.com/kubernetes-incubator/service-catalog,
version: v0.1.9 and github.com/satori/go.uuid, version: v1.1.0 (
which is required by service-catalog) to the vendor directory.

The standard procedure of adding the dependencies to glide.yaml
and then running `glide update --strip-vendor` was followed.
2018-03-26 15:25:36 +05:30