konnector

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 5, 2026 License: Apache-2.0 Imports: 37 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommitFunc

type CommitFunc = func(context.Context, *Resource, *Resource) error

type Config added in v0.0.11

type Config struct {
	ClientConfig        *rest.Config
	BindClient          *bindclient.Clientset
	KubeClient          *kubernetesclient.Clientset
	ApiextensionsClient *apiextensionsclient.Clientset

	KubeInformers          kubeinformers.SharedInformerFactory
	BindInformers          bindinformers.SharedInformerFactory
	ApiextensionsInformers apiextensionsinformers.SharedInformerFactory

	ServerAddr              string
	ProviderPollingInterval time.Duration
}

func NewConfig added in v0.0.11

func NewConfig(options *options.CompletedOptions) (*Config, error)

type Controller added in v0.0.11

type Controller struct {
	ServiceBindingCtrl       GenericController
	ServiceBindingBundleCtrl GenericController
	// contains filtered or unexported fields
}

Controller is the top-level Controller watching ServiceBindings and service provider credentials, and then starts APIServiceBinding controllers dynamically.

func New

func New(
	consumerConfig *rest.Config,
	serviceBindingInformer bindinformers.APIServiceBindingInformer,
	serviceBindingBundleInformer bindinformers.APIServiceBindingBundleInformer,
	secretInformer coreinformers.SecretInformer,
	namespaceInformer coreinformers.NamespaceInformer,
	crdInformer crdinformers.CustomResourceDefinitionInformer,
	bundlePollingInterval time.Duration,
) (*Controller, error)

New returns a konnector controller.

func (*Controller) Start added in v0.0.11

func (c *Controller) Start(ctx context.Context, numThreads int)

Start starts the konnector. It does block.

type GenericController

type GenericController interface {
	Start(ctx context.Context, numThreads int)
}

type Prepared added in v0.0.16

type Prepared struct {
	// contains filtered or unexported fields
}

func (*Prepared) OptionallyStartInformers added in v0.0.16

func (s *Prepared) OptionallyStartInformers(ctx context.Context)

func (Prepared) Run added in v0.0.16

func (s Prepared) Run(ctx context.Context) error

type Server added in v0.0.11

type Server struct {
	Config     *Config
	Controller *Controller
	// contains filtered or unexported fields
}

func NewServer added in v0.0.11

func NewServer(config *Config) (*Server, error)

func (*Server) AddCheck added in v0.4.0

func (s *Server) AddCheck(check server.HealthChecker)

func (*Server) PrepareRun added in v0.0.16

func (s *Server) PrepareRun(ctx context.Context) (Prepared, error)

func (*Server) StartHealthCheck added in v0.4.0

func (s *Server) StartHealthCheck(ctx context.Context)

Directories

Path Synopsis
controllers
contextstore
contextstore allows to manage and track context per controllers, stored at the different levels of the controller hierarchy: APIServiceExport - schemas and permissionClaims - each schema runs its own gvr controller and each permissionClaim runs its own controller.
contextstore allows to manage and track context per controllers, stored at the different levels of the controller hierarchy: APIServiceExport - schemas and permissionClaims - each schema runs its own gvr controller and each permissionClaim runs its own controller.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL