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 ¶
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.