Commit Graph

15938 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
cf314d689e Merge pull request #110162 from MikeSpreitzer/untwist-apf-metrics
Untwist apf metrics
2022-05-25 13:35:47 -07:00
Kubernetes Prow Robot
5432883490 Merge pull request #110130 from stevekuznetsov/skuznets/clean-up-crd-storage
customresouce: clean up the storage constructor
2022-05-25 13:35:35 -07:00
Kubernetes Prow Robot
e0dbea2443 Merge pull request #110026 from tkashem/graceful-test
apiserver: fix preshutdown hook behavior with graceful termination
2022-05-25 09:38:57 -07:00
Abu Kashem
9644edc321 fix preshutdown hook behavor with graceful termination 2022-05-24 13:21:07 -04:00
Kubernetes Prow Robot
114cdea709 Merge pull request #110079 from ash2k/dial-with-context
Always dial using a context
2022-05-24 08:52:17 -07:00
Mike Spreitzer
cd33c7cf22 Remove unhelpful pairing of members of read_vs_write_request_count_samples
Members are not used in (waiting,executing) pairs, so stopped
using the wrapper that adds such pairing.
2022-05-24 11:18:56 -04:00
Kubernetes Prow Robot
c3d550d4e7 Merge pull request #110101 from MikeSpreitzer/rename-observers
Give apf metrics abstractions more familiar names
2022-05-24 07:26:06 -07:00
Mike Spreitzer
a4c18fa7fc Rename observer.go to interface.go 2022-05-24 07:28:54 -04:00
Mikhail Mazurskiy
2d62c57533 Always dial using a context 2022-05-24 11:51:08 +10:00
Kubernetes Prow Robot
fdb2d54475 Merge pull request #108210 from jlsong01/update_kubectl_warning
coordinate the kubectl warning style
2022-05-23 15:57:09 -07:00
Mike Spreitzer
7d64a93a14 Give apf metrics abstractions more familiar names
The logic is similar to Prometheus gauges and vectors,
adopt that terminology.
2022-05-23 16:09:43 -04:00
Kubernetes Prow Robot
31a10245d6 Merge pull request #110058 from glebiller/managed-fields-time
Update managedFields time when field value is modified
2022-05-23 10:32:02 -07:00
Kubernetes Prow Robot
1131fb95fc Merge pull request #110125 from wojtek-t/fix_resource_quota_shutdown
Fix resource quota shutdown
2022-05-23 07:18:03 -07:00
jlsong01
272e245f06 add a warning printer in cli-runtime to coordinate warning style
modified:   staging/src/k8s.io/kubectl/pkg/cmd/auth/auth.go
2022-05-23 19:10:15 +08:00
Wojciech Tyczyński
f8211d7e44 Fix ResourceQuota admission shutdown 2022-05-23 12:34:50 +02:00
Kubernetes Prow Robot
9997897f44 Merge pull request #110100 from tkashem/client-go-backoff-fix
client-go: fix backoff delay
2022-05-22 23:26:01 -07:00
Abu Kashem
60e74a9ff7 client-go: fix backoff delay 2022-05-21 09:46:00 -04:00
Kubernetes Prow Robot
5debaee45e Merge pull request #110132 from tkashem/refactor-test
apiserver: improve graceful termination tests
2022-05-19 23:41:13 -07:00
Abu Kashem
f28710bc46 apiserver: refactor graceful termination test 2022-05-19 15:55:27 -04:00
Guillaume Le Biller
f681821fcf Update managedFields time when value is modified 2022-05-19 21:08:31 +02:00
Kubernetes Prow Robot
6ca849f1f2 Merge pull request #109835 from cici37/celUpdate
Use CEL EagerlyValidateDeclarations to improve compilation performance
2022-05-19 11:35:53 -07:00
Kubernetes Prow Robot
32773d61c4 Merge pull request #110129 from wojtek-t/fix_notify_signal
Fix stop signal to drained signal in genericapiserver config
2022-05-19 09:21:32 -07:00
Steve Kuznetsov
37bb0679aa customresouce: clean up the storage constructor
The distinction between Storage and REST was lost when the constructor
for the latter began to do almost but not all of the former. No other
callers exist for newREST(), so merging the constructors allows us to be
more clear with what we're constructing and keeps us from
shallow-copying the genericregistry.Store every time even when no status
subresource is requested.

Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
2022-05-19 08:26:09 -07:00
Kubernetes Prow Robot
b215a8949a Merge pull request #108746 from deads2k/proof-2
Handle panic during validating admission webhook admission
2022-05-19 07:11:21 -07:00
Wojciech Tyczyński
b56491e6cf Fix stop signal to drained signal in genericapiserver config 2022-05-19 08:09:56 +02:00
David Eads
d412bf92b3 Handle panic during validating admission webhook admission
Validating admission webhook evaluation can fail, if uncaught this
crashes a kube-apiserver.  Add handling to catch panic while preserving
the behavior of "must not fail".
2022-05-18 14:49:55 -04:00
Kubernetes Prow Robot
b1aa1bd308 Merge pull request #110096 from tkashem/graceful-new-signal
apiserver: add lifecycle signal for preshutdown hook
2022-05-18 00:53:06 -07:00
Kubernetes Prow Robot
eebfd7b574 Merge pull request #110102 from MikeSpreitzer/fix-test-numerators
Fix more initial numerators
2022-05-17 23:02:53 -07:00
Mike Spreitzer
ba690c2257 Fix more initial numerators 2022-05-18 00:22:30 -04:00
Tim Allclair
eb88daeeae Warn when adding PSA labels to exempt namespaces (#109680) 2022-05-17 21:18:53 -07:00
Kubernetes Prow Robot
b07ee36547 Merge pull request #109752 from MadhavJivrajani/remove-apimachinery-clocks
apimachinery/clock: Delete the apimachinery/clock package
2022-05-17 16:46:42 -07:00
Kubernetes Prow Robot
f727b5af34 Merge pull request #110094 from tkashem/refactor-graceful
apiserver: refactor - move AuditBackend.Run out of NonBlockingRun
2022-05-17 15:04:42 -07:00
Abu Kashem
b1f7b60515 apiserver: add lifecycle signal for preshutdown hook 2022-05-17 17:24:11 -04:00
Kubernetes Prow Robot
4bd396115d Merge pull request #110061 from wojtek-t/shutdown_apiextensions
Cleanup CRD storage on shutdown
2022-05-17 12:17:44 -07:00
Kubernetes Prow Robot
17556d4d63 Merge pull request #110088 from ardaguclu/standartize-validate-func
Set validate functions requiring no parameters for all commands
2022-05-17 11:08:40 -07:00
Kubernetes Prow Robot
f0c47dc916 Merge pull request #110076 from karlkfi/patch-1
fix: reflector to return wrapped list errors
2022-05-17 11:08:28 -07:00
Abu Kashem
6b8398318c apiserver: refactor - move AuditBackend.Run out of NonBlockingRun 2022-05-17 12:01:28 -04:00
Wojciech Tyczyński
01cf641ffb Cleanup CRD storage on shutdown 2022-05-17 15:25:39 +02:00
Kubernetes Prow Robot
c79b909de7 Merge pull request #110081 from wojtek-t/document_shutdown_sequence
Diagram for graceful shutdown
2022-05-17 06:20:39 -07:00
Kubernetes Prow Robot
ad2c625162 Merge pull request #110040 from astoycos/fix-panic
Fix additional panic
2022-05-17 06:20:27 -07:00
Kubernetes Prow Robot
ed522c7460 Merge pull request #110024 from stevekuznetsov/skuznets/split-list-test
storage: split paginated and non-paginated list tests, make them generic
2022-05-17 04:16:26 -07:00
Arda Güçlü
8fb423bfab Set validate functions requiring no parameters for all commands
Validate function is used to validate command options and should not get
any additional parameter. To preserve compatibility across all
kubectl commands, this PR removes all parameters in validate functions.
2022-05-17 11:38:20 +03:00
Wojciech Tyczyński
1145582de3 Diagram for graceful shutdown 2022-05-17 07:57:07 +02:00
Karl Isenberg
9ace604b63 fix: reflector to return wrapped list errors
This fix allows Reflector/Informer callers to detect API errors using the standard Go errors.As unwrapping methods used by the apimachinery helper methods. Combined with a custom WatchErrorHandler, this can be used to stop an informer that encounters specific errors, like resource not found or forbidden.
2022-05-16 16:33:30 -07:00
Kubernetes Prow Robot
c84d0864dd Merge pull request #110052 from brianpursley/completion-tests
Add unit tests for kubectl completion command
2022-05-16 12:32:17 -07:00
Kubernetes Prow Robot
9f460160c1 Merge pull request #110051 from brianpursley/apiresources-tests
Add unit tests for api-resources and api-versions commands
2022-05-16 10:34:19 -07:00
Andrew Stoycos
b7a37f5b3d Fix additional panic
Ensure we take the incomingBlock Lock
in blockQueue to ensure there
is not any possiblity of sending on a
closed incoming channel.

Signed-off-by: Andrew Stoycos <astoycos@redhat.com>
2022-05-16 11:26:36 -04:00
Andrew Stoycos
2d614a182c Write Unit test to imitate Panic
There was a race creating a panic with shutting down
an eventbroadcaster and it's associated watchers. This
test exposes it.

Signed-off-by: Andrew Stoycos <astoycos@redhat.com>
2022-05-16 11:26:25 -04:00
Kubernetes Prow Robot
81261d4693 Merge pull request #110029 from ash2k/ash2k/no-double-tls-validation
tls.Dial() validates hostname, no need to do that manually
2022-05-16 07:34:18 -07:00
Mikhail Mazurskiy
29dc50c149 tls.Dial() validates hostname, no need to do that manually
Handshake() is still needed for tls.Client() code path. See https://github.com/kubernetes/kubernetes/pull/109750
2022-05-16 23:26:15 +10:00