Documentation
¶
Index ¶
- Constants
- func NewInitCommand(po *options.PersistentOptions) *cobra.Command
- func NewOpenMCPOperatorCommand(ctx context.Context) *cobra.Command
- func NewRunCommand(po *options.PersistentOptions) *cobra.Command
- type InitOptions
- func (o *InitOptions) AddFlags(cmd *cobra.Command)
- func (o *InitOptions) Complete(ctx context.Context) error
- func (o *InitOptions) PrintCompleted(cmd *cobra.Command)
- func (o *InitOptions) PrintCompletedOptions(cmd *cobra.Command)
- func (o *InitOptions) PrintRaw(cmd *cobra.Command)
- func (o *InitOptions) PrintRawOptions(cmd *cobra.Command)
- func (o *InitOptions) Run(ctx context.Context) error
- type RawInitOptions
- type RawRunOptions
- type RunOptions
- func (o *RunOptions) AddFlags(cmd *cobra.Command)
- func (o *RunOptions) Complete(ctx context.Context) error
- func (o *RunOptions) PrintCompleted(cmd *cobra.Command)
- func (o *RunOptions) PrintCompletedOptions(cmd *cobra.Command)
- func (o *RunOptions) PrintRaw(cmd *cobra.Command)
- func (o *RunOptions) PrintRawOptions(cmd *cobra.Command)
- func (o *RunOptions) Run(ctx context.Context) error
Constants ¶
View Source
const OpenMCPOperatorName = "openmcp-operator"
Variables ¶
This section is empty.
Functions ¶
func NewInitCommand ¶
func NewInitCommand(po *options.PersistentOptions) *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) 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)
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) 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)
Click to show internal directories.
Click to hide internal directories.