server

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2026 License: Apache-2.0 Imports: 37 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Scheme = runtime.NewScheme()

Functions

This section is empty.

Types

type OperatorConfig added in v0.0.10

type OperatorConfig struct {
	ClientConfig *rest.Config

	KubeClient              kubernetes.Interface
	Client                  versioned.Interface
	KubeInformerFactory     informers.SharedInformerFactory
	InformerFactory         apiinformers.SharedInformerFactory
	ManifestInformerFactory manifestinformers.SharedInformerFactory

	ResyncPeriod   time.Duration
	MaxNumRequeues int
	NumThreads     int

	MetricsAddr          string
	CertDir              string
	EnableLeaderElection bool
	ProbeAddr            string
	SecureMetrics        bool
	EnableHTTP2          bool
	// contains filtered or unexported fields
}

func (*OperatorConfig) New added in v0.0.10

New returns a new instance of KubeDBWebhookServer from the given config.

type OperatorOptions

type OperatorOptions struct {
	QPS   float64
	Burst int

	ResyncPeriod   time.Duration
	MaxNumRequeues int
	NumThreads     int

	MetricsAddr          string
	CertDir              string
	EnableLeaderElection bool
	ProbeAddr            string
	SecureMetrics        bool
	EnableHTTP2          bool
}

func NewOperatorOptions

func NewOperatorOptions() *OperatorOptions

func (*OperatorOptions) AddFlags

func (s *OperatorOptions) AddFlags(fs *pflag.FlagSet)

func (*OperatorOptions) AddGoFlags

func (s *OperatorOptions) AddGoFlags(fs *flag.FlagSet)

func (*OperatorOptions) ApplyTo

func (s *OperatorOptions) ApplyTo(cfg *OperatorConfig) error

func (*OperatorOptions) Complete

func (s *OperatorOptions) Complete() error

func (OperatorOptions) Config

func (s OperatorOptions) Config() (*OperatorConfig, error)

func (OperatorOptions) Run

func (s OperatorOptions) Run(ctx context.Context) error

func (*OperatorOptions) Validate

func (s *OperatorOptions) Validate() []error

Jump to

Keyboard shortcuts

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