Skip to content

Commit

Permalink
Merge branch 'dev' into case-fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mew2057 authored Apr 22, 2020
2 parents af312a4 + bc563d3 commit e0598f8
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions docs/source/developers/olm.rst
Original file line number Diff line number Diff line change
Expand Up @@ -61,32 +61,32 @@ One method for achieving this is to host the CSV on `quay.io <https://quay.io>`_
.. code-block:: bash
# Set your variables
REPO_NAME="<Your Repo Name>"
QUAY_REPO_NAME="<Your Repo Name>"
QUAY_USER="<Your Quay Username>"
CHANNEL_NAME="test"
# Create the helm project
cd ~
helm create ${REPO_NAME}
cd ${REPO_NAME}
helm create ${QUAY_REPO_NAME}
cd ${QUAY_REPO_NAME}
# Push to quay
helm registry login quay.io
helm registry push --namespace ${QUAY_USER} quay.io
helm registry push --namespace ${QUAY_USER} --channel ${CHANNEL_NAME} quay.io
4. Using the helper script, sync the latest csv.
4. Edit the variables for the test playbook (which will push your csv):

.. code-block:: bash
# Assumed to be relative to this repositories root.
export OPERATOR_DIR="operator/deploy/olm-catalog/ibm-spectrum-scale-csi-operator"
export QUAY_NAMESPACE=${QUAY_USER}
export PACKAGE_NAME=${REPO_NAME}
export QUAY_USERNAME="<An account with write access to the application>"
export QUAY_PASSWORD="<The account password, might want to source from file>"
tools/scripts/push_app.sh
vi tools/ansible/olm-test-playbook.yaml
5. Deploy using `olm-test-playbook.yaml`, you'll need to set the user name and password:

.. code-block:: bash
cd tools/ansible/
ansible-playbook olm-test-playbook.yaml --extra-vars '{"QUAY_PASSWORD":"A_TOKEN"}'
At this point your application is ready to be subscribed to. Use the following templates for k8s and OpenShift respectively.

Expand Down

0 comments on commit e0598f8

Please sign in to comment.