3.3.3. Adding a plugin to the CLI Manager Operator


You can add a CLI plugin to the CLI Manager Operator by creating a new plugin resource in the OpenShift Container Platform web console’s YAML view.

Prerequisites

  • You are logged in to OpenShift Container Platform as a user with the cluster-admin role.
  • The CLI Manager Operator is installed.

Procedure

  1. Log in to the OpenShift Container Platform web console.
  2. Navigate to Ecosystem Installed Operators.
  3. From the list, select CLI Manager Operator.
  4. Select the CLI Plugin tab.
  5. Click Create Plugin.
  6. In the text box, enter the information for the plugin you are installing. See the following example YAML file.

    Example YAML file to add a plugin

    apiVersion: config.openshift.io/v1alpha1
    kind: Plugin
    metadata:
      name: <plugin_name>
    spec:
      description: <description_of_plugin>
      homepage: <plugin_homepage>
      platforms:
      - bin:
        files:
        - from: <plugin_file_path>
          to: .
        image: <plugin_image>
        imagePullSecret:
        platform: <platform>
      shortDescription: <short_description_of_plugin>
      version: <version>

    where:

    <plugin_name>
    Specifies the name of the plugin you plan to use in commands.
    bin
    Specifies the path to the plugin executable.
    imagePullSecret
    Optional field if the registry is not public to add a pull secret to access your plugin image.
    <platform>
    Add the architecture for your system; for example, linux/amd64, darwin/arm64, windows/amd64, or another architecture.
    <version>
    The version must be in v0.0.0 format.
  7. Click Save.

Verification

  • Enter the following command to see if the plugin is listed and has been added successfully:
$ oc get plugin/<plugin_name> -o yaml
  • Example output:
<plugin_name> ready to be served.
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

關於紅帽

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

让开源更具包容性

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

关于红帽文档

Legal Notice

Theme

© 2026 Red Hat
返回顶部