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-admin role.
  • You have access to the OpenShift Container Platform web console.

Procedure

  1. Log in to the OpenShift Container Platform web console.
  2. Create the required namespace for the CLI Manager Operator:

    1. Navigate to Administration Namespaces and click Create Namespace.
    2. In the Name field, enter openshift-cli-manager-operator and click Create.
  3. Install the CLI Manager Operator:

    1. Navigate to Ecosystem Software Catalog.
    2. In the filter box, enter CLI Manager Operator.
    3. Select the CLI Manager Operator and click Install.
    4. On the Install Operator page, complete the following steps:

      1. Ensure that the Update channel is set to tech preview, which installs the latest Technology Preview release of the CLI Manager Operator.
      2. From the drop-down menu, select A specific namespace on the cluster and select openshift-cli-manager-operator.
      3. Click Install.
  4. Create the CliManager resource by completing the following steps:

    1. Navigate to Installed Operators.
    2. Select CLI Manager Operator.
    3. Select the CLI Manager tab.
    4. Click Create CliManager.
    5. Use the default Name.
    6. Click Create.

      1. The new CliManager resource is listed in the CLI Manager tab.

Verification

  1. Navigate to Ecosystem Installed Operators.
  2. Verify that CLI Manager Operator is listed with a Status of Succeeded.
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

关于红帽文档

Legal Notice

Theme

© 2026 Red Hat
返回顶部