Commit Graph

103836 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
3e985b7af6
Merge pull request #104916 from pohly/storage-e2e-owners
e2e storage: update OWNERS
2021-09-20 12:46:37 -07:00
Kubernetes Prow Robot
06796b7c7c
Merge pull request #104863 from pohly/restore-volume-life-cycle-check
e2e: restore volume lifecycle check for most tests
2021-09-20 12:46:24 -07:00
Kubernetes Prow Robot
e8653fe24a
Merge pull request #104163 from ialidzhikov/cleanup/pids-limit
Remove SupportPodPidsLimit and SupportNodePidsLimit feature gates
2021-09-20 11:35:09 -07:00
Kubernetes Prow Robot
b92b799881
Merge pull request #102309 from pacoxu/track-unwanted-dependencies-1
add update-unwanted-dependencies.sh to track unwanted dependencies
2021-09-20 10:18:10 -07:00
Wei Huang
3b64c1b01d
sched: de-duplicate plugin registration logic by using FactoryAdapter 2021-09-20 10:12:34 -07:00
Kubernetes Prow Robot
f55101913f
Merge pull request #105098 from Karthik-K-N/fix-error-format
Fix incorrect format specifier in test files
2021-09-20 08:56:09 -07:00
Kubernetes Prow Robot
232bc67b22
Merge pull request #104655 from luyou86/client-go-bucket-rate-limiter-add-maxDelay
client-go bucket rate limiter add maxDelay
2021-09-20 07:46:11 -07:00
pacoxu
b99e1e4aa9 use reference as we cannot distinguishing direct/indirect with go mod graph 2021-09-20 22:14:34 +08:00
jyz0309
5d32be4126 fix type check
Signed-off-by: jyz0309 <45495947@qq.com>
2021-09-20 19:42:15 +08:00
jyz0309
6344d6b26d rebuild msg and rename namespace
Signed-off-by: jyz0309 <45495947@qq.com>
2021-09-20 19:04:21 +08:00
Kubernetes Prow Robot
6e92ee6788
Merge pull request #105106 from MikeSpreitzer/apf-migrate-clock
Migrate apiserver/pkg/util/flowcontrol to use k8s.io/utils/clock
2021-09-20 03:52:09 -07:00
Antonio Ojea
b55e6f2cd0 avoid hostNetwork pods conflict binding UDP ports
The agnhost pods using netexec will bind by default to the UDP
port 8081, use a different port for hostNetwork pods to avoid
scheduling conflicts and fail the tests.
2021-09-20 09:54:23 +02:00
Antonio Ojea
2bf38ed86b agnhost: allow to disable udp listener on netexec
There are some tests that doesn't need the UDP listener, so they
can disable it.
This is specially needed for tests that use hostNetwork pods, if 2
pods try to bind to the same port, the test will fail because one
of the pod can't be scheduled because of the port conflict.

To keep backwards compatibility, we can add an option to disable
the UDP listener by setting the port number to -1, that is consistent
with the SCTP implementation.
2021-09-20 09:44:20 +02:00
Shivanshu Raj Shrivastava
bbd809cbd0
Fixing incorrectly migrated structured logs (#105122)
* added keys for structured logging

* used KObj
2021-09-19 12:28:08 -07:00
Kubernetes Prow Robot
a3d62e6925
Merge pull request #105134 from aojea/hack-local-resolv
local-cluster-up: allow to specify the kubelet resolv.conf
2021-09-19 07:22:09 -07:00
Antonio Ojea
1846e42f7b alllocal-cluster-up: ow to specify the kubelet resolv.conf 2021-09-19 12:06:52 +02:00
Kubernetes Prow Robot
25c7b6a2c7
Merge pull request #105109 from Huang-Wei/cleanup-dupe-import
cleanup duplicated import of "k8s.io/apimachinery/pkg/runtime"
2021-09-18 17:20:07 -07:00
Kubernetes Prow Robot
a73f45dd96
Merge pull request #105031 from howardjohn/q/memory-leak
workqueue: fix leak in queue preventing objects from being GCed
2021-09-17 23:42:06 -07:00
Kubernetes Prow Robot
c5fbcd735d
Merge pull request #104939 from z1cheng/fix-conntrack-typo
Fix error message typo in conntrack
2021-09-17 19:22:06 -07:00
wujiangfa-xlauncher
e838017f11
fix top node output format incorrect
#105112
2021-09-18 09:41:51 +08:00
Chao Xu
224bcf63f2 Aggregator uses the regular transport even if the request requires upgrades 2021-09-17 16:49:41 -07:00
Kubernetes Prow Robot
0d20f47c7a
Merge pull request #105090 from saad-ali/removeSubpathFeaturegate
Remove VolumeSubpath feature gate
2021-09-17 15:52:07 -07:00
Wei Huang
a55af2d35a
cleanup duplicated import of "k8s.io/apimachinery/pkg/runtime" 2021-09-17 14:13:15 -07:00
Kubernetes Prow Robot
35ae8c9fe4
Merge pull request #105080 from smira/client-error-wrapping
fix: wrap errors correct when validating kubeconfig
2021-09-17 12:55:03 -07:00
cici37
117ef89d2b Add feature gate CustomResourceValidationExpressions 2021-09-17 12:43:27 -07:00
Mike Spreitzer
9f45c0f8c0 Migrate apiserver/pkg/util/flowcontrol to use k8s.io/utils/clock
.. instead of apimachinery/pkt/util/clock
2021-09-17 15:36:14 -04:00
Kubernetes Prow Robot
e196508884
Merge pull request #105056 from Huang-Wei/fail-fast-int-test
Provide a timeout function to fail quick on blocking operations
2021-09-17 11:49:05 -07:00
Wei Huang
d7bf9d724f
Provide a timeout function to fail quick on blocking operations
It works like the Linux `timeout` utility.
2021-09-17 10:23:06 -07:00
Madhav Jivrajani
ac5c55f0bd Refactor client-go/util/flowcontrol/throttle.go RateLimiter
- Introduce PassiveRateLimiter which implements all methods of previous RateLimiter except Accept() and Wait()
- Change RateLimiter interface to extend PassiveRateLimiter by additionally implementing Accept() and Wait()
- Make client-go/tools/record use PassiveRateLimiter

Refactor EventSourceObjectSpamFilter, EventAggregator, EventCorrelator

- EventSourceObjectSpamFilter, EventAggregator, EventCorrelator use clock.PassiveClock now.
	- This won't be a breaking change because even if a clock.Clock is passed, it still implements the clock.PassiveClock interface.
- Extend clock.PassiveClock through Clock.
- Replace pacakge local implementation of realClock with clock.RealClock
- In flowcontrol/throttle.go split tokenBucketRateLimiters to use Clock and clock.PassiveClock.
- Migrate client-go/tools/record tests from using IntervalClock to using SimpleIntervalClock (honest implementation of clock.PassiveClock)

Signed-off-by: Madhav Jivrajani <madhav.jiv@gmail.com>
2021-09-17 21:20:46 +05:30
John Howard
2a34801168 workqueue: fix leak in queue preventing objects from being GCed
See https://github.com/grpc/grpc-go/issues/4758 for a real world example
of this leaking 2gb+ of data.

Basically, when we do `q.queue[1:]` we are just repositioning the slice.
The underlying array is still active, which contains the object formerly
known as `q.queue[0]`. Because its referencing this object, it will not
be GCed. The only thing that will trigger it to free is eventually when
we add enough to the queue that we allocate a whole new array.

Instead, we should explicitly clear out the old space when we remove it
from the queue. This ensures the object can be GCed, assuming the users'
application doesn't reference it anymore.
2021-09-17 08:29:26 -07:00
Kubernetes Prow Robot
6a84310f8b
Merge pull request #105010 from MadhavJivrajani/use-utils-clock-pkg
replace package realClock impl. with clock.RealClock
2021-09-17 07:35:01 -07:00
wojtekt
d9b08c611d Migrate to k8s.io/utils/clock 2021-09-17 15:19:08 +02:00
Kubernetes Prow Robot
91f820eee4
Merge pull request #104854 from pacoxu/kubeadm-swap-check
kubeadm: move swap on check error to warning since NodeSwap is beta
2021-09-17 04:57:13 -07:00
Kubernetes Prow Robot
399656369f
Merge pull request #104739 from alculquicondor/job-tracking
Beta requirements for JobTrackingWithFinalizers
2021-09-17 04:57:00 -07:00
Aditi Sharma
7c5d6c0844 Add metric for credential provider
Signed-off-by: Aditi Sharma <adi.sky17@gmail.com>
2021-09-17 11:03:36 +00:00
Karthik K N
c651d50202 Fix incorrect format specifier in test files 2021-09-17 16:27:53 +05:30
wojtekt
bb7dac443a Migrate to k8s.io/utils/clock in client-go 2021-09-17 11:37:33 +02:00
Kubernetes Prow Robot
cb2ea4bf7c
Merge pull request #101161 from rikatz/move-sysctl-util
Move node and networking related helpers from pkg/util to component helpers
2021-09-17 02:11:00 -07:00
saad-ali
beb17fe10b Remove VolumeSubpath feature gate
Remove the VolumeSubpath feature gate.

Feature gate convention has been updated since this was introduced to
indicate that they "are intended to be deprecated and removed after a
feature becomes GA or is dropped.".
2021-09-17 01:59:23 -07:00
ialidzhikov
080c4b4e94 Improve formatting in CHANGELOGs
Signed-off-by: ialidzhikov <i.alidjikov@gmail.com>
2021-09-17 10:07:14 +03:00
Kubernetes Prow Robot
9918aa1e03
Merge pull request #105026 from wojtek-t/migrate_clock_2
Unify towards k8s.io/utils/clock - part 2
2021-09-17 00:01:01 -07:00
Kubernetes Prow Robot
4c56dfd4c6
Merge pull request #105084 from pacoxu/patch-5
konnectivity-agent-ds: remove toleration for  NoSchedule
2021-09-16 22:53:00 -07:00
Mike Spreitzer
c4945fdf0c Update TestNoRestraint and TestWindup
Make TestNoRestraint verify that fairness is NOT achieved
when there is real competition.

Make TestWindup run two cases, to show that 0.1 is too narrow
a margin and 0.26 is wide enough.
2021-09-17 01:40:16 -04:00
pacoxu
22ccb37e88 add update-unwanted-dependencies.sh to track unwanted dependencies
Signed-off-by: pacoxu <paco.xu@daocloud.io>
Co-authored-by: Jordan Liggitt <jordan@liggitt.net>
Signed-off-by: pacoxu <paco.xu@daocloud.io>
2021-09-17 13:21:38 +08:00
Kubernetes Prow Robot
47f381ba5e
Merge pull request #105083 from MrHohn/fix-autoscaler-test-value
Fix core calculation for dns autoscaler test.
2021-09-16 20:41:01 -07:00
Paco Xu
ef99ba8cb2
konnectivity-agent-ds: remove toleration for NoSchedule 2021-09-17 10:58:09 +08:00
Wei Huang
a689ad4cda
sched: start dynamicInformerFactory along with regular informerFactory (#105016)
* sched: start dynamicInformerFactory along with regular informerFactory

* fixup: start all informers and then wait for their syncs
2021-09-16 19:33:00 -07:00
Kubernetes Prow Robot
2f10e6587c
Merge pull request #105079 from aramase/remove-dualstack-test
test(dualstack): remove should have ipv4 and ipv6 node podCIDRs test
2021-09-16 17:19:00 -07:00
Kubernetes Prow Robot
ff593c89a0
Merge pull request #104761 from lauchokyip/improveCM
Improve create configmap test
2021-09-16 16:11:45 -07:00
Kubernetes Prow Robot
16823fceb0
Merge pull request #103174 from Napsty/rancher-33360
Do not attempt to overwrite higher system (sysctl) values
2021-09-16 16:11:33 -07:00