app

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: May 14, 2025 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewInitCommand

func NewInitCommand(so *SharedOptions) *cobra.Command

func NewOpenMCPOperatorCommand

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

func NewRunCommand

func NewRunCommand(so *SharedOptions) *cobra.Command

Types

type Clusters

type Clusters struct {
	Onboarding *clusters.Cluster
	Platform   *clusters.Cluster
}

type InitOptions

type InitOptions struct {
	*SharedOptions
	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 {
	SkipPlatformCRDs   bool `json:"skip-platform-crds"`
	SkipOnboardingCRDs bool `json:"skip-onboarding-crds"`
}

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 RawSharedOptions

type RawSharedOptions struct {
	Environment                     string   `json:"environment"`
	DryRun                          bool     `json:"dry-run"`
	ConfigPaths                     []string `json:"configPaths"`
	OnboardingClusterKubeconfigPath string   `json:"onboarding-cluster"` // dummy for printing, actual path is in Clusters
	PlatformClusterKubeconfigPath   string   `json:"platform-cluster"`   // dummy for printing, actual path is in Clusters
}

type RunOptions

type RunOptions struct {
	*SharedOptions
	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

type SharedOptions

type SharedOptions struct {
	*RawSharedOptions
	Clusters *Clusters

	// fields filled in Complete()
	Log    logging.Logger
	Config *config.Config
}

func (*SharedOptions) AddPersistentFlags

func (o *SharedOptions) AddPersistentFlags(cmd *cobra.Command)

func (*SharedOptions) Complete

func (o *SharedOptions) Complete() error

func (*SharedOptions) PrintCompleted

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

func (*SharedOptions) PrintRaw

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

Jump to

Keyboard shortcuts

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