mirror of
https://github.com/kubernetes/client-go.git
synced 2025-09-06 01:20:40 +00:00
prevent the same path load multiple times
Kubernetes-commit: 973e610787db8a9cee5da098e2f72672be817aa9
This commit is contained in:
committed by
Kubernetes Publisher
parent
fff8c3d73e
commit
1ae3aba19b
@@ -68,7 +68,9 @@ func (o *PathOptions) GetEnvVarFiles() []string {
|
||||
return []string{}
|
||||
}
|
||||
|
||||
return filepath.SplitList(envVarValue)
|
||||
fileList := filepath.SplitList(envVarValue)
|
||||
// prevent the same path load multiple times
|
||||
return deduplicate(fileList)
|
||||
}
|
||||
|
||||
func (o *PathOptions) GetLoadingPrecedence() []string {
|
||||
|
Reference in New Issue
Block a user