options

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2022 License: Apache-2.0 Imports: 26 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

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.

Types

type ProxyOptions

type ProxyOptions struct {
	// ca, cert and key file to build secure connection between kubezoo and upstream cluster
	ProxyClientCAFile   string
	ProxyClientCertFile string
	ProxyClientKeyFile  string

	ProxyClientQPS   float32
	ProxyClientBurst int

	ClientCAFile          string
	ClientCAKeyFile       string
	UpstreamMaster        string
	ServiceAccountKeyFile string
	BindAddress           string
	SecurePort            int
}

ProxyOptions runs a kubezoo proxy server

func NewProxyOptions

func NewProxyOptions() *ProxyOptions

NewProxyOptions creates a new ProxyOptions object

func (*ProxyOptions) AddFlags

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

func (*ProxyOptions) Validate

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

type ServerRunOptions

type ServerRunOptions struct {
	GenericServerRunOptions   *genericoptions.ServerRunOptions
	Etcd                      *genericoptions.EtcdOptions
	SecureServing             *genericoptions.SecureServingOptionsWithLoopback
	Audit                     *genericoptions.AuditOptions
	Features                  *genericoptions.FeatureOptions
	Admission                 *kubeoptions.AdmissionOptions
	Authentication            *kubeoptions.BuiltInAuthenticationOptions
	Authorization             *kubeoptions.BuiltInAuthorizationOptions
	CloudProvider             *kubeoptions.CloudProviderOptions
	APIEnablement             *genericoptions.APIEnablementOptions
	EgressSelector            *genericoptions.EgressSelectorOptions
	Proxy                     *ProxyOptions
	AllowPrivileged           bool
	EnableLogsHandler         bool
	EventTTL                  time.Duration
	KubeletConfig             kubeletclient.KubeletClientConfig
	KubernetesServiceNodePort int
	MaxConnectionBytesPerSec  int64
	// ServiceClusterIPRange is mapped to input provided by user
	ServiceClusterIPRanges string
	//PrimaryServiceClusterIPRange and SecondaryServiceClusterIPRange are the results
	// of parsing ServiceClusterIPRange into actual values
	PrimaryServiceClusterIPRange   net.IPNet
	SecondaryServiceClusterIPRange net.IPNet

	ServiceNodePortRange utilnet.PortRange
	SSHKeyfile           string
	SSHUser              string

	ProxyClientCertFile string
	ProxyClientKeyFile  string

	EnableAggregatorRouting bool

	MasterCount            int
	EndpointReconcilerType string

	ServiceAccountSigningKeyFile     string
	ServiceAccountIssuer             serviceaccount.TokenGenerator
	ServiceAccountTokenMaxExpiration time.Duration

	ShowHiddenMetricsForVersion string
}

ServerRunOptions runs a kubernetes api server.

func NewServerRunOptions

func NewServerRunOptions() *ServerRunOptions

NewServerRunOptions creates a new ServerRunOptions object with default parameters

func (*ServerRunOptions) Flags

func (s *ServerRunOptions) Flags() (fss cliflag.NamedFlagSets)

Flags returns flags for a specific APIServer by section name

func (*ServerRunOptions) Validate

func (s *ServerRunOptions) Validate() []error

Validate checks ServerRunOptions and return a slice of found errs.

Jump to

Keyboard shortcuts

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