Commit Graph

4051 Commits

Author SHA1 Message Date
Kubernetes Publisher 3f80aac972 Merge pull request #94766 from sttts/sttts-healthz-name
apiserver: fix healthz vs. livez vs. readyz log output

Kubernetes-commit: f448dc54bd2f7f7e56debd97c2467cd1a5a3c9fa
2020-09-26 04:04:24 +00:00
Kubernetes Publisher 4626e73796 Merge pull request #94983 from Jefftree/update-netproxy
Bump konnectivity-client to v0.0.12

Kubernetes-commit: b39a9a943f56057ae96f69e88b61d60afb1e3b46
2020-09-26 04:04:22 +00:00
Kubernetes Publisher e996d15d55 Merge pull request #94364 from wojtek-t/efficient_watch_resumption
Efficient watch resumption

Kubernetes-commit: 0f39af90ed39794ceea426aa0f77de67b1392308
2020-09-26 00:06:21 +00:00
Kubernetes Publisher 6f7a0a81fa Merge pull request #94288 from LogicalShark/apiserver-selfreq
API server self request metric

Kubernetes-commit: 282ceef2cf6aecfd2383239eadacc58c354ae4b9
2020-09-25 00:04:09 +00:00
Kubernetes Publisher eec9279056 Merge pull request #93247 from iotty/fix.govet
[k8s.io/apiserver/pkg/server/filters]: fixup go vet warning

Kubernetes-commit: 9b1d273c89e03e9a85f84b034dd97509ed144712
2020-09-25 00:04:08 +00:00
Lukasz Szaszkiewicz 383e99f309 stops puting a stacktrace of aborted requests in the logs
Aborted requests are the ones that were disrupted with http.ErrAbortHandler.
For example, the timeout handler will panic with http.ErrAbortHandler when a response to the client has been already sent
and the timeout elapsed.

Additionally, a new metric requestAbortsTotal was defined to count aborted requests. The new metric allows for aggregation for each group, version, verb, resource, subresource and scope.

Kubernetes-commit: 057986e32c1bb7284b0edbc161f0380f1548492f
2020-09-24 10:07:24 +02:00
Marcus Alder ab7c669cad apiserver self request metric
Kubernetes-commit: 6f85e5c11179040b3618bcce9abe4e8f769323ad
2020-09-23 19:54:03 +00:00
Kubernetes Publisher 899cb1b459 Merge pull request #94872 from roycaihw/typo/fix-webhook-test-name
fix duplicate testcase names in TestValidateCachedClient

Kubernetes-commit: 299f6b7c60f8c9e0b029647152514a64d71522fe
2020-09-23 00:04:06 +00:00
Jefftree e2902d36a1 Bump konnectivity-client to v0.0.12
Kubernetes-commit: 89d5adc050d8fce6dcc6480fdfd254d89a3d0ffb
2020-09-22 13:24:18 -07:00
Kubernetes Publisher 3a79dc9491 Merge pull request #94903 from tkashem/request-received-timestamp
Take into account the latency incurred in server filters

Kubernetes-commit: f5a0250800309017e667e82067d704b6ed28513a
2020-09-21 20:03:58 +00:00
Kubernetes Publisher f65062cdff Merge pull request #94803 from azush26/modify-bearertoken
Limit the max number of splitting.

Kubernetes-commit: 0c3286e13548ba31532e0af00abf1eb3f0c56ee3
2020-09-21 20:03:56 +00:00
Andrea Nodari 618f4b129a Make the creation of namespace using POST and PATCH consistent
PATCH verb is used when creating a namespace using server-side apply,
while POST verb is used when creating a namespace using client-side
apply.

The difference in path between the two ways to create a namespace led to
an inconsistency when calling webhooks. When server-side apply is used,
the request sent to webhooks has the field "namespace" populated with
the name of namespace being created. On the other hand, when using
client-side apply the "namespace" field is omitted.

This commit aims to make the behaviour consistent and populates the
"namespace" field when creating a namespace using POST verb (i.e.
client-side apply).

Kubernetes-commit: 3cb510e33eecbdc37aad14f121396ccfbf5268cb
2020-09-21 12:13:12 +02:00
yue9944882 0c7caae2de e2e cases for apf
Kubernetes-commit: c28036efa5fcafdbd9d10014c9197bef42d05eaf
2020-09-21 15:43:01 +08:00
Kubernetes Publisher 530a2e2c2c Merge pull request #91785 from mattcary/filtereddial
Specify a DialContext in storage plugin clients

Kubernetes-commit: b86e725694e81b48ea36b11f647f28cf70a66210
2020-09-18 15:08:27 -07:00
Abu Kashem 50cce843c9 Take into account latency incurred in server filters
apiserver_request_duration_seconds does not take into account the
time a request spends in the server filters. If a filter takes longer
then the latency incurred will not be reflected in the apiserver
latency metrics.

For example, the amount of time a request spends in priority and
fairness machineries or in shuffle queues will not be accounted for.

- Add a server filter that attaches request received timestamp to the
request context very early in in the handler chain (as soon as
net/http hands over control to us).
- Use the above received timestamp in the apiserver latency metrics
apiserver_request_duration_seconds.
- Use the above received timestamp in the audit layer to set
RequestReceivedTimestamp.

Kubernetes-commit: d74ab9e1a4929be208d4529fd12b76d3fcd5d546
2020-09-18 16:46:07 -04:00
azush26 df032850ea Add an unit test for requests including value after token
Kubernetes-commit: 367214dffdc070706011c6814cb2307749b0503f
2020-09-19 01:04:35 +09:00
Matthew Cary cf59895ec0 update-bazel
Change-Id: Iebc99ee13587f0cd4c43ab85c7295d458d679d1e

Kubernetes-commit: 299a296c7a6e88b49c9d5e5c43749c5f2b7805e1
2020-09-18 00:44:39 +00:00
Haowei Cai 8622b05104 fix duplicate testcase names
Kubernetes-commit: c3f71ad5487844e4cdd01702d4df3ac8606ca397
2020-09-17 17:15:05 -07:00
Haowei Cai 07efe569d7 add a OWNERS file under storageversion
Kubernetes-commit: 184b4603692e0b497bd039e12c65461ae71e0993
2020-09-15 13:16:59 -07:00
azush26 c0d57defce Limit the max number of splitting
Kubernetes-commit: bf516ab99c3c2ce2b4ad6d0acaf122a4d216cc2d
2020-09-15 23:04:57 +09:00
Dr. Stefan Schimanski 4cf3f7725b apiserver: fix healthz vs. livez vs. readyz log output
Kubernetes-commit: 480b4c74b858a9caac0b33cb4d9a1ab30ae65cf4
2020-09-15 15:46:02 +02:00
wojtekt c4fb001eda Enable progress notify events in watchcache
Kubernetes-commit: a94fb5369d5e77b3fcafd1296bac072a1d6e13fe
2020-08-31 13:15:36 +02:00
wojtekt e40efde837 Implement etcd3 progress-notify feature in etcd3 layer
Kubernetes-commit: 56e72841b6005740453828a9f4f7a9a1b9a831f6
2020-08-31 12:40:41 +02:00
wojtekt a5000473c1 Pipe newFunc to etcd3 storage layer
Kubernetes-commit: fbd65a265a47ffe081aaac2f794a55034333d11d
2020-08-31 11:58:45 +02:00
卢振兴10069964 3e37d6db5c add audit-log-compress to apiserver
Kubernetes-commit: 9470f64a4f8af6439cb6c5c35335121446faade3
2020-08-18 11:26:07 +08:00
Tomas Nozicka 83e381874d Add context to x509 verify failures
Kubernetes-commit: bf52770e413dc6095203cd5ec1716dc3764eee8e
2020-08-17 14:35:48 +02:00
bjrara bb16b18666 Fix issue in missing metrics of terminated requests
Kubernetes-commit: ce00f4ee545af8d7b7519045c3422893e19d43bc
2020-08-17 15:57:15 +08:00
Joe Betz 2c72507385 Tag LabelSelector with +structType=atomic
Kubernetes-commit: 8874bdf00402b55cf5ede88a5ba4dfc94e9f4399
2020-08-11 11:34:15 -07:00
Joe Betz 8aaa8b7cce Bump to latest kube-openapi and SMD to pick up structType=atomic support
Kubernetes-commit: f298d549f60c9342abcff1ad17d8455cd62b19fb
2020-09-30 11:49:13 -07:00
Haowei Cai 6f2e425b98 generated
Kubernetes-commit: b5b93004b59295267dff5c7fa68eb2e8877ca3a2
2020-08-10 23:05:01 -07:00
Haowei Cai 276689a456 generated
Kubernetes-commit: c548d016d4907f613c063e73c181384552a3b88c
2020-07-29 14:38:10 -07:00
Zhou Peng b07fe5362d [k8s.io/apiserver/pkg/server/filters]: fixup go vet warning
Signed-off-by: Zhou Peng <p@ctriple.cn>

Kubernetes-commit: 842cd8e315566388025f509edf563b20022922f6
2020-07-20 17:06:01 +08:00
Patrik Cyvoct ddd0b07a5a Allow configuration of etcd healthcheck timeout
Signed-off-by: Patrik Cyvoct <patrik@ptrk.io>

Kubernetes-commit: 2e430ba622817b534642fd93098f87ea7f983aee
2020-07-20 09:22:13 +02:00
Ken Sipe 3c3ae0913c fixing unwanted editor changes
Signed-off-by: Ken Sipe <kensipe@gmail.com>

Kubernetes-commit: 3de47dc05853131dcfc588bf2043207487cdd7c4
2020-06-25 17:31:38 -05:00
Ken Sipe 0da065589a fix S1023 redundant return statement
Signed-off-by: Ken Sipe <kensipe@gmail.com>

Kubernetes-commit: 1d795002919675b8cf3bf462b6543fef843b5b54
2020-06-25 17:29:42 -05:00
Ken Sipe b60943f03a fix S1019 use of make
Signed-off-by: Ken Sipe <kensipe@gmail.com>

Kubernetes-commit: a4d05d51d95d30ebe90ec8f652c9a794caa44d53
2020-06-25 17:26:42 -05:00
Ken Sipe 92af261bb8 fix SA2006 value of err not used
Signed-off-by: Ken Sipe <kensipe@gmail.com>

Kubernetes-commit: a549d0a75e3a09d26f3a316982ff3711be4ed1d2
2020-06-25 17:23:37 -05:00
Ken Sipe 5d58b175c8 fix S1021 var declaration
Signed-off-by: Ken Sipe <kensipe@gmail.com>

Kubernetes-commit: 6c49299739a9819c3672248517ab3d6636d1d8c6
2020-06-25 17:10:34 -05:00
Ken Sipe 8877e7bd70 fix S1039 unnecessary use of fmt.Sprintf
Signed-off-by: Ken Sipe <kensipe@gmail.com>

Kubernetes-commit: 168677400c964fe823b985db35b5e1473db17b0f
2020-06-25 17:04:41 -05:00
Haowei Cai 63a8ee2ad7 add the storageversion.Manager interface
Kubernetes-commit: 48361711a50d634a676a63ccac177b46f94ffe3b
2020-06-23 23:55:38 -07:00
drfish 385e831c2d Fix typo in apiserver config.file file
Kubernetes-commit: 3d51cbef6b099db14bd5bf966be46cecc1514a47
2020-06-20 22:26:18 +08:00
Matthew Cary 76fa8bebd1 update storageos vendor for FilteredDial change
Kubernetes-commit: 74dbf274d963d730491b64e89c60e9bb6212a9d5
2020-06-10 01:02:40 +00:00
Kubernetes Publisher 6f1910367b Merge pull request #93214 from trashhalo/prefer-error
test: prefer NoError/Error over Nil/NotNil

Kubernetes-commit: 09b3f6dbb3224f32d28c81f330f303ac16ee2eae
2020-09-17 00:12:31 +00:00
Kubernetes Publisher db2da9544d Merge pull request #94773 from tkashem/etcd-object-count
count of etcd object should be limited to the specified resource

Kubernetes-commit: 9fdbf1cf89809763aa7b405a7e641d37f45d2e21
2020-09-15 23:48:36 +00:00
Kubernetes Publisher c7456b3315 Merge pull request #93537 from timuthy/enhancement.move-resourcequota
Move ResourceQuota admission to k8s.io/apiserver lib

Kubernetes-commit: e7b9453972eccaa57d18dfb7024b017b97de0b26
2020-09-15 19:48:42 +00:00
Kubernetes Publisher de4e75122a Merge pull request #91993 from nodo/89274-change-of-managefields-via-subresources
Do not allow manual changes to manageFields via subresources

Kubernetes-commit: 396dd2555d185bb613bb42e9f207682c7ed85910
2020-09-15 19:48:40 +00:00
Kubernetes Publisher add1986a03 Merge pull request #94711 from jingyih/update_etcd
Bump etcd to dd1b699fc489

Kubernetes-commit: 3a42886dee904cbbbbc593705a64501ec3cb76d5
2020-09-15 09:18:58 +00:00
Abu Kashem bd49a32a3f count of etcd object should be limited to the specified resource
Currently count includes keys from different resource(s) if the keys
are a prefix of the specified resource/key.

Consider the following keys:
A: <storage-prefix>//foo.bar.io/machines
B: <storage-prefix>//foo.bar.io/machinesets
If we ask for the count of key A, the result will also include the
keys from key B since key B shares the same prefix as key A.

Append a separator to mark the end of the key, this will exclude all
other keys from a different resource that is a prefix of the specified
key.

Kubernetes-commit: 7e445867aa4d37a67591faf6e5508abaea69d216
2020-09-11 17:07:09 -04:00
jingyih c47e522738 Update etcd to dd1b699fc489
Kubernetes-commit: 5ee8e8e9181eb45876e07ea4fe825283a5dc2794
2020-09-11 17:20:29 +08:00
Kubernetes Publisher 00267339c0 Merge pull request #94589 from p0lyn0mial/racy-serialize-object
fixes a data race in SerializeObject function

Kubernetes-commit: 425edbb397de02f872b01aa5dbe2079a3a3f2ff5
2020-09-09 13:24:53 +00:00