mirror of
https://github.com/rancher/norman.git
synced 2025-09-27 15:44:10 +00:00
vendor change
This commit is contained in:
committed by
Alena Prokharchyk
parent
a40a48add2
commit
5bbe7031a6
10
vendor/k8s.io/client-go/tools/clientcmd/client_config.go
generated
vendored
10
vendor/k8s.io/client-go/tools/clientcmd/client_config.go
generated
vendored
@@ -297,16 +297,6 @@ func makeUserIdentificationConfig(info clientauth.Info) *restclient.Config {
|
||||
return config
|
||||
}
|
||||
|
||||
// makeUserIdentificationFieldsConfig returns a client.Config capable of being merged using mergo for only server identification information
|
||||
func makeServerIdentificationConfig(info clientauth.Info) restclient.Config {
|
||||
config := restclient.Config{}
|
||||
config.CAFile = info.CAFile
|
||||
if info.Insecure != nil {
|
||||
config.Insecure = *info.Insecure
|
||||
}
|
||||
return config
|
||||
}
|
||||
|
||||
func canIdentifyUser(config restclient.Config) bool {
|
||||
return len(config.Username) > 0 ||
|
||||
(len(config.CertFile) > 0 || len(config.CertData) > 0) ||
|
||||
|
Reference in New Issue
Block a user