Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCommandStartWardleServer ¶
func NewCommandStartWardleServer(defaults *WardleServerOptions, stopCh <-chan struct{}) *cobra.Command
NewCommandStartWardleServer provides a CLI handler for 'start master' command with a default WardleServerOptions.
Types ¶
type RecommendedOptions ¶
type RecommendedOptions struct { Etcd *genericoptions.EtcdOptions SecureServing *genericoptions.SecureServingOptionsWithLoopback Authentication *genericoptions.DelegatingAuthenticationOptions Authorization *genericoptions.DelegatingAuthorizationOptions Audit *genericoptions.AuditOptions Features *genericoptions.FeatureOptions CoreAPI *genericoptions.CoreAPIOptions // FeatureGate is a way to plumb feature gate through if you have them. FeatureGate featuregate.FeatureGate // ExtraAdmissionInitializers is called once after all ApplyTo from the options above, to pass the returned // admission plugin initializers to Admission.ApplyTo. ExtraAdmissionInitializers func(c *server.RecommendedConfig) ([]admission.PluginInitializer, error) Admission *genericoptions.AdmissionOptions // API Server Egress Selector is used to control outbound traffic from the API Server EgressSelector *genericoptions.EgressSelectorOptions // Traces contains options to control distributed request tracing. Traces *genericoptions.TracingOptions }
RecommendedOptions contains the recommended options for running an API server. If you add something to this list, it should be in a logical grouping. Each of them can be nil to leave the feature unconfigured on ApplyTo.
func NewRecommendedOptions ¶
func NewRecommendedOptions(prefix string, codec runtime.Codec) *RecommendedOptions
func (*RecommendedOptions) AddFlags ¶
func (o *RecommendedOptions) AddFlags(fs *pflag.FlagSet)
func (*RecommendedOptions) ApplyTo ¶
func (o *RecommendedOptions) ApplyTo(config *server.RecommendedConfig) error
ApplyTo adds RecommendedOptions to the server configuration. pluginInitializers can be empty, it is only need for additional initializers.
func (*RecommendedOptions) Validate ¶
func (o *RecommendedOptions) Validate() []error
type WardleServerOptions ¶
type WardleServerOptions struct { RecommendedOptions *RecommendedOptions StdOut io.Writer StdErr io.Writer AlternateDNS []string }
WardleServerOptions contains state for master/api server
func NewWardleServerOptions ¶
func NewWardleServerOptions(out, errOut io.Writer) *WardleServerOptions
NewWardleServerOptions returns a new WardleServerOptions
func (*WardleServerOptions) Complete ¶
func (o *WardleServerOptions) Complete() error
Complete fills in fields required to have valid data
func (*WardleServerOptions) Config ¶
func (o *WardleServerOptions) Config() (*apiserver.Config, error)
Config returns config for the api server given WardleServerOptions
func (WardleServerOptions) RunWardleServer ¶
func (o WardleServerOptions) RunWardleServer(stopCh <-chan struct{}) error
RunWardleServer starts a new WardleServer given WardleServerOptions
func (WardleServerOptions) Validate ¶
func (o WardleServerOptions) Validate(args []string) error
Validate validates WardleServerOptions