3.3.2. Adding the CLI Manager Operator custom index to Krew


You can use the terminal to add the CLI Manager Operator custom index to Krew so that the CLI Manager Operator will work in disconnected environments. This procedure is required for the CLI Manager Operator to function correctly and needs to be done only once.

注意

If you use self-signed certificates, mark the certificate as trusted on your local operating system to use Krew.

Prerequisites

Procedure

  1. To establish the ROUTE variable, enter the following command:

    $ ROUTE=$(oc get route/openshift-cli-manager -n openshift-cli-manager-operator -o=jsonpath='{.spec.host}')
  2. To add the custom index to Krew, enter the following command:

    $ oc krew index add <custom_index_name> https://$ROUTE/cli-manager
  3. To update Krew, enter the following command and check for any errors:

    $ oc krew update

    Example output

    Updated the local copy of plugin index.
    Updated the local copy of plugin index <custom_index_name>.
    New plugins available:
    * ocp/<plugin_name>

Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

關於紅帽

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

让开源更具包容性

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

关于红帽文档

Legal Notice

Theme

© 2026 Red Hat
返回顶部