18 Commits

Author SHA1 Message Date
dependabot[bot]
1a9536eb29 Go: Bump sigs.k8s.io/yaml from 1.3.0 to 1.4.0 (#7164)
Bumps [sigs.k8s.io/yaml](https://github.com/kubernetes-sigs/yaml) from 1.3.0 to 1.4.0.
- [Release notes](https://github.com/kubernetes-sigs/yaml/releases)
- [Changelog](https://github.com/kubernetes-sigs/yaml/blob/master/RELEASE.md)
- [Commits](https://github.com/kubernetes-sigs/yaml/compare/v1.3.0...v1.4.0)

---
updated-dependencies:
- dependency-name: sigs.k8s.io/yaml
  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-11 11:19:45 +00: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
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
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
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
Mrinal Das
2e661bf71d Adds support for linking using service binding without the service binding operator (#4905)
* Adds support for linking using service binding without the service binding operator

* Uses isLinkResource() to detect the service binding resources

* Updates the success message for operator based links

* Updates the flow to creating the deployment first

* Adds annotations to the Redis CR in devfile-with-link.yaml file

* Updates the flow to create only the services before the deployment.

It also separates the push related code for link and service creation.

* Moves the for loop in setLinksServiceNames() inside the if condition

* Adds and returns a error message when the pipeline throws a forbidden type of error

* Moves the updation of services and pvcs with owner references before attempting creation of links
2021-08-02 15:42:41 +00:00
Tomas Kral
0212068939 Update devfile/library to v1.0.0 (#4769)
* update devfile/library to v1.0.0

* go mod vendor

* update codebase to make it compatible with new devfile/library
2021-06-15 00:36:07 -04: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
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
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
319b914b01 Caching registry responses to fix client.Timeout issue (#3681)
* debuging timeout issue

* use httpcaching (15min) for registry related requests

* update vendor

* add RegistryCacheTime preference option

* fix preference unit test

* add DownloadFileWithCache function

* address PR review comments

* address PR review comments

* errors related to caching should not be fatal

* cleaner cache logging
2020-08-06 04:49:48 +02:00
Dharmit Shah
e66e8ca157 Adds support for linking a Devfile component with an Operator backed service (#3557)
* Add dependency on service binding operator

* Add extra dependencies for service binding operator

* Adds support for odo link between component and operator hub service

* Add owner reference for the link

* Deals with inability to install SBO the OLM way on k8s

https://github.com/redhat-developer/service-binding-operator/issues/536

* Adds and removes 'odo link' entry to/from env.yaml

* Makes odo push set appropriate "envFrom" for a podTemplateSpec

* Changes to unit test & those based on PR feedback

* Rebase and "glide update -v"

* Make the linter happy. Remove unused variables

* Fix unit test of envinfo to include 'link' paramter

* Move 'odo link' tests under operator hub tests

* Install SBO on the cluster

* Changes as per PR feedback

* Check for Operator before trying to create a link

* Change error message expected in tests

* Make example less confusing by using less 'example'
2020-07-23 13:49:09 +02: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