Commit Graph

12011 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
5c58b22251 Merge pull request #97957 from yue9944882/aa-server-apf-optionality
Disables APF if the aggregated apiserver cannot locate the core kube-apiserver
2021-01-13 07:50:36 -08:00
Kubernetes Prow Robot
da29bd9133 Merge pull request #97971 from liggitt/testdata
Add API testdata population instructions
2021-01-13 06:58:48 -08:00
Kubernetes Prow Robot
33518271f3 Merge pull request #96502 from 249043822/br-hsts
Fix HSTS Missing From HTTPS Server(Nessus Scanner)
2021-01-13 06:58:36 -08:00
Kubernetes Prow Robot
d52fe32cd5 Merge pull request #95360 from erwinvaneyk/fix-generate-internal-groups-bash
Fix generate-internal-groups.sh for bash < 5.x
2021-01-13 05:28:36 -08:00
yue9944882
02df343437 disables APF if the aggregated apiserver cannot locate the core kube-apiserver 2021-01-13 12:42:29 +08:00
Kubernetes Prow Robot
70435a298c Merge pull request #97172 from Jefftree/opentest
Fix openapi model generation for apply when x-int-or-string is set
2021-01-12 16:02:35 -08:00
Kubernetes Prow Robot
cb08678d48 Merge pull request #97891 from thinpark/apimachinery.clean
[k8s.io/apimachinery/pkg/test]: cleanup commented code
2021-01-12 15:06:57 -08:00
Kubernetes Prow Robot
ef3337a443 Merge pull request #97786 from pacoxu/staticcheck/apiserver-storage
fix static check for vendor/k8s.io/apiserver/pkg/storage/etcd3/
2021-01-12 08:20:26 -08:00
Jordan Liggitt
1dfa5b95a5 Add API testdata population instructions 2021-01-12 10:28:33 -05:00
Kubernetes Prow Robot
564b0e55c7 Merge pull request #97954 from yue9944882/fixes-nil-panic-for-delegated-auth-options
Fixes nil panic for nil delegated auth options
2021-01-12 07:06:25 -08:00
yue9944882
9ade821baa fixes nil panic for nil delegated auth options 2021-01-12 17:12:33 +08:00
KeZhang
4801f4d255 Fix HSTS Missing From HTTPS Server(Nessus Scanner) 2021-01-12 16:42:53 +08:00
Kubernetes Prow Robot
9caf675ed1 Merge pull request #97909 from adamzhoul/fix-chan-bug
fix unit test "TestSPDYExecutorStream" flaking problem
2021-01-11 20:52:45 -08:00
Kubernetes Prow Robot
9720013d92 Merge pull request #96821 from wongma7/translateebsinline
Use volumeHandle as PV name when translating EBS inline volume
2021-01-11 20:52:25 -08:00
Kubernetes Prow Robot
31e8937271 Merge pull request #97095 from sabbox/fix-panic-azure-oidc-auth-plugins
fix: Azure/OIDC auth panics when no AuthProviderConfigPersister is nil
2021-01-11 19:56:25 -08:00
Matthew Wong
28f2355c72 Use volumeHandle as PV name when translating EBS inline volume 2021-01-11 16:23:18 -08:00
Kubernetes Prow Robot
2636a959c6 Merge pull request #97477 from heqg/run-test01
Optimized some non-standard variable names
2021-01-11 14:46:25 -08:00
Andrey Viktorov
2dd86fe8c2 add noop persister to plugin loader 2021-01-12 00:12:53 +02:00
Kubernetes Prow Robot
65bdc9efe6 Merge pull request #97761 from liggitt/1.20-testdata
Add 1.20 API testdata
2021-01-11 12:46:24 -08:00
Kubernetes Prow Robot
d2575b7ddb Merge pull request #97255 from chotiwat/patch-1
Fix stale object causing a panic on DELETE event
2021-01-11 11:18:37 -08:00
Kubernetes Prow Robot
e9dba7a627 Merge pull request #97857 from liggitt/exec-auth-reuse-dialer
Track opened connections with a single tracker per authenticator
2021-01-11 08:39:54 -08:00
Kubernetes Prow Robot
97d7e50a4b Merge pull request #97843 from mborsz/watcher-log
Improve logging in cacheWatcher
2021-01-11 08:39:46 -08:00
Kubernetes Prow Robot
c4ea46c05f Merge pull request #97626 from pandaamanda/kubectl_quiet_shortname
cleanup: add -q as shorthand for --quiet
2021-01-11 08:39:37 -08:00
Kubernetes Prow Robot
7e8824f4b3 Merge pull request #97564 from pandaamanda/kubectl_wait_for
add more usage info for kubectl wait option --for
2021-01-11 08:39:28 -08:00
Kubernetes Prow Robot
e054aa268e Merge pull request #97480 from lingsamuel/etcd-lease-max-size
apiserver add lease object count metric
2021-01-11 08:39:20 -08:00
Ling Samuel
7e9fe39cd7 apiserver add metric etcd_lease_object_counts
Signed-off-by: Ling Samuel <lingsamuelgrace@gmail.com>
2021-01-11 21:22:07 +08:00
Maciej Borsz
b78f0b3106 Improve logging in cacheWatcher 2021-01-11 12:33:52 +01:00
adamzhoul
314a9c4a62 fix replyChan block 2021-01-11 08:36:27 +00:00
Kubernetes Prow Robot
bb376f1616 Merge pull request #96492 from ramnar/master
remove generator dependency in create service account
2021-01-10 14:57:05 -08:00
Zhou Peng
894ac9b899 [k8s.io/apimachinery/pkg/test]: cleanup commented code
The commented code has no help to make reader more comprehensiable, it was just
a legacy copy paste.

Signed-off-by: Zhou Peng <p@ctriple.cn>
2021-01-10 23:17:31 +08:00
Kubernetes Prow Robot
94b082550e Merge pull request #96887 from sttts/sttts-unexpected-error-string
apiserver: print unknown responsewriter error strings, not only %#+v
2021-01-09 19:25:05 -08:00
Kubernetes Prow Robot
67541a1bcc Merge pull request #96393 from thockin/rest-hooks
Add BeginCreate and BeginUpdate REST hooks
2021-01-08 20:57:05 -08:00
Kubernetes Prow Robot
d9a26fb69b Merge pull request #97860 from MikeSpreitzer/rejigger-quantize-4
move all variables in sampleAndWaterMarkHistograms::innerSet
2021-01-08 15:39:24 -08:00
Kubernetes Prow Robot
2b8cac754c Merge pull request #96754 from tkashem/fix-etcd-metric
Reduce number of  buckets for etcd_request_duration_seconds metric
2021-01-08 11:24:29 -08:00
Tim Hockin
37b34f5b53 Use typedefs for Begin* functions
David asked for this for readability, even if not all other hooks do it.
2021-01-08 11:08:12 -08:00
Tim Hockin
25da6a0660 Change AfterCreate/Update to take Options
Also adds typedefs for these function signatures for code clarity.
2021-01-08 11:08:12 -08:00
Tim Hockin
9402f48e05 Change AfterDelete to take DeleteOptions
All of the After* hooks are called, whether the operation is dry-run or
not.  Create and Upate both have BeginCreate() hooks which know about
dry-run but delete doesn't, and can't (because of graceful deletion and
finalizers, the Delete() method may return and the object is actually
deleted later).

This adds an argument to AfterDelete(), and the others will follow.

This commit also adds tests for AfterDelete being called in the right
places.
2021-01-08 11:08:08 -08:00
Tim Hockin
bb79475a86 Remove ObjectFunc 2021-01-08 11:00:39 -08:00
Tim Hockin
625713008d Make REST Decorator funcs not return error 2021-01-08 11:00:39 -08:00
Tim Hockin
64491be328 Make REST After* funcs not return error 2021-01-08 11:00:39 -08:00
Tim Hockin
67c9761623 Add BeginCreate and BeginUpdate REST hooks
These hooks return a "cleanup" func which is called when the top-level
operation completes, with an indicator of which result.

This is to enable much simpler handling of allocations in Service's REST
implementation, in particular.

Some discussion in https://github.com/kubernetes/kubernetes/pull/95967

This also adds tests for the almost totally untested Decorator,
AfterCreate, and AfterUpdate hooks.
2021-01-08 11:00:12 -08:00
Kubernetes Prow Robot
cfc96c7db7 Merge pull request #97820 from tkashem/webhook-error
prevent panic on webhook authenticator and authorizer timeout before response
2021-01-08 10:34:41 -08:00
Mike Spreitzer
611184aa59 move all variables in sampleAndWaterMarkHistograms::innerSet
to tiptoe around https://github.com/golang/go/issues/43570 for #97685
2021-01-08 13:32:38 -05:00
Jordan Liggitt
ecbff22ca1 Track opened connections with a single tracker per authenticator 2021-01-08 13:21:09 -05:00
Kubernetes Prow Robot
0fe6f72d9b Merge pull request #96011 from mikedanese/bazel
build: Update bazel to 3.4.1 and k/repo-infra to v0.2.0
2021-01-08 09:24:53 -08:00
Abu Kashem
ae2b353fbf handle webhook authenticator and authorizer error
webhook.WithExponentialBackoff returns an error, and the priority is:
- A: if the last invocation of the webhook function returned an error
  that error should be returned, otherwise
- B: the error associated with the context if it has been canceled or
  it has expired, or the ErrWaitTimeout returned by the wait package
  once all retries have been exhausted.

caller should check the error returned by webhook.WithExponentialBackoff
to handle both A and B. Currently, we only handle A.
2021-01-08 11:30:35 -05:00
Kubernetes Prow Robot
9a386cdd5d Merge pull request #97845 from mborsz/cacher-metrics2
Add 'apiserver_terminated_watchers_total'
2021-01-08 07:06:53 -08:00
Maciej Borsz
342ad48feb Add 'apiserver_terminated_watchers_total' 2021-01-08 10:55:44 +01:00
Kubernetes Prow Robot
d1db90ba57 Merge pull request #97693 from enj/enj/i/oidc_fast_init
oidc authenticator: attempt to immediately initialize verifier
2021-01-07 18:12:53 -08:00
Mike Danese
77261377de fixup fixture logic
There was a bug with init() but it was resolved in
https://github.com/bazelbuild/rules_go/pull/2696

Changed to match other fixture methods.

Change-Id: I882b8535e5c5c117fb10c41d34c8eed1ccdb74bb
2021-01-07 15:26:20 -08:00