Skip to content

Commit dbc4be0

Browse files
committed
Reword the defaults for KubeconfiFiles/Dirs
Signed-off-by: Nelo-T. Wallus <[email protected]>
1 parent b557af2 commit dbc4be0

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

providers/file/provider.go

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,11 @@ type Options struct {
5050
//
5151
// If either one or both of KubeconfigFiles or KubeconfigDirs are
5252
// set both are used as input for the provider.
53-
// If both are empty defaults are in this order:
54-
// 1. If the KUBECONFIG environment variable is set it is set in
55-
// KubeconfigFiles.
56-
// 2. If ~/.kube/config exists it is set in KubeconfigFiles.
57-
// 3. The working directory of the provider process is set in
58-
// KubeconfigDirs.
53+
// If both are empty defaults are applied in order of precedence:
54+
// 1. If the KUBECONFIG environment variable is set and contains
55+
// a path to a valid file it is used in KubeconfigFiles.
56+
// 2. If ~/.kube/config exists it is used in KubeconfigFiles.
57+
// 3. The working directory is used in KubeconfigDirs.
5958
KubeconfigDirs []string
6059

6160
// KubeconfigGlobs are the glob patterns to match kubeconfig files

0 commit comments

Comments
 (0)