419 Commits

Author SHA1 Message Date
Parthvi Vala
35b27aca4f Fix typo with odo push (#5453) 2022-02-11 02:36:57 -05:00
Philippe Martin
850c7cd723 Remove commands that wont be implemented for v3-alpha1 (#5433)
* Remove odo staorage commands

* Remove "odo service" + "odo catalog * service" commands

* Remove odo link/unlink commands

* Remove related integration tests

* Remove application concept

* fix rebase

* fix test

* Remove config command

* Remove env command

* Remove application package

* Remove config package

* Move odogenerator and unions packages into kclient

* Move notify package to cli/version

* Fix script mockgen

* Remove odo debug command oand debug package

* Remove odo component describe/exec/log/status/test

* Remove operator-hub tests from IBM tests

* Remove operator hub tests from CI

* Fix e2e tests
2022-02-06 23:42:15 -05:00
Philippe Martin
b75fa552ce Init command (#5348)
* Init command

* More tests + check empty dir

* Move function from catalog to service package

* Interactive asks lang + type

* Interactive

* Refactor catalog package with interface

* Add mocks for catalog and init/asker

* Add tests

* Create sub-packages for init + starter project

* Rename files in pkg/catalog

* More validations

* fix

* Logs

* Rollback

* Go back and No starter

* Review

* Use filesystem.Filesystem in pkg/catalog

* Change pull from registry strategy

* More unit tests

* More tests

* Integration tests

* Review

* Use full path to fix problem with Unzip

* Add integration test for devfile with parent URI

* Add prefClient dependence to catalog package

* Move function to pkg/init package

* Review

* Fix rebase

* Review
2022-02-01 04:48:54 -05:00
Dharmit Shah
9fcb25ecbe Add server flag to odo login (#5363)
* Add server flag to odo login

* Add unit tests

* Catch but ignore the error for Complete

* Create factory method for KubernetesClient
2022-01-28 09:46:09 -05:00
xkwangcn
fb19b81902 add namespace in configure-installer-tests-cluster-s390x.sh (#5354)
Co-authored-by: wangxinke <wangxinke@192.168.1.11>
2022-01-17 10:19:20 +01:00
Tomas Kral
247d001ee7 bump to v2.5.0 (#5326) 2022-01-10 18:07:13 +01:00
Philippe Martin
e63773cc15 Separate layers : Preference (#5296)
* Refactor preference package

* Unit tests

* Apply suggestions from code review

Co-authored-by: Parthvi Vala <pvala@redhat.com>

* Review

* Review from Dharmit

* Replace panic with LogErrorAndExit

* Remove preference from kclient/oc_server

* Remove preference.New from devfile

* Remove preference.New from kclient/WaitAndGetPodWithEvents

* Get prefClient from CreateOptions

* Parthvi review

Co-authored-by: Parthvi Vala <pvala@redhat.com>
2022-01-10 16:00:53 +01:00
Anand Kumar Singh
e64ecc1f67 Remove scripts which are no longer in use (#5295)
* remove scripts which are no longer in use

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

* cleanup

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

* removing sync-docs.sh as we have moved to new docs

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

* cleanup

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

* remove FIt

Signed-off-by: anandrkskd <anandrkskd@gmail.com>
2022-01-10 10:36:50 +01:00
Philippe Martin
b20103c9f3 Separate layers - Application + Project (#5293)
* Application interface

* Application describe

* Application list

* Fix --output/-o flag

* Test Run()

* Tests on application pkg

* Unit tests on kclient relative to application

* comment

* Add ComponentList method to Application

* Project interface

* Project CLI tests

* Dharmit review
2022-01-05 16:08:40 +01:00
Anand Kumar Singh
eab2d100c1 Add release-bit-verification script (#5284)
* Add release-bit-verification script to check release bit and run test against release bit.

* make script executable

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

* create and use temp dir for verification

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

* use /tmp/tmp.p1dUCUH5Bn instead

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

* update help note for the script

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

* use PATH instead of GOBIN for binary

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

* fixing Helper note for the script

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

* remove hardcoded values

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

* exit if the binary is not correctly

Signed-off-by: anandrkskd <anandrkskd@gmail.com>
2021-12-22 21:30:16 +01:00
Dharmit Shah
e29f56d7ab s/openshift/redhat-developer in changelog script (#5308) 2021-12-21 14:32:24 +01:00
Rodolfo Napoles
34d142b43a Update to install OLM for K8S tests (#5306)
* Update to install OLM for K8S tests

* Update docs to add installation teps for OLM and revert changes in setup-operators.sh
2021-12-21 08:58:20 +01:00
Anand Kumar Singh
7329934c02 add ansible script to create a Win VM (#5288)
* add ansible script to create a Win VM

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

* add sshkey_id var

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

* move comment to var.yaml

Signed-off-by: anandrkskd <anandrkskd@gmail.com>
2021-12-20 10:42:28 +01:00
Philippe Martin
c58e4c7e6b Create a cmdline interface for testing Context creation + Complete function (#5256)
* Create a cmdline interface
The interface abstracts the cobra.Command

* Remove cobra relation from Context

* Remove cmd parameter to Run method

* Remove direct use of cobra.Command

* Add mock for cmdline interface

* First test

* Fix typo in rebase

* Restore SetClusterType

* Move constants to specific package to avoid import cycle

* Fix rebase
2021-12-15 00:42:55 +01:00
Tomas Kral
5f79c542a8 openshift/odo -> redhat-developer/odo (#5268)
* openshift/odo -> redhat-developer/odo

* update more links to redhat-developer
2021-12-01 16:38:34 +01:00
Anand Kumar Singh
3f32a21fbb setup minikube before env setup (#5265)
* setup minikube before env setup

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

* install operator only if cluster is recreated

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

* update OLM version, and comments

Signed-off-by: anandrkskd <anandrkskd@gmail.com>
2021-12-01 13:00:27 +01:00
Dharmit Shah
16dd43ce19 Bump odo to 2.4.3 (#5261) 2021-11-30 08:40:22 +01:00
Philippe Martin
ac478e9cd1 odo deploy command (#5228)
* Update devfile library

* deploy cmd

* Init "odo deploy" command reference

* Integration test

* Fix odo deploy

* Filter components to apply during odo push

* Output

* Remove redondant level 1 title

* Doc review

* Use server-side apply to apply Kubernetes components

* Review

* Replace PROJECT_ROOT with PROJECTS_ROOT
2021-11-24 15:26:03 +01:00
Mohammed Ahmed
f7c6299f0c Bumping odo version v2.4.1 -> v2.4.2 (#5218)
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
2021-11-09 16:30:29 +01:00
Philippe Martin
eab5036c53 odo build-images command (#5192)
* Init

* Add command reference

* Integration tests (tbc)

* Fix reference doc order

* Stream out/err of Docker/podman

* Tests

* Move images to devfile directory
2021-11-05 15:06:22 +01:00
Mohammed Ahmed
143a1b31ec Adding darwin-arm64 build for artifacts (#5197)
* Adding darwin-arm64 build for artifacts

Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>

* Updating spec missed in last commit

Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
2021-10-29 12:57:29 +00:00
Philippe Martin
80530fece2 Ansible playbooks to deploy and configure Kubernetes/Openshift clusters on IBM Cloud (#5163) 2021-10-26 13:48:27 +00:00
Dharmit Shah
43c72742e9 Remove Priti from OWNERS files (#5170) 2021-10-26 10:13:25 +00:00
Dharmit Shah
dbf7ad592a Bump odo version to 2.4.1 (#5168) 2021-10-25 14:15:52 +00:00
xkwangcn
54d6bd3a29 add redis-operator install for s390x (#5165)
Co-authored-by: wangxinke <wangxinke@wangxinkes-mbp.cn.ibm.com>
2021-10-25 06:08:49 +00:00
Tomas Kral
26a0d0d293 changelog-script.sh update links to installation guide and binaries (#5152) 2021-10-18 13:43:44 +02:00
Philippe Martin
56741d6d88 Use Redis operator to test odo service create with parameters (#5142)
* Do not install PG operator

* Rewrite tests with Redis operator
2021-10-13 19:56:13 +02:00
Dharmit Shah
07d2b801df Use go 1.16 for rpm builds (#5140) 2021-10-13 13:18:59 +02:00
Dharmit Shah
b0b2480dcc Bump version to 2.4.0 (#5136) 2021-10-11 18:39:13 +02:00
Philippe Martin
0be3021eeb Do not use Service Binding Operator (#5113)
* Do not use SBR anymore

* Do not install SBO in cluster

* Do not check for SBO from integration tests

* Disable tests about SBO
2021-10-05 06:40:50 -04:00
Philippe Martin
99484663b7 Use interface for kclient (#5065)
* Use interface for kclient

* Fix + add mocks

* Add mockgen script

* remove unused param + add unit test

* fix rebase
2021-09-27 03:51:12 -04:00
Mrinal Das
74fc779a4a Removes the s2i flag from the create file (#5023) 2021-09-21 09:18:39 -04:00
Rodolfo Napoles
f26cf1c1f0 fixed JOB_NAME (#5077) 2021-09-20 14:31:42 -04:00
Anand Kumar Singh
44c35d5390 resolve CI job script error (#5069)
* resolve job script error

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

* run only devifle e2e test

Signed-off-by: anandrkskd <anandrkskd@gmail.com>
2021-09-14 09:12:55 -04:00
Anand Kumar Singh
1ffc88549d update timeout to 8mins (#5068)
Signed-off-by: anandrkskd <anandrkskd@gmail.com>
2021-09-13 19:55:27 -04:00
Tomas Kral
4ba144d516 add logic to run github_changelog_generator in container (#5048) 2021-09-08 12:51:22 -04:00
Rodolfo Napoles
b9765a4bee Modifies and adds scripts to run K8S tests on IBM Cloud cluster (#5022)
* Scripts for PSI minishift tests

* added line at end of script

* added line at end of script

* emoved info as requested

* Updates as per review feedback

* deleting unwanted script as it was replaced with other files

* Scripts for PSI minishift tests

* Applied workaround to use env variable to select minikube or minishift

* Set CLUSTER env variable to appply workaround for firewall not taking parameters

* added curl for missing script and added misiing /, removed unnecessary cd

* Separating minishift from merged minikube-minishift scripts due to firewall not taking parameters for script execution

* Changes to run tests in IBM Cloud, changed TEST_EXEX_NODES=24

* remove non required changes (old stuff) and remove non required scripts (old stuff)

* Modified and added scripts to run tests in IBM Cloud cluster

* Additional changes for to run K8S test in IBM Cloud

* Removed unnecessary line

* changes to run tests on K8S cluster in IBM Cloud

* ncorportaed changes based on feedback for IBM Cloud tests

* Chnages based in feedback for IBM Cloud

* updated string for home dir

* removing test-integration-devfile as it ends with failures

* Fixed if statement

* changes to Makefile for number of nodes

* added requested comment to Makefile about nodes if running in IBM Cloud
2021-09-08 14:39:21 +02:00
Tomas Kral
2ae31fb669 release v2.3.1 (#5046) 2021-09-07 13:40:38 +02:00
Parthvi Vala
b35d5380d6 Fix clusterwide permission issues with odo link and run K8s tests with a developer user (#5032)
* Fix clusterwide permission issue related to CRD while linking without the SBO

* Initial test work

* Create developer user for minikube

* Add script to create developer user for minikube

* Attempt at fixing failures with minikube setup

* Add debugger statement

* Fix failures

* Fix CI failures

* Add apiGroup for ingress

* Temporary attempt at fixing CI failures

* Remove test

* Add comments, and other requested changes by feloy

* Fix misplaced else logic

* Update comment as suggested by feloy

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

* Add warning

Co-authored-by: Philippe Martin <contact@elol.fr>
2021-09-06 17:18:37 +02:00
Anand Kumar Singh
8ad4b0921e add PSI and IBM cloud to the script for test (#4946)
* add PSI and IBM cloud to the script for test

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

* fix syntax error

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

* fix syntax error

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

* disable operator hub test

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

* cleaning NS before exiting build

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

* uncomment ibmlogin

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

* remove debug code

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

* typo resolved

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

* update cluster login for IbmCloud openshift cluster

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

* login for IBM cloud

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

* copy test artifacts

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

* copy test artifacts for operator-hub, devfile

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

* fix typo

Signed-off-by: anandrkskd <anandrkskd@gmail.com>
2021-09-06 10:08:33 +02:00
Anand Kumar Singh
74f63b9c4f Cleanup namespaces (#4985)
* Script for cleaning projects

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

* adding script,function for cleaning projects

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

* generify function

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

* updated with comment

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

* update script and use ioutil.writefile

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

* file permission change to 0600

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

* add labels and label checks

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

* rebase typo fix

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

* remove labels, add configmaps with data, team and type

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

* use odo to create project

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

* add team check for cleanup

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

* remove namespace labeling

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

* rebase

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

* fix lint error

Signed-off-by: anandrkskd <anandrkskd@gmail.com>
2021-09-03 07:45:11 +02:00
Mohammed Ahmed
089b8ea26c Bumping odo version v2.2.4 -> v2.3.0 (#5002)
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
2021-08-18 10:35:13 -04:00
Mohammed Ahmed
9c4a3f7f35 Updating automatic changelog generation script (#5005)
* Updating automatic changelog generation script

Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>

* Making script executable

Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>

* Cleaning up changes

Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>

* Removing duplicate directive

Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
2021-08-18 09:48:39 +00:00
Priti Kumari
d37298a367 Fix reports directory for operatorhub nightly tests (#4972)
* Fix reports directory for operatorhub nightly tests

* copy reports for project, login logout and operatorhub tests to artifacts dir reports

* one line command for copying both reports
2021-08-09 13:24:35 +00:00
Mohammed Ahmed
f12e036b5c Bumping odo version before release (#4966)
* Bumping odo version before release

Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>

* Update Changelog.md

Co-authored-by: Dharmit Shah <shahdharmit@gmail.com>

* Changing back to next

Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>

* Adding more items to changelog

Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>

* Updating changelog

Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>

Co-authored-by: Dharmit Shah <shahdharmit@gmail.com>
2021-08-04 14:38:04 +00:00
Priti Kumari
63073ebdb1 Nightly CI and Operator Setup script (#4958)
* Nightly CI and Operator Setup script

* Fix syntax error

* Addressed review comment

* Update changelog and few review comment
2021-08-04 11:34:57 +00:00
Priti Kumari
dbaf95599c Do not cancel the whole execution if one of the test suite fails (#4943) 2021-08-03 10:56:42 +00: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
Mohammed Ahmed
4e2f6ddf18 Bumping version of odo for release (#4880)
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
2021-07-06 14:02:27 -04:00
Priti Kumari
9dba98a9e2 Enable olm and Run operatorhub tests on kubernetes cluster (#4754)
* Running operatorhub tests on kubernetes cluster

* Fixing script path

* Align spec field in service binding subscription yaml

* Adding debugging steps for Finding ImagePullBackOff Reason

* Adding mongodb operator and modifying test accordingly to resolve https://github.com/openshift/odo/issues/4651#issuecomment-851269315

* Fixing command typo for kubernetes

* Fixing regex issue

* Fixing mongodb subscription yaml format

* Injecting docker account secrets into kubernetes cluster for etcd services

* remove setup-kube-operators file

* Separate setup for kubernetes operator

* Adding operators common for both ocp and minikube

* sync function for ocp and minikube

* Adding some tests refactor

* refactoring operator hub tests for redis operator

* Finding reason for the pending state of redis pod and fix regex format

* Fixing regex format

* Using redis instance CR definition from example file

* Modifying test to use RedisCluster operator

* Fixing redis-secret failure for specific namespace in the test

* removing not used function for copying example

* Refactoring operator test

* redis pod name are changing so frequently so updating it once again

* Refactored operator link test

* Skipping postgresql test for kubernetes

* Fixing invalid devfile with link

* Fixing file not found error

* Address review comments

* Run all tests on ocp and kubernetes

* Shifting to Redis CRD instead of RedisCluster and review comments

* Fixing failure related to no name

* Address cosmetic changes as per review

* olm installation on minikube
2021-07-06 10:05:27 -04:00