From 59a6700addcd6e65ecb3058c25e660761a6ffe4c Mon Sep 17 00:00:00 2001 From: Michal Schott Date: Tue, 5 May 2020 20:52:10 +0200 Subject: [PATCH] Renaming flag as suggested. --- README.md | 4 ++-- cmd/kured/main.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 83c3ff9..aff9985 100644 --- a/README.md +++ b/README.md @@ -74,7 +74,7 @@ The following arguments can be passed to kured via the daemonset pod template: ``` Flags: - --annotationTTL time force clean annotation after this ammount of time (default 0, disabled) + --annotation-ttl time force clean annotation after this ammount of time (default 0, disabled) --alert-filter-regexp regexp.Regexp alert names to ignore when checking for active alerts --blocking-pod-selector stringArray label selector identifying pods whose presence should prevent reboots --ds-name string name of daemonset on which to place lock (default "kured") @@ -266,7 +266,7 @@ kubectl -n kube-system annotate ds kured weave.works/kured-node-lock- In exceptional circumstances (especially when used with cluster-autoscaler) a node which holds lock might be killed thus annotation will stay there for ever. -Using `--annotationTTL=30m` will allow other nodes to take over if TTL has expired (in this case 30min) and continue reboot process. +Using `--annotation-ttl=30m` will allow other nodes to take over if TTL has expired (in this case 30min) and continue reboot process. ## Building diff --git a/cmd/kured/main.go b/cmd/kured/main.go index 5c7b74a..a35d674 100644 --- a/cmd/kured/main.go +++ b/cmd/kured/main.go @@ -99,7 +99,7 @@ func main() { rootCmd.PersistentFlags().StringVar(&timezone, "time-zone", "UTC", "use this timezone for schedule inputs") - rootCmd.PersistentFlags().DurationVar(&annotationTTL, "annotationTTL", 0, + rootCmd.PersistentFlags().DurationVar(&annotationTTL, "annotation-ttl", 0, "force clean annotation after this ammount of time (default 0, disabled)") if err := rootCmd.Execute(); err != nil {