Skip to content

No messages in output when using an array of strings as exclude in config file #302

@Frederick888

Description

@Frederick888

What happened:
I created config file with:

exclude: ["abcd"]

Then when I run stern, it just prints out a bunch of pod & container names without messages.

If I change the exclude option to a string, it then started to work normally, i.e.

exclude: "abcd"

(I actually want to add more than one exclude filter to my config file.)

What you expected to happen:
It filters out lines containing abcd.

How to reproduce it (as minimally and precisely as possible):

  1. Create a config file with an array of strings as exclude
  2. Run stern

Anything else we need to know?:

Environment:

  • stern version (use stern --version): 1.29.0
  • OS (e.g: cat /etc/os-release): macOS 14.4.1
  • Install tools (e.g: Homebrew): Homebrew
  • Others: N/A

Metadata

Metadata

Assignees

Labels

kind/bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions