kubernetes/test
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
..
conformance Create Conformance document to display all tests that belong to Conformance suite 2018-01-15 14:17:48 -08:00
e2e Merge pull request #58070 from weekface/weekface/aggregator-proxy-fix 2018-01-21 20:25:31 -08:00
e2e_node Skip log path tests when they are expected to fail. 2018-01-19 10:51:13 -08:00
fixtures Revert k8s.gcr.io vanity domain 2017-12-22 14:36:16 -08:00
images Let mutating webhook defaults the object after applying the patch sent back by the webhook 2018-01-09 15:58:18 -08:00
integration Merge pull request #58360 from liggitt/csi-node-authorizer 2018-01-18 20:55:34 -08:00
kubemark Revert k8s.gcr.io vanity domain 2017-12-22 14:36:16 -08:00
list Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
soak Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
utils the changes introduced in this commit plumbs in the generic scaler into kubectl. 2018-01-12 09:21:18 +01:00
BUILD Add conformance test regression test. 2017-10-27 15:31:20 -07:00
OWNERS fabiano no longer a thing 2017-12-19 16:37:12 -02:00
test_owners.csv Move scheduler code out of plugin directory. 2018-01-05 15:05:01 -08:00
test_owners.json Remove all traces of federation 2017-10-26 13:37:37 -07:00