kubernetes/pkg/client/unversioned
Kubernetes Submit Queue 60b63b7cda Merge pull request #31767 from asalkeld/bad-context-error
Automatic merge from submit-queue

Add a check in ConfirmUsable() to validate the contextName

**What this PR does / why we need it**:
When a context name is provided, but can't be found (miss spelling), it currently
uses the defaults. This PR will cause the command to fail, to prevent unexpected side effects
of using the wrong configuration.

**Which issue this PR fixes**
fixes #21062

**Special notes for your reviewer**:
None

**Release note**:
```release-note
Error if a contextName is provided but not found in the kubeconfig.
```
2016-09-11 02:00:34 -07:00
..
adapters/internalclientset move StorageClass to its own group 2016-09-06 08:41:17 -04:00
auth Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
clientcmd Merge pull request #31767 from asalkeld/bad-context-error 2016-09-11 02:00:34 -07:00
fake Remove Codec from ContentConfig. 2016-07-08 13:53:09 +02:00
portforward expose ready/stop channel 2016-08-12 15:45:57 +02:00
remotecommand Add return code support to kubectl-exec and -run 2016-08-20 15:58:47 +02:00
testclient Revert "Use scale subresource" 2016-09-10 18:35:07 +02:00
apps.go Create client from API version passed in config or use default 2016-07-26 11:54:25 +02:00
authentication.go interesting changes to add tokenreviews endpoint to implement webhook 2016-08-03 08:37:45 -04:00
authorization.go add subjectaccessreviews resource 2016-08-05 11:20:56 -04:00
autoscaling.go Create client from API version passed in config or use default 2016-07-26 11:54:25 +02:00
batch.go Create client from API version passed in config or use default 2016-07-26 11:54:25 +02:00
certificates.go Create client from API version passed in config or use default 2016-07-26 11:54:25 +02:00
certificatesigningrequests.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
client.go move StorageClass to its own group 2016-09-06 08:41:17 -04:00
clusterrolebindings.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
clusterroles.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
componentstatuses.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
conditions.go Scaler and reaper for petset 2016-08-17 17:37:56 -07:00
configmap.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
containerinfo_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
containerinfo.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
daemon_sets_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
daemon_sets.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
deployment_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
deployment.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
doc.go updated document 2016-08-30 12:46:52 +04:30
endpoints_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
endpoints.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
events_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
events.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
extensions.go move StorageClass to its own group 2016-09-06 08:41:17 -04:00
flags_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
flags.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
helper_blackbox_test.go Remove Codec from ContentConfig. 2016-07-08 13:53:09 +02:00
helper_test.go Remove Codec from ContentConfig. 2016-07-08 13:53:09 +02:00
helper.go move StorageClass to its own group 2016-09-06 08:41:17 -04:00
horizontalpodautoscaler_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
horizontalpodautoscaler.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
import_known_versions.go move StorageClass to its own group 2016-09-06 08:41:17 -04:00
ingress_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
ingress.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
jobs_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
jobs.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
limit_ranges_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
limit_ranges.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
namespaces_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
namespaces.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
network_policys.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
nodes_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
nodes.go Migrate scheduler integration tests 2016-07-05 13:34:26 +02:00
persistentvolume_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
persistentvolumeclaim_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
persistentvolumeclaim.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
persistentvolumes.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
pet_sets_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
pet_sets.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
pod_disruption_budgets.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
pod_templates_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
pod_templates.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
pods_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
pods.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
podsecuritypolicy_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
podsecuritypolicy.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
policy.go Create client from API version passed in config or use default 2016-07-26 11:54:25 +02:00
rbac.go Create client from API version passed in config or use default 2016-07-26 11:54:25 +02:00
replica_sets_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
replica_sets.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
replication_controllers_test.go fix kubectl rolling-update when GC is enabled 2016-08-03 15:57:03 -07:00
replication_controllers.go fix kubectl rolling-update when GC is enabled 2016-08-03 15:57:03 -07:00
resource_quotas_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
resource_quotas.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
rolebindings.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
roles.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
scale.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
scheduledjobs_test.go ScheduledJob client and storage tests 2016-07-18 21:01:21 +02:00
scheduledjobs.go ScheduledJob controller 2016-08-05 13:34:50 -07:00
secrets.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
service_accounts.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
services_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
services.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
storage.go move StorageClass to its own group 2016-09-06 08:41:17 -04:00
storageclasses_test.go move StorageClass to its own group 2016-09-06 08:41:17 -04:00
storageclasses.go move StorageClass to its own group 2016-09-06 08:41:17 -04:00
subjectaccessreview.go add subjectaccessreviews resource 2016-08-05 11:20:56 -04:00
thirdpartyresources_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
thirdpartyresources.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
tokenreviews.go interesting changes to add tokenreviews endpoint to implement webhook 2016-08-03 08:37:45 -04:00
util_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
util.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00