All Products
Search
Document Center

Microservices Engine:Update the version of a plug-in

Last Updated:Sep 20, 2023

If a plug-in is enabled, you cannot edit the plug-in. If you want to dynamically update the plug-in, you can update the plug-in version. This topic describes how to update the version of a plug-in.

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 name 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 subtab.

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

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

    ParameterDescription
    Plug-in NameEnter a name of the plug-in. The name must be unique.
    Plug-in DescriptionEnter a description of the plug-in. After you configure this parameter, the description is displayed on the plug-in card.
    WebAssembly LanguageSelect a programming language that is used to develop a WebAssembly plug-in from the drop-down list.
    WebAssembly FileUpload the plug-in binary file that is compiled on your on-premises machine. The file name extension must be .wasm.
    Configuration VerificationIf the plug-in needs to be configured, you can enter the configuration fields that need to be verified and the required field values. This way, the fields are verified when you start the plug-in. If the plug-in does not need to be configured, leave the code editor empty.
    Plug-in Execution StageSelect a stage from the drop-down list. The plug-in execution stages are implemented in the following order: Authorization > Authentication > Statistics > Default. If the execution of the plug-in does not depend on the execution order of other plug-ins, select Default from the drop-down list.
    Plug-in Execution PriorityThe 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 custom value, we recommend that you enter an integral multiple of 10.
  7. After the version is released, click the resource card of the plug-in. On the Plug-in Configuration tab, select the destination version and click Update Version.