apiserver

package
v0.0.0-...-e0434a4 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultNamespace = "voyager"
)

Variables

This section is empty.

Functions

func GetInClusterNamespace

func GetInClusterNamespace(defaultNamespace string) (string, error)

Types

type RecommendedOptions

type RecommendedOptions struct {
	SecureServing  *kubeoptions.SecureServingOptionsWithLoopback
	Authentication *kubeoptions.DelegatingAuthenticationOptions
	Authorization  *kubeoptions.DelegatingAuthorizationOptions
	Audit          *kubeoptions.AuditOptions
	Features       *kubeoptions.FeatureOptions
	CoreAPI        *kubeoptions.CoreAPIOptions

	// 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                  *kubeoptions.AdmissionOptions
	// ProcessInfo is used to identify events created by the server.
	ProcessInfo *kubeoptions.ProcessInfo
	Webhook     *kubeoptions.WebhookOptions
}

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(processInfo *kubeoptions.ProcessInfo) *RecommendedOptions

func (*RecommendedOptions) AddFlags

func (o *RecommendedOptions) AddFlags(fs *pflag.FlagSet)

func (*RecommendedOptions) ApplyTo

func (o *RecommendedOptions) ApplyTo(config *server.RecommendedConfig, scheme *runtime.Scheme) error

ApplyTo adds RecommendedOptions to the server configuration. scheme is the scheme of the apiserver types that are sent to the admission chain. pluginInitializers can be empty, it is only need for additional initializers.

func (*RecommendedOptions) Validate

func (o *RecommendedOptions) Validate() []error

Jump to

Keyboard shortcuts

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