3.3. Installing the CLI Manager Operator
You can simplify the installation and management of CLI plugins in connected and disconnected environments with the CLI Manager Operator. The CLI Manager Operator makes Krew compatible with the oc CLI, allowing cluster administrators to manage custom CLI plugin resources.
Using the CLI Manager Operator to install and manage plugins for the OpenShift CLI is a Technology Preview feature only. Technology Preview features are not supported with Red Hat production service level agreements (SLAs) and might not be functionally complete. Red Hat does not recommend using them in production. These features provide early access to upcoming product features, enabling customers to test functionality and provide feedback during the development process.
For more information about the support scope of Red Hat Technology Preview features, see Technology Preview Features Support Scope.
3.3.1. Installing the CLI Manager Operator 링크 복사링크가 클립보드에 복사되었습니다!
You can install the CLI Manager Operator to facilitate adding CLI plugins in both connected and disconnected environments.
Krew always works with OpenShift CLI (oc) without the CLI Manager Operator installed. You can use the same commands outlined in this documentation to use Krew with oc. For more information, see Krew documentation.
Prerequisites
- Krew is installed.
-
You are logged in to OpenShift Container Platform as a user with the
cluster-adminrole. - You have access to the OpenShift Container Platform web console.
Procedure
- Log in to the OpenShift Container Platform web console.
Create the required namespace for the CLI Manager Operator:
-
Navigate to Administration
Namespaces and click Create Namespace. -
In the Name field, enter
openshift-cli-manager-operatorand click Create.
-
Navigate to Administration
Install the CLI Manager Operator:
-
Navigate to Ecosystem
Software Catalog. - In the filter box, enter CLI Manager Operator.
- Select the CLI Manager Operator and click Install.
On the Install Operator page, complete the following steps:
- Ensure that the Update channel is set to tech preview, which installs the latest Technology Preview release of the CLI Manager Operator.
- From the drop-down menu, select A specific namespace on the cluster and select openshift-cli-manager-operator.
- Click Install.
-
Navigate to Ecosystem
Create the
CliManagerresource by completing the following steps:- Navigate to Installed Operators.
- Select CLI Manager Operator.
- Select the CLI Manager tab.
- Click Create CliManager.
- Use the default Name.
Click Create.
-
The new
CliManagerresource is listed in the CLI Manager tab.
-
The new
Verification
-
Navigate to Ecosystem
Installed Operators. - Verify that CLI Manager Operator is listed with a Status of Succeeded.