che-operator/olm
Anatoliy Bazko c9af01f769 Release OLM files to 7.9.2
Signed-off-by: Anatoliy Bazko <abazko@redhat.com>
2020-03-22 12:30:14 +02:00
..
eclipse-che-preview-kubernetes Release OLM files to 7.9.2 2020-03-22 12:30:14 +02:00
eclipse-che-preview-openshift Release OLM files to 7.9.2 2020-03-22 12:30:14 +02:00
README.md Address changes and fix typos. 2020-02-07 11:25:29 +02:00
check-yq.sh Fix release scripts after first use (#60) 2019-07-26 12:26:52 -04:00
docker-run.sh Don't allow installing Che with Openshift Oauth when no OAuth user exist (#74) 2019-09-02 18:47:30 +02:00
olm.sh Address changes and fix typos. 2020-02-07 11:25:29 +02:00
prepare-community-operators-update.sh Release 7.8.0 (#163) 2020-02-03 15:47:48 +02:00
push-olm-files-to-quay.sh Improve scripts for local testing installation che-operator via OLM. 2020-02-06 15:36:29 +02:00
release-olm-files.sh Release 7.8.0 (#163) 2020-02-03 15:47:48 +02:00
testCSV.sh Improve scripts for local testing installation che-operator via OLM. 2020-02-06 15:36:29 +02:00
testUpdate.sh Improve scripts for local testing installation che-operator via OLM. 2020-02-06 15:36:29 +02:00
update-nightly-olm-files.sh Fix accidentally broken script 2020-02-11 09:35:29 +02:00

README.md

Pre-Requisites

OLM packages scripts are using some required dependencies that need to be installed

WARNING: Please make sure to use the precise v0.10.0 version of the operator-sdk. If you use a more recent version, you might generate a CRD that is not compatible with Kubernetes 1.11 and Openshift 3.11 (see issue https://github.com/eclipse/che/issues/15396).

If these dependencies are not installed, docker-run.sh can be used as a container bootstrap to run a given script with the appropriate dependencies.

Example : $ docker-run.sh update-nightly-olm-files.sh

Make new changes to OLM artifacts

Every change needs to be done in a new OLM artifact as previous artifacts are frozen.

A script is generating new folders/files that can be edited.

In olm folder

  • If all dependencies are installed on the system:
$ update-nightly-olm-files.sh
  • To use a docker environment
$ docker-run.sh update-nightly-olm-files.sh

Then the changes can be applied in the newly created CSV files.

Local testing che-operator development version using OLM

To test a che-operator with OLM you need to have an application registry. You can register on the quay.io and use application registry from this service. Build your custom che-operator image and push it to the image registry(you also can use quay.io). Change in the deploy/operator.yaml operator image from official to development.

Generate new nightly olm bundle packages:

$ ./update-nightly-olm-files.sh

Olm bundle packages will be generated in the folders olm/eclipse-che-preview-${platform}.

Push che-operator bundles to your application registry:

$ export QUAY_USERNAME=${username} && \
export QUAY_PASSWORD=${password} && \
export APPLICATION_REGISTRY=${application_registry_namespace} && \
./push-olm-files-to-quay.sh

Go to the quay.io and use ui(tab Settings) to make your application public. Start minikube(or CRC) and after that launch test script in the olm folder:

$ export APPLICATION_REGISTRY=${application_registry_namespace} && ./testCSV.sh ${platform} ${package_version} ${optional-namespace}

Where are:

  • platform - 'openshift' or 'kubernetes'
  • package_version - your generated che-operator package version(for example: 7.8.0 or 9.9.9-nightly.1562083645)
  • optional-namespace - kubernetes namespace to deploy che-operator. Optional parameter, by default operator will be deployed to the namespace eclipse-che-preview-test

This script should install che-operator using OLM and check that the Che server was deployed.