options

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2024 License: MIT Imports: 30 Imported by: 0

Documentation

Overview

Package options contains flags and options for initializing an apiserver

Index

Constants

This section is empty.

Variables

AllOrderedPlugins is the list of all the plugins in order.

Functions

func AddCustomGlobalFlags

func AddCustomGlobalFlags(fs *pflag.FlagSet)

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

func DefaultOffAdmissionPlugins() sets.String

DefaultOffAdmissionPlugins get admission plugins off by default for onex-apiserver.

func RegisterAllAdmissionPlugins

func RegisterAllAdmissionPlugins(plugins *admission.Plugins)

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

	SharedInformerFactory informers.SharedInformerFactory
}

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.

Jump to

Keyboard shortcuts

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