app

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2025 License: Apache-2.0 Imports: 39 Imported by: 0

Documentation

Index

Constants

View Source
const OpenMCPOperatorName = "openmcp-operator"

Variables

This section is empty.

Functions

func NewInitCommand

func NewInitCommand(po *options.PersistentOptions) *cobra.Command

func NewOpenMCPOperatorCommand

func NewOpenMCPOperatorCommand(ctx context.Context) *cobra.Command

func NewRunCommand

func NewRunCommand(po *options.PersistentOptions) *cobra.Command

Types

type InitOptions

type InitOptions struct {
	*options.PersistentOptions
	RawInitOptions
}

func (*InitOptions) AddFlags

func (o *InitOptions) AddFlags(cmd *cobra.Command)

func (*InitOptions) Complete

func (o *InitOptions) Complete(ctx context.Context) error

func (*InitOptions) PrintCompleted

func (o *InitOptions) PrintCompleted(cmd *cobra.Command)

func (*InitOptions) PrintCompletedOptions

func (o *InitOptions) PrintCompletedOptions(cmd *cobra.Command)

func (*InitOptions) PrintRaw

func (o *InitOptions) PrintRaw(cmd *cobra.Command)

func (*InitOptions) PrintRawOptions

func (o *InitOptions) PrintRawOptions(cmd *cobra.Command)

func (*InitOptions) Run

func (o *InitOptions) Run(ctx context.Context) error

type RawInitOptions

type RawInitOptions struct {
	SkipMCPPlatformService bool `json:"skip-mcp-platform-service"`
}

type RawRunOptions

type RawRunOptions struct {
	// kubebuilder default flags
	MetricsAddr          string `json:"metrics-bind-address"`
	MetricsCertPath      string `json:"metrics-cert-path"`
	MetricsCertName      string `json:"metrics-cert-name"`
	MetricsCertKey       string `json:"metrics-cert-key"`
	WebhookCertPath      string `json:"webhook-cert-path"`
	WebhookCertName      string `json:"webhook-cert-name"`
	WebhookCertKey       string `json:"webhook-cert-key"`
	EnableLeaderElection bool   `json:"leader-elect"`
	ProbeAddr            string `json:"health-probe-bind-address"`
	PprofAddr            string `json:"pprof-bind-address"`
	SecureMetrics        bool   `json:"metrics-secure"`
	EnableHTTP2          bool   `json:"enable-http2"`

	// custom raw options
	Controllers []string `json:"controllers"`
}

type RunOptions

type RunOptions struct {
	*options.PersistentOptions
	RawRunOptions

	// fields filled in Complete()
	ProviderGVKList      []schema.GroupVersionKind
	TLSOpts              []func(*tls.Config)
	WebhookTLSOpts       []func(*tls.Config)
	MetricsServerOptions metricsserver.Options
	MetricsCertWatcher   *certwatcher.CertWatcher
	WebhookCertWatcher   *certwatcher.CertWatcher
}

func (*RunOptions) AddFlags

func (o *RunOptions) AddFlags(cmd *cobra.Command)

func (*RunOptions) Complete

func (o *RunOptions) Complete(ctx context.Context) error

func (*RunOptions) PrintCompleted

func (o *RunOptions) PrintCompleted(cmd *cobra.Command)

func (*RunOptions) PrintCompletedOptions

func (o *RunOptions) PrintCompletedOptions(cmd *cobra.Command)

func (*RunOptions) PrintRaw

func (o *RunOptions) PrintRaw(cmd *cobra.Command)

func (*RunOptions) PrintRawOptions

func (o *RunOptions) PrintRawOptions(cmd *cobra.Command)

func (*RunOptions) Run

func (o *RunOptions) Run(ctx context.Context) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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