Handle auth files with BearerToken sections.

This commit is contained in:
Eric Tune
2014-10-20 13:49:24 -07:00
parent 71c6f8ee5c
commit 21dae01005
6 changed files with 39 additions and 14 deletions

View File

@@ -59,12 +59,13 @@ func GetKubeClient(config *client.Config, matchVersion bool) (*client.Client, er
}
type AuthInfo struct {
User string
Password string
CAFile string
CertFile string
KeyFile string
Insecure *bool
User string
Password string
CAFile string
CertFile string
KeyFile string
BearerToken string
Insecure *bool
}
// LoadAuthInfo parses an AuthInfo object from a file path. It prompts user and creates file if it doesn't exist.