config

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2020 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 Config

type Config struct {
	DryRun                         bool
	NodeName                       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
	CheckASGTagBeforeDraining      bool
	ManagedAsgTag                  string
	MetadataTries                  int
	CordonOnly                     bool
	TaintNode                      bool
	JsonLogging                    bool
	LogLevel                       string
	UptimeFromFile                 string
	EnablePrometheus               bool
	PrometheusPort                 int
	AWSRegion                      string
	AWSEndpoint                    string
	QueueURL                       string
	AWSSession                     *session.Session
}

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