Update a plug-in version

更新时间:
复制 MD 格式

You cannot edit enabled plug-ins. To update a plug-in, you must release a new version. This topic describes how.

Prerequisites

Procedure

  1. Log on to the MSE console, and select a region in the top navigation bar.

  2. In the left-side navigation pane, choose Cloud-native Gateway > Gateways. On the Gateways page, click the ID of the gateway.

  3. In the left-side navigation pane of the gateway details page, click Plug-in Marketplace.

  4. On the All Plug-ins tab, click the Custom tab.

  5. On the resource card of the target plug-in, click the 三个点 icon on the right and select Release New Version.

  6. In the Release New Version panel, enter the plug-in information and click OK.

    Parameter

    Description

    Plug-in Name

    Enter the name of the plug-in. The name must be unique.

    Plug-in Description

    Enter a description of the plug-in. After you configure this parameter, the description is displayed on the plug-in card.

    WebAssembly Language

    Select a programming language that is used to develop a WebAssembly plug-in from the drop-down list.

    WebAssembly File

    Upload the plug-in binary file that is compiled and created on your on-premises machine. The filename extension must be .wasm and the file size cannot exceed 50 MB.

    Plug-in Execution Stage

    The stages are processed in the following order: Authorization > Authentication > Statistics > Default. If the plug-in's execution does not depend on other plug-ins, select the Default stage.

    Plug-in Execution Priority

    The execution priority of the plug-in in the specified stage. A large value indicates a high priority. If the execution of the plug-in does not depend on the execution order of other plug-ins, retain the default value. If you want to specify a value, we recommend that you enter an integral multiple of 10.

  7. After the new version is released, click the plug-in's resource card. On the Plug-in Configuration tab, select the desired Target version and click Update Version.