Skip to content

Commit

Permalink
Build the config as a tree of nodes for the new nodetreemodel impleme…
Browse files Browse the repository at this point in the history
…ntation (#29706)
  • Loading branch information
dustmop authored Oct 11, 2024
1 parent bf312f3 commit 9ea0234
Show file tree
Hide file tree
Showing 15 changed files with 1,144 additions and 618 deletions.
2 changes: 2 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ issues:
exclude:
- "Error return value of `io.WriteString` is not checked" # 'errcheck' errors in tools/dep_tree_resolver/go_deps.go
- "Error return value of `pem.Encode` is not checked" # 'errcheck' errors in test/integration/utils/certificates.go
- "Error return value of `c.logErrorNotImplemented` is not checked" # 'errcheck' errors in pkg/config/nodetreemodel/config.go
- "Error return value of `n.logErrorNotImplemented` is not checked" # 'errcheck' errors in pkg/config/nodetreemodel/config.go
- "exported: exported const Exec should have comment \\(or a comment on this block\\) or be unexported" # 'revive' errors in pkg/process/events/model/model_common.go
- "exported: exported const APIName should have comment \\(or a comment on this block\\) or be unexported" # 'revive' errors in pkg/serverless/trace/inferredspan/constants.go
- "unnecessary conversion" # 'unconvert' errors in test/integration/utils/certificates_test.go
Expand Down
1 change: 1 addition & 0 deletions pkg/config/model/viper.go
Original file line number Diff line number Diff line change
Expand Up @@ -572,6 +572,7 @@ func (c *safeConfig) SetEnvKeyReplacer(r *strings.Replacer) {
}

// UnmarshalKey wraps Viper for concurrent access
// DEPRECATED: use pkg/config/structure.UnmarshalKey instead
func (c *safeConfig) UnmarshalKey(key string, rawVal interface{}, opts ...viper.DecoderConfigOption) error {
c.RLock()
defer c.RUnlock()
Expand Down
Loading

0 comments on commit 9ea0234

Please sign in to comment.