// DirectClientConfig is a ClientConfig interface that is backed by a clientcmdapi.Config, options overrides, and an optional fallbackReader for auth information
typeDirectClientConfigstruct{
configclientcmdapi.Config
...
...
@@ -79,21 +84,23 @@ type DirectClientConfig struct {
overrides*ConfigOverrides
fallbackReaderio.Reader
configAccessConfigAccess
// promptedCredentials store the credentials input by the user
promptedCredentialspromptedCredentials
}
// NewDefaultClientConfig creates a DirectClientConfig using the config.CurrentContext as the context name
// NewInteractiveClientConfig creates a DirectClientConfig using the passed context name and a reader in case auth information is not provided via files or flags