// ConfirmUsable looks a particular context and determines if that particular part of the config is useable. There might still be errors in the config,
// ConfirmUsable looks a particular context and determines if that particular part of the config is useable. There might still be errors in the config,
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("client-key-data and client-key are both specified for %v; client-key-data will override",authInfoName))
// authPath also provides information for the client to identify the server, so allow multiple auth methods in that case
// authPath also provides information for the client to identify the server, so allow multiple auth methods in that case
if(len(methods)>1)&&(!usingAuthPath){
if(len(methods)>1)&&(!usingAuthPath){
validationErrors=append(validationErrors,fmt.Errorf("more than one authentication method found for %v. Found %v, only one is allowed",authInfoName,methods))
validationErrors=append(validationErrors,fmt.Errorf("more than one authentication method found for %v; found %v, only one is allowed",authInfoName,methods))
validationErrors=append(validationErrors,fmt.Errorf("namespace, %v, for context %v, does not conform to the kubernetes DNS952 rules",context.Namespace,contextName))
validationErrors=append(validationErrors,fmt.Errorf("namespace %q for context %q does not conform to the kubernetes DNS952 rules",context.Namespace,contextName))
expectedErrorSubstring:[]string{"user, missing, was not found for Context anything","cluster, missing, was not found for Context anything"},
expectedErrorSubstring:[]string{"user\"missing\" was not found for context \"anything\"","cluster \"missing\" was not found for context \"anything\""},