validationErrors=append(validationErrors,fmt.Errorf("certificate-authority-data and certificate-authority are both specified for %v. certificate-authority-data will override.",clusterName))
validationErrors=append(validationErrors,fmt.Errorf("unable to read client-cert %v for %v due to %v",authInfo.ClientCertificate,authInfoName,err))
validationErrors=append(validationErrors,fmt.Errorf("client-cert-data and client-cert are both specified for %v. client-cert-data will override.",authInfoName))
}
}
clientKeyFile,err:=os.Open(authInfo.ClientKey)
// Make sure key data and file aren't both specified
validationErrors=append(validationErrors,fmt.Errorf("client-key-data and client-key are both specified for %v. client-key-data will override.",authInfoName))
validationErrors=append(validationErrors,fmt.Errorf("unable to read client-key %v for %v due to %v",authInfo.ClientKey,authInfoName,err))
validationErrors=append(validationErrors,fmt.Errorf("client-key-data or client-key must be specified for %v to use the clientCert authentication method.",authInfoName))