-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Conversation
Signed-off-by: Tomasz Pietrek <tomasz@nats.io>
780e6a3
to
0104407
Compare
Signed-off-by: Tomasz Pietrek <tomasz@nats.io>
There was a problem hiding this 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: |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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?
fixes #5810
Signed-off-by: Tomasz Pietrek tomasz@nats.io