You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// klog does not have an external method to set verbosity,
344
+
// so we need to set it by a flag.
345
+
// See https://github.com/kubernetes/klog/issues/336 for details
346
+
varfs goflag.FlagSet
347
+
klog.InitFlags(&fs)
348
+
returnfs.Set("v", strconv.Itoa(o.verbosity))
349
+
}
350
+
returnnil
351
+
}
352
+
331
353
// AddFlags adds all the flags used by stern.
332
354
func (o*options) AddFlags(fs*pflag.FlagSet) {
333
355
fs.BoolVarP(&o.allNamespaces, "all-namespaces", "A", o.allNamespaces, "If present, tail across all namespaces. A specific namespace is ignored even if specified with --namespace.")
@@ -356,6 +378,7 @@ func (o *options) AddFlags(fs *pflag.FlagSet) {
356
378
fs.StringVar(&o.template, "template", o.template, "Template to use for log lines, leave empty to use --output flag.")
0 commit comments