config

package
v1.16.3 Latest Latest
Warning

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

Go to latest
Published: May 11, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	DryRun                           bool
	NodeName                         string
	PodName                          string
	MetadataURL                      string
	IgnoreDaemonSets                 bool
	DeleteLocalData                  bool
	KubernetesServiceHost            string
	KubernetesServicePort            string
	PodTerminationGracePeriod        int
	NodeTerminationGracePeriod       int
	WebhookURL                       string
	WebhookHeaders                   string
	WebhookTemplate                  string
	WebhookTemplateFile              string
	WebhookProxy                     string
	EnableScheduledEventDraining     bool
	EnableSpotInterruptionDraining   bool
	EnableSQSTerminationDraining     bool
	EnableRebalanceMonitoring        bool
	EnableRebalanceDraining          bool
	CheckASGTagBeforeDraining        bool
	ManagedAsgTag                    string
	MetadataTries                    int
	CordonOnly                       bool
	TaintNode                        bool
	TaintEffect                      string
	ExcludeFromLoadBalancers         bool
	JsonLogging                      bool
	LogLevel                         string
	UptimeFromFile                   string
	EnablePrometheus                 bool
	PrometheusPort                   int
	EnableProbes                     bool
	ProbesPort                       int
	ProbesEndpoint                   string
	EmitKubernetesEvents             bool
	KubernetesEventsExtraAnnotations string
	AWSRegion                        string
	AWSEndpoint                      string
	QueueURL                         string
	Workers                          int
	UseProviderId                    bool
}

Config arguments set via CLI, environment variables, or defaults

func ParseCliArgs

func ParseCliArgs() (config Config, err error)

ParseCliArgs parses cli arguments and uses environment variables as fallback values

func (Config) Print added in v1.9.0

func (c Config) Print()

Print uses the JSON log setting to print either JSON formatted config value logs or human-readable config values

func (Config) PrintHumanConfigArgs added in v1.9.0

func (c Config) PrintHumanConfigArgs()

PrintHumanConfigArgs prints config args as a human-reable pretty printed string

func (Config) PrintJsonConfigArgs added in v1.9.0

func (c Config) PrintJsonConfigArgs()

PrintJsonConfigArgs prints the config values with JSON formatting

Jump to

Keyboard shortcuts

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