Configuring the OpenShift-Samples Operator
This procedure is needed only when OCP 4.3 Cluster is deployed in disconnected/restricted network/offline mode. The Samples Operator, which operates in the OpenShift namespace, installs and updates the Red Hat Enterprise Linux (RHEL)-based OpenShift Container Platform imagestreams and OpenShift Container Platform templates.
Most imagestreams in the OpenShift namespace managed by the Samples Operator point to images located in the Red Hat registry at registry.redhat.io . Mirroring images while preparing the local private registry will not apply to these imagestreams, hence this utility is created.
In certain circumstances, the management state of OpenShift-samples operator is
Removed
and not
Managed
. In the
Managed
state the Samples Operator is actively managing its resources and keeping the component active in order to pull sample imagestreams and images from the registry and ensure that the requisite sample templates are installed. When the python script is executed, it checks and changes the management state to
Managed
if not already and exits. The user needs to watch on the
openshift-samples operator and wait until it gets degraded. Once the operator degrades, the user must execute the python script again.
Ensure that OCP 4.3 cluster on baremetal in disconnected mode is deployed.
NOTE:After this process another 100 GB (approximately) of storage will be consumed from private local registry server, which was created for OpenShift deployment in disconnected mode.
Ensure that Python 3 is installed.
Ensure that
jq
is installed.Ensure that Docker is installed.