config

package
v0.15.0-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2024 License: Apache-2.0 Imports: 37 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FlagFloat64SliceVar

func FlagFloat64SliceVar(fs *flag.FlagSet, p *[]float64, name string, value []float64, usage string)

func StringValue

func StringValue(value string) flag.Value

Types

type Config

type Config struct {
	AcmeCheckPeriod          time.Duration
	AcmeFailInitialDuration  time.Duration
	AcmeFailMaxDuration      time.Duration
	AcmeSecretKeyName        string
	AcmeServer               bool
	AcmeTokenConfigMapName   string
	AcmeTrackTLSAnn          bool
	AllowCrossNamespace      bool
	AnnPrefix                []string
	BackendShards            int
	BucketsResponseTime      []float64
	ConfigMapName            string
	ControllerName           string
	DefaultDirCerts          string
	DefaultDirCACerts        string
	DefaultDirCrl            string
	DefaultDirDHParam        string
	DefaultDirMaps           string
	DefaultDirVarRun         string
	DefaultService           string
	DefaultSSLCertificate    string
	DisableExternalName      bool
	DisableKeywords          []string
	Election                 bool
	ElectionID               string
	ElectionNamespace        string
	EnableEndpointSliceAPI   bool
	ForceNamespaceIsolation  bool
	HasGatewayA2             bool
	HasGatewayB1             bool
	HasGatewayV1             bool
	HasTCPRouteA2            bool
	HealthzAddr              string
	HealthzURL               string
	IngressClass             string
	IngressClassPrecedence   bool
	KubeConfig               *rest.Config
	LocalFSPrefix            string
	MasterSocket             string
	MasterWorker             bool
	MaxOldConfigFiles        int
	PodName                  string
	PodNamespace             string
	Profiling                bool
	PublishAddressHostnames  []string
	PublishAddressIPs        []string
	PublishService           string
	RateLimitUpdate          float64
	ReadyzURL                string
	ReloadInterval           time.Duration
	ReloadStrategy           string
	ResyncPeriod             *time.Duration
	RootContext              context.Context
	Scheme                   *runtime.Scheme
	ShutdownTimeout          *time.Duration
	SortEndpointsBy          string
	StatsCollectProcPeriod   time.Duration
	StopHandler              bool
	TCPConfigMapName         string
	TrackOldInstances        bool
	UpdateStatus             bool
	UpdateStatusOnShutdown   bool
	UseNodeInternalIP        bool
	ValidateConfig           bool
	VerifyHostname           bool
	VersionInfo              version.Info
	WaitBeforeUpdate         time.Duration
	WatchIngressWithoutClass bool
	WatchNamespace           string
}

Config ...

func Create

func Create(opt *Options) (*Config, error)

Create ...

func CreateWithConfig

func CreateWithConfig(ctx context.Context, restConfig *rest.Config, opt *Options) (*Config, error)

CreateWithConfig ...

type Options

type Options struct {
	KubeConfig               flag.Value
	ApiserverHost            string
	LocalFSPrefix            string
	DisableAPIWarnings       bool
	DefaultSvc               string
	IngressClass             string
	IngressClassPrecedence   bool
	ReloadStrategy           string
	MaxOldConfigFiles        int
	ValidateConfig           bool
	ControllerClass          string
	WatchIngressWithoutClass bool
	WatchGateway             bool
	MasterWorker             bool
	MasterSocket             string
	ConfigMap                string
	AcmeServer               bool
	AcmeCheckPeriod          time.Duration
	AcmeFailInitialDuration  time.Duration
	AcmeFailMaxDuration      time.Duration
	AcmeSecretKeyName        string
	AcmeTokenConfigMapName   string
	AcmeTrackTLSAnn          bool
	BucketsResponseTime      []float64
	PublishService           string
	PublishAddress           string
	TCPConfigMapName         string
	AnnPrefix                string
	RateLimitUpdate          float64
	ReloadInterval           time.Duration
	WaitBeforeUpdate         time.Duration
	ResyncPeriod             time.Duration
	WatchNamespace           string
	StatsCollectProcPeriod   time.Duration
	HealthzAddr              string
	HealthzURL               string
	ReadyzURL                string
	Profiling                bool
	StopHandler              bool
	DefSSLCertificate        string
	VerifyHostname           bool
	UpdateStatus             bool
	ElectionID               string
	WaitBeforeShutdown       string
	ShutdownTimeout          time.Duration
	AllowCrossNamespace      bool
	DisableExternalName      bool
	DisableConfigKeywords    string
	UpdateStatusOnShutdown   bool
	BackendShards            int
	SortBackends             bool
	SortEndpointsBy          string
	TrackOldInstances        bool
	UseNodeInternalIP        bool
	EnableEndpointSlicesAPI  bool
	LogZap                   bool
	LogDev                   bool
	LogCaller                bool
	LogLevel                 int
	LogEnableStacktrace      bool
	LogEncoder               string
	LogEncodeTime            string

	// Deprecated option
	AcmeElectionID string
	// Deprecated option
	HealthzPort int
	// Deprecated option
	DisableNodeList bool
	// Deprecated option
	DisablePodList bool
	// Deprecated option
	ForceIsolation bool
	// Deprecated option
	IgnoreIngressWithoutClass bool

	//
	Version bool
}

func NewOptions

func NewOptions() *Options

func (*Options) AddFlags

func (o *Options) AddFlags(fs *flag.FlagSet)

Jump to

Keyboard shortcuts

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