in pkg/config/config.go [374:469]
func (c Config) PrintHumanConfigArgs() {
webhookURLDisplay := ""
if c.WebhookURL != "" {
webhookURLDisplay = "<provided-not-displayed>"
}
// intentionally did not log webhook configuration as there may be secrets
log.Info().Msgf(
"aws-node-termination-handler arguments: \n"+
"\tdry-run: %t,\n"+
"\tnode-name: %s,\n"+
"\tpod-name: %s,\n"+
"\tpod-namespace: %s,\n"+
"\tmetadata-url: %s,\n"+
"\tkubernetes-service-host: %s,\n"+
"\tkubernetes-service-port: %s,\n"+
"\tdelete-local-data: %t,\n"+
"\tignore-daemon-sets: %t,\n"+
"\tpod-termination-grace-period: %d,\n"+
"\tnode-termination-grace-period: %d,\n"+
"\tenable-scheduled-event-draining: %t,\n"+
"\tenable-spot-interruption-draining: %t,\n"+
"\tenable-sqs-termination-draining: %t,\n"+
"\tdelete-sqs-msg-if-node-not-found: %t,\n"+
"\tenable-rebalance-monitoring: %t,\n"+
"\tenable-rebalance-draining: %t,\n"+
"\tmetadata-tries: %d,\n"+
"\tcordon-only: %t,\n"+
"\ttaint-node: %t,\n"+
"\ttaint-effect: %s,\n"+
"\tenable-out-of-service-taint: %t,\n"+
"\texclude-from-load-balancers: %t,\n"+
"\tjson-logging: %t,\n"+
"\tlog-level: %s,\n"+
"\twebhook-proxy: %s,\n"+
"\twebhook-headers: %s,\n"+
"\twebhook-url: %s,\n"+
"\twebhook-template: %s,\n"+
"\tuptime-from-file: %s,\n"+
"\tenable-prometheus-server: %t,\n"+
"\tprometheus-server-port: %d,\n"+
"\temit-kubernetes-events: %t,\n"+
"\tkubernetes-events-extra-annotations: %s,\n"+
"\taws-region: %s,\n"+
"\tqueue-url: %s,\n"+
"\tcheck-tag-before-draining: %t,\n"+
"\tmanaged-tag: %s,\n"+
"\tuse-provider-id: %t,\n"+
"\taws-endpoint: %s,\n"+
"\tuse-apiserver-cache: %t,\n"+
"\theartbeat-interval: %d,\n"+
"\theartbeat-until: %d\n",
c.DryRun,
c.NodeName,
c.PodName,
c.PodNamespace,
c.MetadataURL,
c.KubernetesServiceHost,
c.KubernetesServicePort,
c.DeleteLocalData,
c.IgnoreDaemonSets,
c.PodTerminationGracePeriod,
c.NodeTerminationGracePeriod,
c.EnableScheduledEventDraining,
c.EnableSpotInterruptionDraining,
c.EnableSQSTerminationDraining,
c.DeleteSqsMsgIfNodeNotFound,
c.EnableRebalanceMonitoring,
c.EnableRebalanceDraining,
c.MetadataTries,
c.CordonOnly,
c.TaintNode,
c.TaintEffect,
c.EnableOutOfServiceTaint,
c.ExcludeFromLoadBalancers,
c.JsonLogging,
c.LogLevel,
c.WebhookProxy,
"<not-displayed>",
webhookURLDisplay,
"<not-displayed>",
c.UptimeFromFile,
c.EnablePrometheus,
c.PrometheusPort,
c.EmitKubernetesEvents,
c.KubernetesEventsExtraAnnotations,
c.AWSRegion,
c.QueueURL,
c.CheckTagBeforeDraining,
c.ManagedTag,
c.UseProviderId,
c.AWSEndpoint,
c.UseAPIServerCacheToListPods,
c.HeartbeatInterval,
c.HeartbeatUntil,
)
}