Skip to content

Commit 89fd676

Browse files
committed
Document DoNotLoadDropInFiles ignoring _OVERRIDE variables
Signed-off-by: Jan Kaluza <jkaluza@redhat.com>
1 parent 1bfc56a commit 89fd676

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

storage/pkg/configfile/parse.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ type File struct {
5555
DoNotLoadMainFiles bool
5656

5757
// DoNotLoadDropInFiles should be set if only the main files should be loaded.
58+
// If DoNotLoadDropInFiles is set, the _OVERRIDE environment variable is ignored.
5859
DoNotLoadDropInFiles bool
5960

6061
// DoNotUseExtensionForConfigName makes it so that the extension is only consulted for the drop in
@@ -91,6 +92,8 @@ func getConfName(name, extension string, noExtension bool) string {
9192
// If an error is returned by the iterator then this must be treated as fatal error and must fail the config file parsing.
9293
// Expected ENOENT errors are already ignored in this function and must not be handled again by callers.
9394
// The given File options must not be nil and populated with valid options.
95+
//
96+
// The _OVERRIDE environment is ignored if DoNotLoadDropInFiles is set.
9497
func Read(conf *File) iter.Seq2[*Item, error] {
9598
return ReadWithPaths(conf, nil)
9699
}

0 commit comments

Comments
 (0)