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
returnnil, errors.Wrap(err, "failed to compile regular expression for exclude container query")
164
+
returnnil, errors.Wrap(err, "failed to compile regular expression for excluded container query")
163
165
}
166
+
167
+
excludeContainer=append(excludeContainer, re)
164
168
}
165
169
166
170
varexclude []*regexp.Regexp
@@ -361,8 +365,8 @@ func (o *options) AddFlags(fs *pflag.FlagSet) {
361
365
fs.StringSliceVar(&o.containerStates, "container-state", o.containerStates, "Tail containers with state in running, waiting or terminated. To specify multiple states, repeat this or set comma-separated value.")
362
366
fs.StringVar(&o.context, "context", o.context, "Kubernetes context to use. Default to current context configured in kubeconfig.")
363
367
fs.StringArrayVarP(&o.exclude, "exclude", "e", o.exclude, "Log lines to exclude. (regular expression)")
364
-
fs.StringVarP(&o.excludeContainer, "exclude-container", "E", o.excludeContainer, "Container name to exclude when multiple containers in pod. (regular expression)")
365
-
fs.StringVar(&o.excludePod, "exclude-pod", o.excludePod, "Pod name to exclude. (regular expression)")
368
+
fs.StringArrayVarP(&o.excludeContainer, "exclude-container", "E", o.excludeContainer, "Container name to exclude when multiple containers in pod. (regular expression)")
369
+
fs.StringArrayVar(&o.excludePod, "exclude-pod", o.excludePod, "Pod name to exclude. (regular expression)")
366
370
fs.BoolVar(&o.noFollow, "no-follow", o.noFollow, "Exit when all logs have been shown.")
367
371
fs.StringArrayVarP(&o.include, "include", "i", o.include, "Log lines to include. (regular expression)")
368
372
fs.BoolVar(&o.initContainers, "init-containers", o.initContainers, "Include or exclude init containers.")
0 commit comments