Documentation ¶
Index ¶
- Variables
- type CompletedConfig
- type Config
- type ExtraConfig
- type ExtraOptions
- type SupervisorOperator
- type SupervisorOperatorConfig
- type SupervisorOperatorOptions
- func (o SupervisorOperatorOptions) AddFlags(fs *pflag.FlagSet)
- func (o *SupervisorOperatorOptions) Complete() error
- func (o SupervisorOperatorOptions) Config() (*SupervisorOperatorConfig, error)
- func (o SupervisorOperatorOptions) Run(ctx context.Context) error
- func (o SupervisorOperatorOptions) Validate(args []string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Scheme defines methods for serializing and deserializing API objects. Scheme = runtime.NewScheme() // Codecs provides methods for retrieving codecs and serializers for specific // versions and content types. Codecs = serializer.NewCodecFactory(Scheme) )
Functions ¶
This section is empty.
Types ¶
type CompletedConfig ¶
type CompletedConfig struct {
// contains filtered or unexported fields
}
CompletedConfig embeds a private pointer that cannot be instantiated outside of this package.
type ExtraConfig ¶
type ExtraConfig struct { ClientConfig *restclient.Config ReconcileConfig supervisorcontrollers.RecommendationReconcileConfig }
ExtraConfig holds custom apiserver config
type ExtraOptions ¶
type ExtraOptions struct { MaxNumRequeues int NumThreads int QPS float64 Burst int ResyncPeriod time.Duration EnableValidatingWebhook bool EnableMutatingWebhook bool }
func NewExtraOptions ¶
func NewExtraOptions() *ExtraOptions
func (*ExtraOptions) AddFlags ¶
func (s *ExtraOptions) AddFlags(fs *pflag.FlagSet)
func (*ExtraOptions) AddGoFlags ¶
func (s *ExtraOptions) AddGoFlags(fs *flag.FlagSet)
func (*ExtraOptions) ApplyTo ¶
func (s *ExtraOptions) ApplyTo(cfg *Config) error
type SupervisorOperator ¶
type SupervisorOperator struct { GenericAPIServer *genericapiserver.GenericAPIServer Manager manager.Manager }
SupervisorOperator contains state for a Kubernetes cluster master/api server.
type SupervisorOperatorConfig ¶
type SupervisorOperatorConfig struct { GenericConfig *genericapiserver.RecommendedConfig ExtraConfig ExtraConfig }
SupervisorOperatorConfig defines the config for the apiserver
func (*SupervisorOperatorConfig) Complete ¶
func (cfg *SupervisorOperatorConfig) Complete() CompletedConfig
Complete fills in any fields not set that are required to have valid data. It's mutating the receiver.
type SupervisorOperatorOptions ¶
type SupervisorOperatorOptions struct { RecommendedOptions *genericoptions.RecommendedOptions ExtraOptions *ExtraOptions ReconcileOptions *supervisor.RecommendationReconcileConfig StdOut io.Writer StdErr io.Writer }
func NewSupervisorOperatorOptions ¶
func NewSupervisorOperatorOptions(out, errOut io.Writer) *SupervisorOperatorOptions
func (SupervisorOperatorOptions) AddFlags ¶
func (o SupervisorOperatorOptions) AddFlags(fs *pflag.FlagSet)
func (*SupervisorOperatorOptions) Complete ¶
func (o *SupervisorOperatorOptions) Complete() error
func (SupervisorOperatorOptions) Config ¶
func (o SupervisorOperatorOptions) Config() (*SupervisorOperatorConfig, error)
func (SupervisorOperatorOptions) Run ¶
func (o SupervisorOperatorOptions) Run(ctx context.Context) error
func (SupervisorOperatorOptions) Validate ¶
func (o SupervisorOperatorOptions) Validate(args []string) error
Click to show internal directories.
Click to hide internal directories.