Commit Graph

21 Commits

Author SHA1 Message Date
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]
8f22320c01 Go: Bump google.golang.org/protobuf from 1.31.0 to 1.33.0 (#7226)
Bumps google.golang.org/protobuf from 1.31.0 to 1.33.0.

---
updated-dependencies:
- dependency-name: google.golang.org/protobuf
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-14 08:52:30 +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]
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]
765c1e12e9 Go: Bump github.com/operator-framework/api from 0.17.6 to 0.17.7 (#7108)
Bumps [github.com/operator-framework/api](https://github.com/operator-framework/api) from 0.17.6 to 0.17.7.
- [Release notes](https://github.com/operator-framework/api/releases)
- [Changelog](https://github.com/operator-framework/api/blob/master/RELEASE.md)
- [Commits](https://github.com/operator-framework/api/compare/v0.17.6...v0.17.7)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-09 07:11:27 +00: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
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
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
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
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
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
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
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
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
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
John Collier
0add600035 Add Docker client library for odo (#2724)
* Vendor github.com/docker/docker

* Add other dependencies needed for Docker client

* First pass of a docker client in odo

Signed-off-by: John Collier <John.J.Collier@ibm.com>

* More unit tests

Signed-off-by: John Collier <John.J.Collier@ibm.com>

* Remove unneeded sections in fake docker client

Signed-off-by: John Collier <John.J.Collier@ibm.com>

* Remove extra line added

Signed-off-by: John Collier <John.J.Collier@ibm.com>

* Catch error

Signed-off-by: John Collier <John.J.Collier@ibm.com>

* Remove license that was added via copy and paste

Signed-off-by: John Collier <John.J.Collier@ibm.com>

* Address review comments

Signed-off-by: John Collier <John.J.Collier@ibm.com>
2020-03-25 12:45:55 +01: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