options

package
v0.18.1 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AWSNodeNameConvention added in v0.5.4

type AWSNodeNameConvention string
const (
	IPName       AWSNodeNameConvention = "ip-name"
	ResourceName AWSNodeNameConvention = "resource-name"
)

type Options

type Options struct {
	*flag.FlagSet
	// Vendor Neutral
	MetricsPort          int
	HealthProbePort      int
	KubeClientQPS        int
	KubeClientBurst      int
	EnableProfiling      bool
	EnableLeaderElection bool
	MemoryLimit          int64
	// AWS Specific
	ClusterName               string
	ClusterEndpoint           string
	VMMemoryOverhead          float64
	AWSNodeNameConvention     string
	AWSENILimitedPodDensity   bool
	AWSDefaultInstanceProfile string
	AWSEnablePodENI           bool
	AWSIsolatedVPC            bool
}

Options for running this binary

func New added in v0.12.0

func New() *Options

New creates an Options struct and registers CLI flags and environment variables to fill-in the Options struct fields

func (Options) GetAWSNodeNameConvention added in v0.5.4

func (o Options) GetAWSNodeNameConvention() AWSNodeNameConvention

func (*Options) MustParse added in v0.12.0

func (o *Options) MustParse() *Options

MustParse reads the user passed flags, environment variables, and default values. Options are valided and panics if an error is returned

func (Options) Validate

func (o Options) Validate() (err error)

Jump to

Keyboard shortcuts

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