Before using this script, ensure that you have the following prerequisites in place:
-
Openshift Client binary (OC) is installed and configured correctly.
-
Operator SDK is installed.
-
The necessary kubeconfig file is available and properly configured.
-
You have the required cnf configuration and a list of Operator bundles and packageName (
bundlelist-certified-new.txt
) that need to be tested. -
The
tnf_config.yml
andrun-tnf-container.sh
files are available in the same directory as this script. -
You have the required permissions and access to create projects, pods, and manage operators on the OpenShift cluster.
-
You have the registry credentials for
registry.connect.redhat.com
andregistry.redhat.io
To use the script, follow these steps:
- To get all the packages present in a given catalog:
oc get packagemanifest | grep "Red Hat Operators" > redhat-operators.txt
- Get BundleImage for each of the packages:
while read i; do ./get-latest-bundle.sh $i; done < redhat-operators.txt > redhat-bundelist.txt
- Create a directory to store the results for each CNF runs:
mkdir -p report-redhat-opertaors
- Modify the
run-cnf-operator.sh
script to useredhat-bundlelist.txt
and above created directory