config

package
v1.21.0 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MinSupportedLogFormatVersion = 1
	MaxSupportedLogFormatVersion = 2
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	DryRun                              bool
	NodeName                            string
	PodName                             string
	PodNamespace                        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
	CheckTagBeforeDraining              bool
	ManagedAsgTag                       string
	ManagedTag                          string
	MetadataTries                       int
	CordonOnly                          bool
	TaintNode                           bool
	TaintEffect                         string
	ExcludeFromLoadBalancers            bool
	JsonLogging                         bool
	LogLevel                            string
	LogFormatVersion                    int
	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
	CompleteLifecycleActionDelaySeconds int
	DeleteSqsMsgIfNodeNotFound          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