k3s/test/e2e
Kubernetes Submit Queue 23226c24d4
Merge pull request #58070 from weekface/weekface/aggregator-proxy-fix
Automatic merge from submit-queue (batch tested with PRs 57896, 58070). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Don't remove APIService from apiHandlerManager when its Available Conditions is not True

**What this PR does / why we need it**:

I use my own apiserver works together with `kube-apiserver`, i have a custom resource: `databases` and created a `database` named: `db-name-1`.

When this apiserver is down(for example: OOMKilled), `kubectl get databases db-name-1 -v 10` returns `404 NotFound`:

```
[{
  "metadata": {},
  "status": "Failure",
  "message": "the server could not find the requested resource (get databases.core.example.com db-name-1)”,
  "reason": "NotFound",
  "details": {
    "name": “db-name-1”,
    "group": "core.example.com",
    "kind": “databases”,
    "causes": [
      {
        "reason": "UnexpectedServerResponse",
        "message": "404 page not found"
      }
    ]
  },
  "code": 404
}]
```

But it is not really `NotFound`.

So if the APIService is not available, just return 503.

There was a PR related with this: #57943 

**Release note**:


```release-note
kube-apiserver: requests to endpoints handled by unavailable extension API servers (as indicated by an `Available` condition of `false` in the registered APIService) now return `503` errors instead of `404` errors.
```
2018-01-21 20:25:31 -08:00
..
apimachinery Merge pull request #58070 from weekface/weekface/aggregator-proxy-fix 2018-01-21 20:25:31 -08:00
apps the changes introduced in this commit plumbs in the generic scaler into kubectl. 2018-01-12 09:21:18 +01:00
auth remove duplicated import 2018-01-17 09:34:59 +08:00
autoscaling Disable the DNS autoscaler test in large clusters. 2017-12-22 11:04:23 +01:00
chaosmonkey Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
common Merge pull request #56432 from yujuhong/bump-test-container-timeout 2017-12-27 12:25:41 -08:00
framework Update e2e test utils with the new interfaces 2018-01-18 17:21:55 -08:00
generated update BUILD files 2017-10-15 18:18:13 -07:00
instrumentation Adjust the Stackdriver Logging length test 2018-01-12 20:26:37 +01:00
kubectl fix failed to access service of e2e test 2017-11-14 19:21:59 +08:00
lifecycle create auto-gen files 2018-01-17 16:23:03 +08:00
manifest Update bazel 2017-10-18 17:24:04 +02:00
multicluster Move multizone volume tests to separate file and 2017-12-20 10:52:53 -08:00
network Merge pull request #57896 from chrisglass/conntrack_test_fix 2018-01-21 20:25:29 -08:00
node Review fixes 2017-11-14 10:16:30 +01:00
perftype update BUILD files 2017-10-15 18:18:13 -07:00
scalability the changes introduced in this commit plumbs in the generic scaler into kubectl. 2018-01-12 09:21:18 +01:00
scheduling the changes introduced in this commit plumbs in the generic scaler into kubectl. 2018-01-12 09:21:18 +01:00
servicecatalog use versiond group clients from client-go 2017-11-07 14:47:22 +08:00
storage Add multi-vc configuration for e2e tests 2018-01-18 15:29:27 -08:00
testing-manifests inject 60 second interval in deployment rollout 2018-01-17 18:03:03 -08:00
ui Update Dashboard add-on to version 1.8.0 2017-11-28 17:53:02 +01:00
upgrades Merge pull request #55995 from supereagle/extensions-client-with-version 2017-12-14 00:45:15 -08:00
BUILD All Kubelet flags should be explicitly registered 2018-01-09 17:37:34 -08:00
README.md
e2e-example-config.json
e2e.go Fix golint errors on test/e2e/e2e.go 2018-01-11 10:13:10 -08:00
e2e_test.go Merge pull request #51898 from guangxuli/federation_e2e_test 2017-10-06 13:16:37 -07:00
examples.go the changes introduced in this commit plumbs in the generic scaler into kubectl. 2018-01-12 09:21:18 +01:00
gke_local_ssd.go Migrate api.Registry to testapi.Groups in tests. 2017-07-17 15:05:38 -07:00
gke_node_pools.go

README.md

See e2e-tests

Analytics