options

package
v1.3.0-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2016 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package options contains flags and options for initializing an apiserver

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIServer

type APIServer struct {
	*genericapiserver.ServerRunOptions
	AdmissionControl           string
	AdmissionControlConfigFile string
	AllowPrivileged            bool
	AuthorizationMode          string
	AuthorizationConfig        apiserver.AuthorizationConfig
	BasicAuthFile              string
	CloudConfigFile            string
	CloudProvider              string
	DeleteCollectionWorkers    int
	DeprecatedStorageVersion   string
	EtcdServersOverrides       []string
	EtcdConfig                 etcdstorage.EtcdConfig
	EventTTL                   time.Duration
	KeystoneURL                string
	KubeletConfig              kubeletclient.KubeletClientConfig
	MasterServiceNamespace     string
	MaxConnectionBytesPerSec   int64
	OIDCCAFile                 string
	OIDCClientID               string
	OIDCIssuerURL              string
	OIDCUsernameClaim          string
	OIDCGroupsClaim            string
	SSHKeyfile                 string
	SSHUser                    string
	ServiceAccountKeyFile      string
	ServiceAccountLookup       bool
	StorageVersions            string
	// The default values for StorageVersions. StorageVersions overrides
	// these; you can change this if you want to change the defaults (e.g.,
	// for testing). This is not actually exposed as a flag.
	DefaultStorageVersions string
	TokenAuthFile          string
	WatchCacheSizes        []string
}

APIServer runs a kubernetes api server.

func NewAPIServer

func NewAPIServer() *APIServer

NewAPIServer creates a new APIServer object with default parameters

func (*APIServer) AddFlags

func (s *APIServer) AddFlags(fs *pflag.FlagSet)

AddFlags adds flags for a specific APIServer to the specified FlagSet

func (*APIServer) StorageGroupsToEncodingVersion

func (s *APIServer) StorageGroupsToEncodingVersion() (map[string]unversioned.GroupVersion, error)

StorageGroupsToEncodingVersion returns a map from group name to group version, computed from the s.DeprecatedStorageVersion and s.StorageVersions flags. TODO: can we move the whole storage version concept to the generic apiserver?

Jump to

Keyboard shortcuts

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