Commit Graph

103815 Commits

Author SHA1 Message Date
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
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
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
Zihong Zheng
93e59220c5 Fix core calculation for dns autoscaler test.
It didn't account for the return value being a string instead of an
integer.
2021-09-16 14:26:51 -07:00
Kubernetes Prow Robot
924f196882
Merge pull request #104986 from thockin/svc-validation-cleanup
Svc REST: clean up defaultOnRead to be consistent
2021-09-16 14:09:26 -07:00
Ricardo Pchevuzinske Katz
37d11bcdaf Move node and networking related helpers from pkg/util to component helpers
Signed-off-by: Ricardo Katz <rkatz@vmware.com>
2021-09-16 17:00:19 -03:00
Andrey Smirnov
a5647fa417
fix: wrap errors correct when validating kubeconfig
This allows to check for specific errors using `errors.Is`.

Signed-off-by: Andrey Smirnov <andrey.smirnov@talos-systems.com>
2021-09-16 22:56:08 +03:00
Kubernetes Prow Robot
63e7ee43bb
Merge pull request #105069 from p0lyn0mial/upstream-etcd-client-retry
etcd client starts retrying transient errors from the etcd cluster
2021-09-16 12:43:39 -07:00
Kubernetes Prow Robot
af85e0e669
Merge pull request #105067 from Shubham82/Add-supported_alg_header_value
Add supported 'alg' header values.
2021-09-16 12:43:26 -07:00
Kubernetes Prow Robot
fb70ca9b7b
Merge pull request #105046 from alculquicondor/system-spreading
Skip check for all topology labels when using system default spreading
2021-09-16 11:36:14 -07:00
Shivanshu Raj Shrivastava
f06ce08d63
Migrated pkg/proxy/winuserspace to structured logging (#105035)
* migrated roundrobin.go

* migrated proxysocket.go

* used KRef in service
2021-09-16 11:36:02 -07:00
Kubernetes Prow Robot
51e39a45d9
Merge pull request #104998 from pohly/scheduler-plugin-registration
scheduler: avoid repeated boilerplate code when registering plugins
2021-09-16 11:35:49 -07:00
Kubernetes Prow Robot
51384aa77e
Merge pull request #104847 from smarterclayton/worker_uid_reuse
kubelet: Handle UID reuse in pod worker
2021-09-16 11:35:37 -07:00
Kubernetes Prow Robot
139a50c5d7
Merge pull request #104627 from arajkumar/add-doc-metrics-kinds
NodeMetrics, PodMetrics: Add doc for metav1.ObjectMeta
2021-09-16 11:35:26 -07:00
Anish Ramasekar
9de9c99093
test(dualstack): remove should have ipv4 and ipv6 node podCIDRs test
Signed-off-by: Anish Ramasekar <anish.ramasekar@gmail.com>
2021-09-16 18:25:20 +00:00
Anish Ramasekar
63295a126e
fix typo in kms encryption config logs
Signed-off-by: Anish Ramasekar <anish.ramasekar@gmail.com>
2021-09-16 18:19:29 +00:00
Tim Hockin
52f54ce90d Svc REST: clean up defaultOnRead to be consistent
Headless+selectorless -> RequireDualStack

Headless+selector -> SingleStack

Add test cases to cover this and ExternalName and dual-stack init (which
I think can never trigger, but best to be safe).
2021-09-16 11:17:45 -07:00
Kubernetes Prow Robot
6a49ed41ea
Merge pull request #104949 from Karthik-K-N/json-iterator-version-update
Updated json-iterator version to 1.1.12 from 1.1.11
2021-09-16 10:25:46 -07:00
Paco Xu
a48a2efbd4
remove deprecated validEgressSelectorNames 'master' (#102242)
* remove deprecated validEgressSelectorNames 'master'

Signed-off-by: pacoxu <paco.xu@daocloud.io>

* update gce configure: replace deprecated egress name 'master' with 'controlplane'

Signed-off-by: pacoxu <paco.xu@daocloud.io>

* add dup error for EgressSelection & fix converting alpha/beta to v1 name
2021-09-16 07:09:46 -07:00
Jian Zeng
2fbbd380ea
refactor: switch to tls cipher suite in stdlib
Signed-off-by: Jian Zeng <zengjian.zj@bytedance.com>
2021-09-16 21:58:01 +08:00
Aldo Culquicondor
609306dd5b Skip check for all topology labels when using system default spreading
Checking for all topology labels is not backwards compatible. Clusters were nodes don't have zone labels effectively have default spreading disabled.

Change only applies to system defaults.
2021-09-16 09:37:56 -04:00
Kubernetes Prow Robot
5d7ac70051
Merge pull request #104670 from andyzhangx/patch-2
turn on CSIMigrationAzureDisk by default on 1.23
2021-09-16 05:35:45 -07:00
Stanislav Laznicka
b67bd722a9
rootcacertpublisher: drop the namespace label from metrics to reduce its cardinality
The `root_ca_cert_publisher_sync_duration_seconds` metric tracks the sync
duration in the root CA cert publisher per code and namespace. In
clusters with a high namespace turnover (like CI clusters), this may
cause the kube-controller-manager to expose over 100k series to
Prometheus, which may cause degradation of that service.

Drop the `namespace` label to remove the metrics' cardinality, tracking
this metric by namespace does not justify the impact of keeping it.
2021-09-16 14:05:32 +02:00