Commit Graph

15137 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
56c5413dc6 Merge pull request #108039 from MadhavJivrajani/clusterscope-test-context
resttest: Modify TestContext to have namespace in context
2022-02-10 08:21:58 -08:00
Kubernetes Prow Robot
edd1f15c7c Merge pull request #106279 from oomichi/add-note-vsphere
Add note for the deprecated vSphere 6.5
2022-02-10 08:21:47 -08:00
Madhav Jivrajani
c3081b4875 cacher: Minor cleanup and refactor of code and tests
* Remove linter warnings.
* Cancel contexts to avoid leaks.
* Rename a few XXXThreadUnsafe to XXXLocked to
  maintain consistency.
  * A few are still called XXXThreadUnsafe mainly
    because those are safe to be called from the
    perspective that only one gorotuine will access
    them - not really called under a lock.

Signed-off-by: Madhav Jivrajani <madhav.jiv@gmail.com>
2022-02-10 16:57:39 +05:30
Madhav Jivrajani
412626f402 resttest: Modify TestContext to have namespace in context
Previously, if a request is clusterscoped, the context that
was returned has no namespace, ideally the context should
contain a metav1.NamespaceNone as the namespace even for
cluster scoped requests.

Signed-off-by: Madhav Jivrajani <madhav.jiv@gmail.com>
2022-02-10 12:54:15 +05:30
Kubernetes Prow Robot
40c2d04946 Merge pull request #107112 from linxiulei/fix_pidmax
Consider threads-max when deciding MaxPID.
2022-02-09 20:49:45 -08:00
Kubernetes Prow Robot
71977b6f07 Merge pull request #107691 from SubhasmitaSw/issue_31393
Removed references to Docker in Kubernetes API #31393
2022-02-09 18:33:46 -08:00
Kubernetes Prow Robot
e74c42aaf2 Merge pull request #107880 from liggitt/kubectl-auth-token
Add command to request a bound service account token
2022-02-09 14:10:01 -08:00
Kubernetes Prow Robot
6ab748eeec Merge pull request #107698 from tallclair/psa-overrides
[PodSecurity] Deduplicate errors between baseline & restricted checks
2022-02-09 14:09:49 -08:00
Kubernetes Prow Robot
4c300ff5bf Merge pull request #107970 from liggitt/validations-round-trip
Fix serialization of x-kubernetes-validations OpenAPI extension
2022-02-09 12:08:03 -08:00
Jordan Liggitt
fca9b1d9fc Add command to request a bound service account token 2022-02-09 14:05:53 -05:00
SubhasmitaSw
2d52a9f82a removed references to Docker in Kubernetes API
Signed-off-by: Davanum Srinivas <davanum@gmail.com>

Run the hack/update* commands to regenerate files

Signed-off-by: Davanum Srinivas <davanum@gmail.com>

Update staging/src/k8s.io/api/core/v1/types.go

Co-authored-by: Jordan Liggitt <jordan@liggitt.net>

Update staging/src/k8s.io/api/core/v1/types.go

Co-authored-by: Jordan Liggitt <jordan@liggitt.net>

more files that needed updates

Signed-off-by: Davanum Srinivas <davanum@gmail.com>

removed references to Docker in Kubernetes API
2022-02-10 00:09:29 +05:30
Jordan Liggitt
5efe1e648b Use serializable struct for x-kubernetes-validations in openapi 2022-02-09 12:58:01 -05:00
Tim Allclair
928448dd36 Add overrides for hostpath, seccomp, and capabilities checks 2022-02-09 09:23:59 -08:00
Tim Allclair
305e0b1210 Allow restricted checks to override (supercede) baseline checks 2022-02-09 09:23:59 -08:00
Kubernetes Prow Robot
0d46aee44e Merge pull request #107296 from cezarygerard/smart-ig-ilb
GCE L4 load balancer: enable migration of Instance Group management out of K/K.
2022-02-08 17:10:17 -08:00
Kubernetes Prow Robot
df53ae8bbd Merge pull request #107950 from wojtek-t/delete_collection_timeout
Verify that DeleteCollection respects context cancellation
2022-02-08 14:28:46 -08:00
Kubernetes Prow Robot
36431ae396 Merge pull request #107770 from brianpursley/timeout-test-2
Fix wrong status code in unit test error messages and replace deprecated function call
2022-02-08 14:28:35 -08:00
Kubernetes Prow Robot
24e5d1fdb7 Merge pull request #107432 from denkensk/graduate-nonpreemptingpriority-to-ga
Graduate NonPreemptingPriority to GA
2022-02-08 11:05:03 -08:00
Kubernetes Prow Robot
20a2a4c1af Merge pull request #107834 from SataQiu/fix-applyconfiguration
code-generator: fix the bug that ApplyConfiguration constructor missing WithKind/WithAPIVersion methods
2022-02-08 09:59:14 -08:00
Kubernetes Prow Robot
834349ed19 Merge pull request #107812 from diyi0926/add-field-path-back-to-event-logs
add fieldPath back to event logs
2022-02-08 07:12:54 -08:00
Kubernetes Prow Robot
5340ae0bae Merge pull request #105483 from MadhavJivrajani/watch-cache-contention
cacher: Use watchCacheInterval to reduce lock contention
2022-02-08 03:56:55 -08:00
Alex Wang
541907334e graduate nonpreemptingpriority to ga 2022-02-08 18:11:23 +08:00
Kubernetes Prow Robot
131d145b7d Merge pull request #107618 from pohly/log-flush-frequency-config-type
FlushFrequency config type
2022-02-08 01:00:54 -08:00
Kubernetes Prow Robot
5cee90c305 Merge pull request #107992 from tkashem/flake-timeout
fix flake in TestTimeoutHeaders
2022-02-07 19:20:53 -08:00
Kubernetes Prow Robot
c2ba0a4908 Merge pull request #101028 from lobziik/vsphere-zones-with-secret-creds
Fixes zone/region labels setup and kubelet stucking on startup if credentials stored in secret for legacy vSphere cloudprovider.
2022-02-07 15:18:53 -08:00
Abu Kashem
2ae70e85d2 fix flake in TestTimeoutHeaders 2022-02-07 14:38:34 -05:00
Madhav Jivrajani
7f2aa7ad3a cacher: Use watchCacheInterval to reduce lock contention
- Modify GetAllEventsSinceThreadUnsafe to return a watchCacheInterval
- Modify Watch() to compute a watchCacheInterval rather than a slice
  of all "initEvents" and pass this interval to process()
- Use interval::Next() to obtain events to process rather than obtain
  them all at once
- Modify tests accordingly to use interval
- On invalidation, stop processing and stop the watch.
- Make indexValidator injectable for testing
- Add unit test for verifying the behaviour of stopping the watch.

Signed-off-by: Madhav Jivrajani <madhav.jiv@gmail.com>
2022-02-07 19:59:22 +05:30
Kubernetes Prow Robot
e1c16d24a1 Merge pull request #107975 from tkashem/refactor-webhook-duration
refactor: rename webhook duration tracker
2022-02-07 00:23:43 -08:00
Jordan Liggitt
064763ebdd Make JSON schema round tripping test more strict 2022-02-05 16:57:34 -05:00
Kubernetes Prow Robot
9b09612d1b Merge pull request #107656 from dims/add-labels-when-there-are-sig-aliases-used-in-approvers-reviewers
Add labels when there sig aliases used in approvers/reviewers
2022-02-05 02:20:50 -08:00
Kubernetes Prow Robot
8dee712448 Merge pull request #107956 from benluddy/xvalidations-deepcopy
Deeply copy JSONSchemaProps.XValidations.
2022-02-04 20:18:56 -08:00
Kubernetes Prow Robot
469c4c4a30 Merge pull request #106715 from aojea/dual_hostnet_pods
set secondary address on host-network pods
2022-02-04 12:17:30 -08:00
Ben Luddy
5af2984a37 Deeply copy JSONSchemaProps.XValidations. 2022-02-04 14:26:04 -05:00
Antonio Ojea
bc8e7ac1a0 ignore CRI PodSandboxNetworkStatus for host network pods 2022-02-04 18:41:57 +01:00
Wojciech Tyczyński
90a77bc482 DeleteCollection respects context cancellation 2022-02-04 17:01:47 +01:00
Maciej Szulik
47d8450c90 Make ShowManagedFields public so printers users can tweak the value 2022-02-04 14:00:03 +01:00
Kubernetes Prow Robot
d3c1e26c7f Merge pull request #105297 from jackfrancis/RunCordonOrUncordon-nil
RunCordonOrUncordon error if drainer has nil Ctx or Client
2022-02-03 16:32:00 -08:00
Kubernetes Prow Robot
7efc928dfa Merge pull request #107764 from heybronson/wrap-error
wrap error from RunCordonOrUncordon
2022-02-03 12:22:58 -08:00
Kubernetes Prow Robot
a5e70054bd Merge pull request #107162 from ardaguclu/invalidate-cache-after-delete
Add manually invalidate cache documentation into delete
2022-02-02 23:51:45 -08:00
jlsong01
d66b3edd65 allocate a unique scheme for each test to fix concurrent usage issue 2022-02-02 15:22:59 +08:00
Abu Kashem
4a9b902815 refactor: rename webhook duration tracker 2022-02-01 16:01:34 -05:00
sabbey37
c94b4bb2ac Update azure auth plugin deprecation to warning 2022-02-01 15:35:36 -05:00
Cezary Zawadka
3f5a8754d0 Applied review comments 2022-02-01 14:16:18 +01:00
Kubernetes Prow Robot
3b7e8da669 Merge pull request #100883 from xychu/add-lessthan-ut
Add tests for LessThanOrEqual
2022-01-31 18:07:52 -08:00
Kubernetes Prow Robot
2e68fd2857 Merge pull request #107841 from aojea/fix_race_socks5
deflake TestRoundTripSocks5AndNewConnection unit test
2022-01-29 02:48:01 -08:00
Kubernetes Prow Robot
807cee8ad2 Merge pull request #107575 from andyzhangx/azurefile-volumeid-uuid
fix Azurefile volumeid conflict issue in csi migration
2022-01-28 19:04:02 -08:00
Antonio Ojea
5a43a45232 deflake TestRoundTripSocks5AndNewConnection unit test
The test was asserting the error from the proxy server, to avoid false
positives it was using a channel to communicate that the test has been
 ended and the error was legit.

However, the channel was executed using a defer statement, and the connection
on the server could be closed accidentally by the connection request,
that was done later and used another defer statement to close it.
Since the connection defer was done later, it was executed before the
channel close.
2022-01-28 18:27:31 +01:00
SataQiu
ce50eed941 code-generator: fix the bug that ApplyConfiguration constructor missing WithKind/WithAPIVersion methods 2022-01-28 17:05:43 +08:00
Di Yi
9996c154cb resolve casing issue 2022-01-28 15:50:43 +08:00
andyzhangx
c2aba4901a add namespace in azurefile volumeid 2022-01-27 09:29:13 +00:00