| 45 | } |
| 46 | |
| 47 | type PathOptions struct { |
| 48 | // GlobalFile is the full path to the file to load as the global (final) option |
| 49 | GlobalFile string |
| 50 | // EnvVar is the env var name that points to the list of kubeconfig files to load |
| 51 | EnvVar string |
| 52 | // ExplicitFileFlag is the name of the flag to use for prompting for the kubeconfig file |
| 53 | ExplicitFileFlag string |
| 54 | |
| 55 | // GlobalFileSubpath is an optional value used for displaying help |
| 56 | GlobalFileSubpath string |
| 57 | |
| 58 | LoadingRules *ClientConfigLoadingRules |
| 59 | } |
| 60 | |
| 61 | func (o *PathOptions) GetEnvVarFiles() []string { |
| 62 | if len(o.EnvVar) == 0 { |
nothing calls this directly
no outgoing calls
no test coverage detected