Commit Graph

3112 Commits

Author SHA1 Message Date
Haowei Cai 495219a608 test
Kubernetes-commit: 2670651a3c06028b6aaadb9dc7151d71357364bf
2019-09-03 17:09:12 -07:00
Kubernetes Publisher 0ae3388cc2 Merge pull request #82252 from liggitt/webhook-client-auth-test
Match webhook client auth with ports consistently

Kubernetes-commit: b47349ad20084ed1033dad3349bc7d82970394c5
2019-09-03 16:01:51 -07:00
mengyang02 0da8f30350 replace time.Now().Sub with time.Since
Kubernetes-commit: 0205215425607a7a390eaa6493033511626bb189
2019-09-03 20:43:32 +08:00
Jordan Liggitt 25bf5d3b30 Add integration test for webhook client auth
Kubernetes-commit: e734c70e037cf1311581eb61ae3e45adaa76771b
2019-09-02 22:37:07 -04:00
Jordan Liggitt 80b9dc503b Plumb service port, URL port to webhook client auth resolution
Kubernetes-commit: d127042cb81cbf545332ec3124161525ef84183c
2019-09-02 22:38:36 -04:00
Jordan Liggitt 2de636a948 Search client auth with and without port
Kubernetes-commit: 2f5dde7672eaf90c7086f86a5a4ee190559f3bb2
2019-09-02 22:38:55 -04:00
Kubernetes Publisher fa157b05a9 Merge pull request #81413 from Bisnode/OIDC-honour-nbf
bump github.com/coreos/go-oidc dep to pick up nbf enforcement

Kubernetes-commit: 443002fcb7bdd5261e383b6da358a16e43183415
2019-08-31 11:53:05 +00:00
Kubernetes Publisher d70030a0cf Merge pull request #77354 from jennybuckley/crd-apply
Use CRD validation field in server-side apply

Kubernetes-commit: ab162cd28c332d0ecfb4f918d5f91e9e57acdb61
2019-08-31 07:56:30 +00:00
Kubernetes Publisher c6d374fefe Merge pull request #82048 from cheftako/kas-np4
Add support for konnectivity service to the etcd3 client.

Kubernetes-commit: c86da8e2c190c7e47d68d1863f9753ca6d7f2ba5
2019-08-30 23:56:34 +00:00
Ted Yu a50931ba7e Move Update Apply conflict test to field manager test
Kubernetes-commit: 9828f986afd4db79a10c78bee1cc2e449faee3a6
2019-08-30 14:47:39 -07:00
Patrick Ohly 10fe0e5ddc e2e log: Ginkgo 1.10.1 fixes stack skip
Now Ginkgo properly skips the initial stack entry.

Kubernetes-commit: ecd7ae55bc3ceda761f4405764815f70d38e3b2c
2019-08-30 17:58:48 +02:00
jennybuckley 53464e32f4 Update generated
Kubernetes-commit: badd5b9a26026138e4fc44a643ec1c6b65a7891b
2019-08-29 19:10:28 -07:00
jennybuckley b1cbdafe99 Use CRD validation field in server-side apply
Kubernetes-commit: c0617933d4bec5b00dbbfcd24edb7d7e7fc5509d
2019-08-28 15:28:49 -07:00
David Eads f591b4fabd add ability to pre-configure poststarthooks for apiservers
Kubernetes-commit: f14f4c933ee01d219ffbfa846875171e179019b7
2019-08-28 08:53:20 -04:00
Walter Fender da748a626b Add support for konnectivity service to the etcd3 client.
If konnectivity service is enabled, the etcd client will now use it.
This did require moving a few methods to break circular dependencies.

Factored in feedback from lavalamp and wenjiaswe.

Kubernetes-commit: edbb0fa2fe2084d5d9ce0cf9dc0d1b2d820bb392
2019-08-27 15:58:06 -07:00
Kubernetes Publisher 8531f088b9 Merge pull request #82090 from liggitt/webhook-http2
Use http/1.1 for apiserver->webhook clients

Kubernetes-commit: f442b6ef320140730f544527597a140e535f1e1d
2019-08-30 15:56:26 +00:00
Kubernetes Publisher d04458daaa Merge pull request #81969 from logicalhan/livez
add `/livez` endpoint for liveness probing on the kube-apiserver

Kubernetes-commit: 7acb066dbcd7d05106609711fc4ec110fec1d1a4
2019-08-30 03:56:33 +00:00
Kubernetes Publisher f2daa6c116 Merge pull request #81956 from apelisse/server-side-apply-beta
Server side apply beta

Kubernetes-commit: 991d71e9fe7da2035e06101f1b47cb8544592335
2019-08-30 03:56:32 +00:00
Kubernetes Publisher 087fed4186 Merge pull request #81399 from roycaihw/webhook-rejection-metrics
Fix the rejected label semantics in webhook metrics, add a counter metrics for webhook rejection with details

Kubernetes-commit: 34605737b9a96ee4b94ebf8f970501e238086370
2019-08-30 03:56:31 +00:00
Kubernetes Publisher 3a80fb09e3 Merge pull request #81770 from Hyzhou/fix_link
Fix broken link to api-conventions doc.

Kubernetes-commit: a9f0db16614ae62563ead2018f1692407bd93d8f
2019-08-30 03:56:29 +00:00
Kubernetes Publisher 26bbd75f8c Merge pull request #81435 from gyuho/with-block
Block etcd client creation until connection is up

Kubernetes-commit: 6c62ddc85bd7fdacbbd423ddf9f9fea376978f28
2019-08-30 03:56:27 +00:00
misakazhou 330a638869 Fix broken link to api-conventions doc.
Signed-off-by: misakazhou <misakazhou@tencent.com>

Kubernetes-commit: f0323a2030c7adae0e0965a7d3b455dd416472a0
2019-08-29 08:35:16 +08:00
Haowei Cai 8d86fef522 wire up the webhook rejection metrics in webhook handlers
Kubernetes-commit: 620f5f2c587971be50cb27bb2a2d35209b3dc058
2019-08-28 17:32:07 -07:00
Haowei Cai 466e192e26 test
Kubernetes-commit: 71d7477c2187c0f956b90b7b55e8beee449229a2
2019-08-28 16:54:39 -07:00
Haowei Cai c5bca07c6b add webhook rejection metrics
Kubernetes-commit: 714dced0d1c7fbb703fa55c39a071a8a97db9176
2019-08-28 16:49:47 -07:00
Haowei Cai e248b8b513 fix semantics of the rejected label in webhook metrics
when error calling webhook is ignored, do not log the request as
rejected

Kubernetes-commit: f3c793512b45ea3910d5e5a379292c13b62ab64b
2019-08-28 15:31:27 -07:00
Jordan Liggitt 956977bd20 Use http/1.1 in apiserver->webhook clients
Kubernetes-commit: ddc697866afd1e58cd2ee504277b405052546202
2019-08-28 13:37:50 -04:00
Jordan Liggitt ce4eaaeeb3 Make webhook benchmarks parallel
Kubernetes-commit: 601b7d33a9cf0b724cdabb5de81b0bf2821f0fca
2019-08-28 13:27:38 -04:00
Robert Bailey 1d85fa9bea Remove myself from reviewers across the repo so that PRs are no
longer assigned to me by blunderbuss.

Move myself to be an emeritus approver for the cluster directory.

Kubernetes-commit: 9d211ab352f78482fde7ec593b3dcacea9bcc139
2019-08-27 15:57:09 -07:00
Patrick Ohly 34efeebde7 e2e log: fix full stacktrace with Ginkgo 1.10.0
Ginkgo 1.10.0 includes the relevant fix for dumping the full stack
(https://github.com/onsi/ginkgo/pull/590), so when using that release
we can simplify the logging unit test.

By changing the skipping, we can avoid the rather volatile util.go
entries. However, that gomega is part of the stack trace still needs
to be fixed in Gingko.

Kubernetes-commit: 02ce619078b1a75e9fa258e101f81af899719e8e
2019-08-27 14:22:46 +02:00
Han Kang 050d1b223c add /livez as a liveness endpoint for kube-apiserver
go fmt

make func private

refactor config_test

Two primary refactorings:

1. config test checkPath method is now each a distinct test
run (which makes it easier to see what is actually failing)

2. TestNewWithDelegate's root path check now parses the json output and
does a comparison against a list of expected paths (no more whitespace
and ordering issues when updating this test, yay).

go fmt

modify and simplify existing integration test for readyz/livez

simplify integration test

set default rbac policy rules for livez

rename a few functions and the entrypoint command line argument (and etcetera)

simplify interface for installing readyz and livez and make auto-register completion a bootstrapped check

untangle some of the nested functions, restructure the code

Kubernetes-commit: aa1b2d6d35c92a31be17357fc66cfc1eca8a67e0
2019-08-26 16:57:25 -07:00
Antoine Pelisse a0d01904a5 Make ServerSideApply beta, and enable by default (on the server)
Kubernetes-commit: 66f24a73083fc0673721c9d099eef723b98fb198
2019-08-26 09:11:04 -07:00
Wojciech Tyczynski 20ecceebd3 Cache serializations
Kubernetes-commit: 25a728ae5eb0ae067d21679fad915c0555242470
2019-08-25 09:55:52 +02:00
Wojciech Tyczynski 4b6162fe6b CachingObject
Kubernetes-commit: 4cd81549f9a6a325183e6c43c831ecf79f434b8e
2019-08-25 06:16:49 +02:00
Elana Hashman 754a749970 Fix typo in EnableInf*l*ightQuotaHandler flag
Kubernetes-commit: a71178ef62053555592c37caec8cd4c635231970
2019-08-23 15:16:29 -07:00
Han Kang 7400a466d2 Explicitly handle returned error values in admission metrics_test
Kubernetes-commit: 774641ebdbdc7fe89380e7e1e77f5ebbe843ecec
2019-08-21 12:13:33 -07:00
wojtekt 94a2664cd3 Implement support for CacheableObject
Kubernetes-commit: 970f103e2c079da98743db35e38fd411a64e2e04
2019-08-15 22:02:33 +02:00
wojtekt f186d58ea0 Fix transformObject to work with CacheableObject.
Kubernetes-commit: 1dd43724ce97b610aae7f9e0f3842f0798ec9d7b
2019-08-19 09:55:49 +02:00
Gyuho Lee 1d75397d46 k8s/apiextensions-apiserver/test/integration: block etcd client creation until connection is up
The new etcd balancer (>3.3.14, 3.4.0) uses an asynchronous resolver for
endpoints. Without "WithBlock", the client may return before the
connection is up.

Signed-off-by: Gyuho Lee <leegyuho@amazon.com>

Kubernetes-commit: a254d0e2a67645948c9631d4bf11ef60aa26f5ae
2019-08-14 17:28:54 -07:00
Kubernetes Publisher 10e972dc08 Merge pull request #81509 from RainbowMango/pr_add_authentication_metrics
Add authentication metrics: failure, error count

Kubernetes-commit: 30f2545364f3225b62651e26b872e5abdf21ab0b
2019-08-29 03:52:48 +00:00
RainbowMango a9e8b3830d Add authentication metrics: overall failure and error count
Kubernetes-commit: a7ac3b9bbe3f3e35117bd7109997e58ce467f0a9
2019-08-16 19:30:43 +08:00
Kubernetes Publisher ff4d6509a8 Merge pull request #81946 from deads2k/cache
add cache-control headers to kube-apiserver

Kubernetes-commit: 8af33f9733d8905c76fd3db85b541943b89f67d7
2019-08-28 16:00:19 +00:00
Kubernetes Publisher f4165ded8c Merge pull request #81896 from liggitt/webhook-efficiency
Compute webhook selectors and client once per webhookconfig revision

Kubernetes-commit: 273e1a4605e438ccfcfe5c2080e08d308b9b9066
2019-08-28 11:56:47 +00:00
Kubernetes Publisher a7bb1804a7 Merge pull request #81871 from prameshj/vendor-update
Update vendor k8s-cloud-provider and google API

Kubernetes-commit: 91bec13163b18238a8ed3d9b872cd27b1193077d
2019-08-28 11:56:45 +00:00
Kubernetes Publisher 5e753bafc7 Merge pull request #81754 from apelisse/version-fields
Add FieldsType field to ManagedFields to track content format

Kubernetes-commit: 61e2f52e38ff73f0704b12a0edfa94c8a6619a45
2019-08-28 11:56:40 +00:00
Kubernetes Publisher d4d82326ad Merge pull request #81531 from logicalhan/kas-migration
migrate kube-apiserver metrics to stability framework

Kubernetes-commit: f24aa47ceab19d174117d80eec657875c06aeb0c
2019-08-28 11:56:38 +00:00
Kubernetes Publisher 3b38fd7ad4 Merge pull request #78738 from jennybuckley/apply-only
Don't start tracking field management until object has been applied

Kubernetes-commit: 0a784c5dc9b7843a642f913c9805c34ae3d4879d
2019-08-28 07:52:30 +00:00
Han Kang 17306f6993 add comment about explicitly registering grpcprom client metrics
Kubernetes-commit: 1700a315c188e4b9d434d1e51de75426aa9d7867
2019-08-27 10:30:57 -07:00
Kubernetes Publisher 6101c6d99e Merge pull request #81682 from caesarxuchao/beta-remainingItemCount
promote the remainingItemCount field to beta

Kubernetes-commit: 36e0ea6bfaa9da19eff5e65f48b47f8f42efdcd6
2019-08-27 08:00:03 +00:00
Han Kang 3e6e1db500 add some documentation around the metrics stability migration changes for clarity
Kubernetes-commit: 4e5d906c4d008f914b0ede26ea91533d6343dec5
2019-08-26 19:15:30 -07:00