Documentation ¶
Overview ¶
Package options contains flags and options for initializing an apiserver
Index ¶
Constants ¶
This section is empty.
Variables ¶
var AllOrderedPlugins = []string{ admit.PluginName, autoprovision.PluginName, lifecycle.PluginName, exists.PluginName, deny.PluginName, }
AllOrderedPlugins is the list of all the plugins in order.
Functions ¶
func AddCustomGlobalFlags ¶
AddCustomGlobalFlags explicitly registers flags that internal packages register against the global flagsets from "flag". We do this in order to prevent unwanted flags from leaking into the kube-apiserver's flagset.
func DefaultOffAdmissionPlugins ¶
DefaultOffAdmissionPlugins get admission plugins off by default for onex-apiserver.
func RegisterAllAdmissionPlugins ¶
RegisterAllAdmissionPlugins registers all admission plugins. The order of registration is irrelevant, see AllOrderedPlugins for execution order.
Types ¶
type CompletedOptions ¶
type CompletedOptions struct {
// contains filtered or unexported fields
}
func (CompletedOptions) Validate ¶
func (o CompletedOptions) Validate() []error
Validate checks ServerRunOptions and return a slice of found errs.
type ServerRunOptions ¶
type ServerRunOptions struct { // RecommendedOptions *genericoptions.RecommendedOptions GenericServerRunOptions *genericoptions.ServerRunOptions RecommendedOptions *options.RecommendedOptions Metrics *metrics.Options Logs *logs.Options Traces *genericoptions.TracingOptions EnableLogsHandler bool EventTTL time.Duration }
ServerRunOptions contains state for master/api server.
func NewServerRunOptions ¶
func NewServerRunOptions() *ServerRunOptions
NewServerRunOptions returns a new ServerRunOptions.
func (*ServerRunOptions) Complete ¶
func (o *ServerRunOptions) Complete() (CompletedOptions, error)
Complete set default ServerRunOptions. Should be called after onex-apiserver flags parsed.
func (ServerRunOptions) Flags ¶
func (o ServerRunOptions) Flags() (fss cliflag.NamedFlagSets)
func (ServerRunOptions) Validate ¶
func (o ServerRunOptions) Validate(args []string) error
Validate validates ServerRunOptions.