config

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2020 License: Apache-2.0 Imports: 5 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
	MetadataTries                  int
	CordonOnly                     bool
	TaintNode                      bool
	JsonLogging                    bool
	UptimeFromFile                 string
	EnablePrometheus               bool
	PrometheusPort                 int
}

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

Jump to

Keyboard shortcuts

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