Skip to content

Add enterprise license loading to the example #28

Description

@mihaitodor

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
		}),
	)
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions