-
Notifications
You must be signed in to change notification settings - Fork 522
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
Add runtime config handler #936
Conversation
aff22f8
to
3c85788
Compare
adbb870
to
50e2442
Compare
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.
Looking good, nice work @mapno! Left a minor comment.
// we set defaultLimits for every tenant that exists in runtime config. | ||
defaultCfg := perTenantOverrides{TenantLimits: map[string]*Limits{}} | ||
defaultCfg.TenantLimits = map[string]*Limits{} | ||
for k, v := range tenantOverrides.TenantLimits { |
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.
I think this will result in null pointer dereference if o.tenantOverrides == nil
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.
I think it's fine since we're instantiating a zero value in line 153 and only assign a value if o.tenantOverrides() != nil
What this PR does:
Adds a runtime config handler at
/runtime_config
Which issue(s) this PR fixes:
Fixes #893
Checklist
CHANGELOG.md
updated - the order of entries should be[CHANGE]
,[FEATURE]
,[ENHANCEMENT]
,[BUGFIX]