mcp

package
v0.15.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	MCPPurposeOverrideValidationPolicyName         = "mcp-purpose-override-validation." + corev2alpha1.GroupName
	OIDCProviderNameUniquenessValidationPolicyName = "oidc-provider-name-uniqueness." + corev2alpha1.GroupName
)

currently hard-coded, can be made configurable in the future if needed

Variables

This section is empty.

Functions

func NewInitCommand

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

func NewMCPControllerSubcommand

func NewMCPControllerSubcommand(ctx context.Context, po *options.PersistentOptions) *cobra.Command

func NewRunCommand

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

Types

type InitOptions

type InitOptions struct {
	*options.PersistentOptions
}

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 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"`
}

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

Jump to

Keyboard shortcuts

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