THIS IS ONLY A TEST INSTANCE. DON'T DO IMPORTANT WORK HERE!

Commit b8cad938 authored by Oleksandr Andriienko's avatar Oleksandr Andriienko
Browse files

Address changes and fix typos.


Signed-off-by: default avatarOleksandr Andriienko <oandriie@redhat.com>
parent feb0ebe2
......@@ -36,33 +36,38 @@ Then the changes can be applied in the newly created CSV files.
## Local testing che-operator development version using OLM
To test che-operator with OLM you need to have application registry. You can register on the quay.io and
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 `deploy/operator.yaml` image from official to development.
Change in the `deploy/operator.yaml` operator image from official to development.
Generate new nigthly olm bundle packages:
Generate new nightly olm bundle packages:
```shell
./update-nightly-olm-files.sh
$ ./update-nightly-olm-files.sh
```
Olm bundle packages will be generated in the folder `olm/eclipse-che-preview-${platform}`.
Olm bundle packages will be generated in the folders `olm/eclipse-che-preview-${platform}`.
Push che-operator bundles to your application registry:
```shell
export QUAY_USERNAME=${username} && \
$ 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 using ui make your application public.
Start minikube(or CRC) and after that lauch test script in the olm folder:
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:
```shell
export APPLICATION_REGISTRY=${application_registry_namespace} && ./testCSV.sh ${platform} ${package_version} ${optional-namespace}
$ export APPLICATION_REGISTRY=${application_registry_namespace} && ./testCSV.sh ${platform} ${package_version} ${optional-namespace}
```
This script should install che-operator using OLM and check that Che server was deployed.
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.
#!/bin/bash
#
# Copyright (c) 2020 Red Hat, Inc.
# This program and the accompanying materials are made
# available under the terms of the Eclipse Public License 2.0
# which is available at https://www.eclipse.org/legal/epl-2.0/
#
# SPDX-License-Identifier: EPL-2.0
#
# Contributors:
# Red Hat, Inc. - initial API and implementation
#
# Scripts to prepare OLM(operator lifecycle manager) and install che-operator package
# with specific version using OLM.
BASE_DIR=$(cd "$(dirname "$0")" && pwd)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment