app

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2025 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start(getExtensionConfig GetExtensionConfig)

nolint:gocyclo

Types

type Config

type Config struct {
	Metrics struct {
		Addr     string
		CertPath string
		CertName string
		CertKey  string
	}
	Webhook struct {
		CertPath string
		CertName string
		CertKey  string
	}
	LeaderElection bool
	ProbeAddr      string
	SecureMetrics  bool
	EnableHTTP2    bool
}

func (*Config) SetFlags

func (cfg *Config) SetFlags(commandLine *flag.FlagSet)

type ExtensionConfig

type ExtensionConfig struct {
	// PluginFactories are factories that create translator plugins for extending MCPServer translation behavior.
	// These factories are called after the manager is created, allowing plugins to access the client and scheme.
	PluginFactories []PluginFactory
	// RegisterSchemes is an optional function to register additional API types to the runtime scheme.
	// This is called before the manager is created, allowing extensions to add their own CRDs.
	RegisterSchemes func(*runtime.Scheme) error
}

type GetExtensionConfig

type GetExtensionConfig func() (*ExtensionConfig, error)

type PluginFactory

PluginFactory creates a TranslatorPlugin when provided with the client and scheme. This allows plugins to be initialized after the manager is created, giving them access to the Kubernetes client and scheme. Plugins should create their own logger.

Jump to

Keyboard shortcuts

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