options

package
v1.12.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	KubeConfig  string
	Master      string
	ClusterName string
	// ServerPort is the port that the server gRPC serves at.
	ServerPort int
	// InsecureSkipGrpcClientVerify controls whether verifies the grpc client's certificate chain and host name.
	InsecureSkipGrpcClientVerify bool
	// GrpcAuthCertFile SSL certification file used for grpc SSL/TLS connections.
	GrpcAuthCertFile string
	// GrpcAuthKeyFile SSL key file used for grpc SSL/TLS connections.
	GrpcAuthKeyFile string
	// GrpcClientCaFile SSL Certificate Authority file used to verify grpc client certificates on incoming requests.
	GrpcClientCaFile string
	// ClusterAPIQPS is the QPS to use while talking with cluster kube-apiserver.
	ClusterAPIQPS float32
	// ClusterAPIBurst is the burst to allow while talking with cluster kube-apiserver.
	ClusterAPIBurst int
	// Parallelism defines the amount of parallelism in algorithms for estimating. Must be greater than 0. Defaults to 16.
	Parallelism int
	ProfileOpts profileflag.Options
	// MetricsBindAddress is the TCP address that the server should bind to
	// for serving prometheus metrics.
	// It can be set to "0" to disable the metrics serving.
	// Defaults to ":8080".
	MetricsBindAddress string
	// HealthProbeBindAddress is the TCP address that the server should bind to
	// for serving health probes
	// It can be set to "0" to disable serving the health probe.
	// Defaults to ":10351".
	HealthProbeBindAddress string
}

Options contains everything necessary to create and run scheduler-estimator.

func NewOptions

func NewOptions() *Options

NewOptions builds an empty options.

func (*Options) AddFlags

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

AddFlags adds flags of estimator to the specified FlagSet

func (*Options) Validate added in v0.10.0

func (o *Options) Validate() field.ErrorList

Validate checks Options 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