benthos-plugin-example icon indicating copy to clipboard operation
benthos-plugin-example copied to clipboard

Add enterprise license loading to the example

Open mihaitodor opened this issue 9 months ago • 0 comments

Users will have to do the following if they wish to use enterprise components in custom builds:

package main

import (
	"context"

	"github.com/redpanda-data/benthos/v4/public/service"
	"github.com/redpanda-data/connect/v4/public/license"

	// Import full suite of FOSS and Enterprise connect components
	_ "github.com/redpanda-data/connect/public/bundle/enterprise/v4"
)

func main() {
	service.RunCLI(context.Background(),
		service.CLIOptOnConfigParse(func(pConf *service.ParsedConfig) error {
			license.LocateLicense(pConf.Resources())
			return nil
		}),
	)
}

mihaitodor avatar Feb 21 '25 20:02 mihaitodor