Skip to content

feat: implement runtime configuration package with multi-org support #14624

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

Merged
merged 21 commits into from
Sep 9, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
make lint/fmt
Signed-off-by: Danny Kopping <danny@coder.com>
  • Loading branch information
dannykopping authored and Emyrk committed Sep 6, 2024
commit 43e9e85cce856420f2b79f20e438f2b9f02dd1e0
2 changes: 1 addition & 1 deletion coderd/runtimeconfig/resolver.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func (r OrgResolver) GetRuntimeSetting(ctx context.Context, key string) (string,

// NoopResolver will always fail to resolve the given key.
// Useful in tests where you just want to look up the startup value of configs, and are not concerned with runtime config.
type NoopResolver struct {}
type NoopResolver struct{}

func NewNoopResolver() *NoopResolver {
return &NoopResolver{}
Expand Down
2 changes: 1 addition & 1 deletion coderd/runtimeconfig/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ func create[T any]() T {

func orgKey(orgID uuid.UUID, key string) string {
return fmt.Sprintf("%s:%s", orgID.String(), key)
}
}