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
Workers int
AWSSession *session.Session
}
Config arguments set via CLI, environment variables, or defaults
func ParseCliArgs ¶
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
Click to show internal directories.
Click to hide internal directories.