Commit Graph

19211 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
210a97e48b Merge pull request #119800 from jpbetz/cost-fix
Fixes CEL estimated cost to propagate result sizes correctly
2023-08-16 15:28:03 -07:00
git-jxj
a5b3a4b738 cleanup: Update deprecated FromInt to FromInt32 (#119858)
* redo commit

* apply suggestions from liggitt

* update Parse function based on suggestions
2023-08-16 09:33:01 -07:00
Kubernetes Prow Robot
12bd9bfba9 Merge pull request #119509 from tzneal/fix-describe-node-with-sidecars
kubectl: fix describe node output when sidecars are present
2023-08-16 09:32:38 -07:00
Kubernetes Prow Robot
a38dca01aa Merge pull request #119907 from Hii-Arpit/Hii-Arpit-Fixing-Broken-Link
Fixing the "Service Account Token" link in the readme
2023-08-15 23:13:58 -07:00
Kubernetes Prow Robot
1ebb5e608b Merge pull request #119844 from enj/enj/i/upgrade_regex
wsstream: use a single approach to detect connection upgrade
2023-08-15 23:13:38 -07:00
Kubernetes Prow Robot
47f7570932 Merge pull request #119825 from Jefftree/add-gv
Move adding GroupVersion log until after an update is confirmed
2023-08-15 23:13:32 -07:00
Kubernetes Prow Robot
03e845f882 Merge pull request #119796 from sttts/sttts-caches-populated
client-go: log proper 'caches populated' message, with type and source and only once
2023-08-15 23:13:25 -07:00
Kubernetes Prow Robot
19f6d5be82 Merge pull request #119795 from sttts/sttts-httplog-impersonation
apiserver/httplog: pretty up impersonation output
2023-08-15 23:13:18 -07:00
Kubernetes Prow Robot
ef533decd7 Merge pull request #119715 from logicalhan/ExponentialBucketsRange
add support for ExponentialBucketsRange
2023-08-15 19:43:53 -07:00
Kubernetes Prow Robot
09cab7d521 Merge pull request #119618 from skitt/use-intstr-parse
Use intstr.Parse instead of reimplementing it
2023-08-15 19:43:18 -07:00
Kubernetes Prow Robot
112a4726a4 Merge pull request #119577 from jiahuif-forks/tests/validating-admission-policy/lazy-map-short-circuiting
CEL lazy map: add test for boolean short-circuiting
2023-08-15 19:43:04 -07:00
Kubernetes Prow Robot
f234aa52cd Merge pull request #119554 from davidmccormick/prevent-race-client-go-workqueue-shutdown
client-go workqueue: fix shutdown race / test flake
2023-08-15 19:42:58 -07:00
Kubernetes Prow Robot
338d68bbc2 Merge pull request #119385 from andrewsykim/current_inqueue_seats_metric
Add apiserver flowcontrol metric `current_inqueue_seats`
2023-08-15 15:18:17 -07:00
Kubernetes Prow Robot
32cd886840 Merge pull request #119344 from mskrocki/fines
add endpointslice repo to staging README
2023-08-15 15:18:10 -07:00
Kubernetes Prow Robot
5c365939bd Merge pull request #118989 from crenshaw-dev/better-error-message
chore: improve error message for unstructured helper method
2023-08-15 15:17:34 -07:00
Kubernetes Prow Robot
d486180eb0 Merge pull request #118748 from andreaskaris/kubectl-wait-for
Kubectl: Improve conditionFuncFor expression parsing for wait --for jsonpath
2023-08-15 15:17:26 -07:00
Kubernetes Prow Robot
1acd489dca Merge pull request #118455 from linxiulei/managedFields
Trim managedFields in controller-manager
2023-08-15 15:17:12 -07:00
Kubernetes Prow Robot
10beda334e Merge pull request #118399 from skitt/ioutil-sig-api-machinery
api-machinery: stop using deprecated io/ioutil
2023-08-15 15:17:05 -07:00
Kubernetes Prow Robot
10a252aa54 Merge pull request #118189 from Miciah/118188-TopologyAwareHints-take-lock-in-HasPopulatedHints
TopologyAwareHints: Take lock in HasPopulatedHints
2023-08-15 15:16:57 -07:00
Kubernetes Prow Robot
7407f36b4b Merge pull request #117992 from liggitt/gc-discovery-flutter
Fix duplicate GC event handlers getting added if discovery flutters
2023-08-15 15:16:50 -07:00
Kubernetes Prow Robot
322acc0f88 Merge pull request #117977 from liggitt/available-resources
Drop AvailableResources from controller context
2023-08-15 15:16:39 -07:00
Arpit Agrawal
279a663f94 Update README.md
The Service Account Token link in the readme is broken and refers to a page that no longer exists.
In this PR I updated the correct link in the readme
2023-08-11 17:46:28 +05:30
Damien Grisonnet
c6efaf16c1 apiserver/etcd3: fix segv during metric collection
Fix a segfault when collecting the storage size metrics when the getters
used to collect the data on etcd haven't been initialized properly. This
happens when the EtcdOptions are not applied which is the case for
aggregated apiservers that don't care about storage.

Signed-off-by: Damien Grisonnet <dgrisonn@redhat.com>
2023-08-10 17:31:18 +02:00
Kubernetes Prow Robot
e6218f3d3b Merge pull request #119876 from marosset/revert-118895
Revert "Merge pull request #118895 from RyanAoh/kep-1860"
2023-08-09 19:27:31 -07:00
Mark Rossetti
0d90d1ffa5 Revert "Merge pull request #118895 from RyanAoh/kep-1860"
This reverts commit 890a6c8f70, reversing
changes made to 4f60a8d493.
2023-08-09 15:51:20 -07:00
Kubernetes Prow Robot
3d941afece Merge pull request #119835 from liggitt/mitigate-aggregated-discovery-npe
Avoid returning nil responseKind in v1beta1 aggregated discovery
2023-08-09 15:37:30 -07:00
Jordan Liggitt
1876ddf714 Avoid returning nil responseKind in v1beta1 aggregated discovery 2023-08-09 14:45:33 -04:00
Jeremy Rickard
9bc857d6d9 [releng] Update publishing-bot rules for release branches to Go 1.20.7
Signed-off-by: Jeremy Rickard <jeremyrrickard@gmail.com>
2023-08-08 18:03:49 -06:00
Monis Khan
62b063b74b wsstream: use a single approach to detect connection upgrade
Signed-off-by: Monis Khan <mok@microsoft.com>
2023-08-08 17:43:39 -04:00
Jefftree
49e00e8bde Move adding GroupVersion log until after an update is confirmed 2023-08-08 14:28:54 +00:00
Joe Betz
e4d16f34c1 Add test coverage of result size of string operations 2023-08-07 18:12:17 -04:00
Joe Betz
69a5a52896 Bump cel-go to v0.16.1 2023-08-07 15:51:36 -04:00
Jeremy Rickard
72c8cf9fce [go] Bump images, versions and deps to use Go 1.20.7
Signed-off-by: Jeremy Rickard <jeremyrrickard@gmail.com>
2023-08-07 13:25:59 -06:00
Kubernetes Prow Robot
1620473a9a Merge pull request #119725 from MadhavJivrajani/bump-net-dep
[CVE-2023-3978] .*: bump golang.org/x/net to v0.13.0
2023-08-07 09:14:32 -07:00
Dr. Stefan Schimanski
a1809ffae3 client-go: log proper 'caches populated' message, with type and source and only once
Signed-off-by: Dr. Stefan Schimanski <stefan.schimanski@gmail.com>
2023-08-07 12:56:37 +02:00
Dr. Stefan Schimanski
37730c07dd apiserver/httplog: pretty up impersonation output
```
I0807 09:09:16.419239       1 httplog.go:132] "HTTP" verb="GET" URI="/apis/batch/v1?timeout=32s" latency="214.666µs" userAgent="kubernetes-provider/v0.0.0 (linux/arm64) kubernetes/$Format" audit-ID="948ef6b2-474d-45a7-ad5f-894ce93d05f7" srcIP="192.168.139.202:35542" apf_pl="exempt" apf_fs="exempt" apf_execution_time="129.5µs" resp=200 addedInfo=<

      &{kubernetes-admin  [system:masters system:authenticated] map[]} is acting as &{foo  [system:authenticated] map[]}
       >
```

to

```
I0807 09:09:16.419239       1 httplog.go:132] "HTTP" verb="GET" URI="/apis/batch/v1?timeout=32s" latency="214.666µs" userAgent="kubernetes-provider/v0.0.0 (linux/arm64) kubernetes/$Format" audit-ID="948ef6b2-474d-45a7-ad5f-894ce93d05f7" srcIP="192.168.139.202:35542" apf_pl="exempt" apf_fs="exempt" apf_execution_time="129.5µs" resp=200 addedInfo="kubernetes-admin[system:masters system:authenticated] is impersonating foo[system:authenticated]"
```

Signed-off-by: Dr. Stefan Schimanski <stefan.schimanski@gmail.com>
2023-08-07 12:10:35 +02:00
Kubernetes Prow Robot
2c6c4566ef Merge pull request #119128 from alexanderConstantinescu/azure-fix
[Azure] Issue 4230: remove readiness check for cache exclusion
2023-08-02 13:14:20 -07:00
Madhav Jivrajani
1b90dff527 .*: bump golang.org/x/net to v0.13.0
Signed-off-by: Madhav Jivrajani <madhav.jiv@gmail.com>
2023-08-02 11:11:22 +05:30
Jordan Liggitt
b6ae858e01 Drop AvailableResources from controller context 2023-08-01 14:52:45 -04:00
Han Kang
d5d90b7b22 add support for ExponentialBucketsRange 2023-08-01 11:38:20 -07:00
Dr. Stefan Schimanski
cfcbce31a3 apiextensions: fix validation error for status.storedVersions 2023-07-28 12:31:19 +02:00
Stephen Kitt
7f53f7649e Use intstr.Parse instead of reimplementing it
Signed-off-by: Stephen Kitt <skitt@redhat.com>
2023-07-27 13:12:32 +02:00
Akhil Mohan
dd8a64d7e1 publishing-bot rules for release-1.28 branch
Signed-off-by: Akhil Mohan <akhilerm@gmail.com>
2023-07-26 21:52:00 +05:30
Jiahui Feng
66aa2af097 CEL lazy map: add test for boolean short-circuiting 2023-07-25 14:46:45 -07:00
Dave McCormick
2b12df56b0 Fix a race where a call to Shutdown was happening after ShutDownWithDrain() had performed the check q.isProcessing() && q.shouldDrain() and before waitForProcessing() has reached its Wait(). This is because waitForProcessing() is only checking the length part of the condition instead of both the length and whether we still need to drain.
It turned out that there were lots of unnecessary accessor functions being called locking and unlocking the cond which are not needed because Wait() automatically unlocks and locks the cond for us and best practice says we should run it in a for checking for the condition (so this is what I have done).
2023-07-25 09:59:51 +01:00
Cici Huang
7e0a9a7f4e Use statusReason for reason under x-kubernetes-validations (#119544)
* Change reason field format

* Auto update

* Address comments

* Auto update

* Update the test
2023-07-24 17:56:03 -07:00
Kubernetes Prow Robot
b53830590f Merge pull request #119409 from alexzielenski/apiserver/policy/vap-tests
Add test cases for ValidatingAdmissionPolicy
2023-07-24 15:12:13 -07:00
Andrew Sy Kim
fb9646fd60 apiserver: add flow control metric current_inqueue_seats
Signed-off-by: Andrew Sy Kim <andrewsy@google.com>
2023-07-24 19:40:05 +00:00
Joe Betz
22bf29ad22 Treat empty string as nil in fuzzer for CEL Reason field 2023-07-24 12:44:25 -04:00
Alexander Zielenski
e1b0bc3d0a bugfix: use matched resource for AdmissionRequest.resource, not the resource it was converted from
use existing admission request for audit annotation eval

populate matchResource in empty rules case
2023-07-24 07:46:11 -07:00