Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIXED] Support multiple trusted operators using a config file #5896

Merged
merged 2 commits into from
Sep 17, 2024

Conversation

Jarema
Copy link
Member

@Jarema Jarema commented Sep 17, 2024

fixes #5810

Signed-off-by: Tomasz Pietrek tomasz@nats.io

@Jarema Jarema requested a review from a team as a code owner September 17, 2024 08:45
Signed-off-by: Tomasz Pietrek <tomasz@nats.io>
server/opts_test.go Outdated Show resolved Hide resolved
server/opts.go Outdated Show resolved Hide resolved
Signed-off-by: Tomasz Pietrek <tomasz@nats.io>
Copy link
Member

@neilalexander neilalexander left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@@ -1286,6 +1286,22 @@ func (o *Options) processConfigFileLine(k string, v any, errors *[]error, warnin
opFiles = append(opFiles, v)
case []string:
opFiles = append(opFiles, v...)
case []any:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could have a look at the helper parseStringArray(). That could simplify the case "operator" a bit, I think.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Jarema Do you want to look at using that helper or are we good as is?

@derekcollison derekcollison merged commit 6fc51c7 into main Sep 17, 2024
5 checks passed
@derekcollison derekcollison deleted the fix-operator-config-list branch September 17, 2024 14:33
@wallyqs wallyqs changed the title Fix operator list config [FIXED] Support multiple trusted operators using a config file Sep 17, 2024
wallyqs added a commit that referenced this pull request Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unable to add multiple trusted operators using a config file
4 participants