Function Mesh provides a tool, which is used to migrate Pulsar Functions from the function worker of a Pulsar cluster to Function Mesh. The tool encapsulates the pulsarctl configurations, which is used to transfer Pulsar configurations.
Prerequisites
Go 1.15 or higher
Steps
Build the tool.
Define a pulsarctl.properties configuration file for the tool.
Replace the PATH variable with the absolute path to the pulsarctl.properties configuration file.
Build the tool from the source code.
git clone https://github.com/streamnative/function-mesh
cd function-mesh/tools
go build
Generate the YAML file which is used to create the function in Function Mesh.
./tools
The generated YAML file adopts a structure as below, where the public, default, and function-sample represent the tenant name, namespace name, and function name respectively.
functions
└── public
└── default
└── function-sample.yaml