Commit Graph

45956 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
7f1b8a33a8 Merge pull request #114181 from danwinship/minimize-iptables-ensure-rule
Don't re-run EnsureChain/EnsureRules on partial syncs
2022-12-10 07:53:59 -08:00
Kubernetes Prow Robot
2118bc8aec Merge pull request #114155 from aojea/mirroring_repack
endpointslicemirroring handle endpoints with multiple subsets
2022-12-10 07:53:42 -08:00
Kubernetes Prow Robot
767de11f88 Merge pull request #114178 from Octopusjust/k8s-pr19
pkg/kubelet/network/dns: omit unnecessary `fmt.Sprintf`
2022-12-10 06:05:34 -08:00
Kubernetes Prow Robot
db53463d4f Merge pull request #114172 from thockin/statefulset_name_dns_label
Validate StatefulSet names as DNS Label
2022-12-10 06:05:19 -08:00
Kubernetes Prow Robot
7754f007d6 Merge pull request #114169 from jpbetz/improve-kubelet-flag-errors
Improve error messages of flags that parse quantities and percentages
2022-12-10 06:05:11 -08:00
Kubernetes Prow Robot
1de943d9cf Merge pull request #114149 from kidddddddddddddddddddddd/volume_zone
Implement PreFilter for VolumeZone plugin for performance
2022-12-10 06:04:48 -08:00
Kubernetes Prow Robot
9303ea836f Merge pull request #114076 from akhilles/remove-unused-var
Remove unused `numExistingEndpoints` variable
2022-12-10 06:04:25 -08:00
Kubernetes Prow Robot
eeaddd17c1 Merge pull request #114055 from aimuz/fix-80289
kubernetes components using leader election to leases
2022-12-10 06:04:10 -08:00
Kubernetes Prow Robot
92ffe94592 Merge pull request #114033 from Octopusjust/k8s-pr14
pkg/controller/deployment/util/deployment_util.go:Improving test cove…
2022-12-10 06:03:55 -08:00
Kubernetes Prow Robot
09b5e8a938 Merge pull request #113876 from chiukapoor/coordination-api-doc
Fix API field references for coordination v1 and v1beta1
2022-12-10 06:03:43 -08:00
Antonio Ojea
ef6d9edea5 endpointslicemirroring handle endpoints with multiple subsets
Endpoints generated by the endpoints controller are in the canonical
form, however, custom endpoints can not be in canonical format
(there was a time they were canonicalized in the apiserver, but this
caused performance issues because the endpoint controller kept
updating them since the created endpoint were different than the
stored one due to the canonicalization)

There are cases where a custom endpoint may generate multiple slices
due to the controller, per example, when the same address is present
in different subsets.

The endpointslice mirroring controller should canonicalize the
endpoints subsets before start processing them to be consistent
on the slices generated, there is no risk of hotlooping because
the endpoint is only used as input.

Change-Id: I2a8cd53c658a640aea559a88ce33e857fa98cc5c
2022-12-10 11:44:10 +00:00
Kubernetes Prow Robot
0cd13e573c Merge pull request #113196 from mimowo/job-controller-reviewer
Self-nominate mimowo as a reviewer for pkg/controller/job & test/integration/job packages
2022-12-10 02:01:39 -08:00
Kubernetes Prow Robot
6a16d7d31a Merge pull request #113875 from chiukapoor/scheduling-api-doc
Fix API field references for scheduling v1, v1alpha1 and v1beta1
2022-12-09 23:41:40 -08:00
Kubernetes Prow Robot
a668924cb6 Merge pull request #113255 from claudiubelu/path-filepath-update-kubelet
Replaces path.Operation with filepath.Operation (kubelet)
2022-12-09 22:27:41 -08:00
Kubernetes Prow Robot
c5792ad96b Merge pull request #113138 from claudiubelu/unittests-skip-gce
unittests: Skip test if not on GCE
2022-12-09 21:13:41 -08:00
Kubernetes Prow Robot
4106b10d9c Merge pull request #112799 from kerthcet/cleanup/strategy-test
optimize testcases arrangement
2022-12-09 15:43:29 -08:00
Kubernetes Prow Robot
da588a31d4 Merge pull request #112627 from hj-johannes-lee/fix-typo-3
Kubemark: fix typos to be HollowKubeletOptions
2022-12-09 15:43:14 -08:00
Kubernetes Prow Robot
b9bfbb3849 Merge pull request #112490 from lzhecheng/doc-nodestatus-ip-change
[API][Doc] Update NodeStatus about IP change
2022-12-09 15:43:07 -08:00
Kubernetes Prow Robot
63a01a5465 Merge pull request #112260 from aryan9600/cidr-metrics
Add metric for max no. of CIDRs available
2022-12-09 15:42:59 -08:00
Kubernetes Prow Robot
da3d98277b Merge pull request #111839 from ialidzhikov/cleanup/pkg-controller
pkg/controller: Replace deprecated func usage from the `k8s.io/utils/pointer` pkg
2022-12-09 15:42:37 -08:00
Kubernetes Prow Robot
4557c694ef Merge pull request #111683 from lucming/code-cleanup5
reorganize some logic of controller_utils.go
2022-12-09 15:42:21 -08:00
Kubernetes Prow Robot
99a85a0041 Merge pull request #111583 from arrowfeng/arrowfeng/cleanup_podmanager-20220731
kubelet: cleanup secretManager and configManager in podManager
2022-12-09 15:42:14 -08:00
Kubernetes Prow Robot
5fe12aae11 Merge pull request #111207 from lucming/code-cleanup2
Reduce indentation in daemonset controller code
2022-12-09 15:41:41 -08:00
Kubernetes Prow Robot
4650558497 Merge pull request #113894 from ravi-nal/master
Update API doc to use the field name in description
2022-12-09 14:35:03 -08:00
Kubernetes Prow Robot
8d6c8f71d8 Merge pull request #113870 from dipankardas011/handleTableErrors
Error Suppression in printer/internalversion/printers
2022-12-09 14:34:41 -08:00
Kubernetes Prow Robot
6f6bf42ee5 Merge pull request #113768 from lojies/codecleanupforkubeleteviction
cleanup:Omit comparison with boolean constant
2022-12-09 14:34:26 -08:00
Sanskar Jaiswal
b501d6036a add metric for max no. of CIDRs that can be allocated from MultiCIDRSet
Signed-off-by: Sanskar Jaiswal <jaiswalsanskar078@gmail.com>
2022-12-05 15:18:45 +00:00
Sanskar Jaiswal
37f4d4624b add metric for max no. of CIDRs that can be allocated from CidrSet
Signed-off-by: Sanskar Jaiswal <jaiswalsanskar078@gmail.com>
2022-12-05 15:18:45 +00:00
kidddddddddddddddddddddd
9e0a7c7ee7 add pre_filter for volume_zone 2022-12-03 02:11:04 +08:00
Dan Winship
bfa4948bb6 Don't re-run EnsureChain/EnsureRules on partial syncs
We currently invoke /sbin/iptables 24 times on each syncProxyRules
before calling iptables-restore. Since even trivial iptables
invocations are slow on hosts with lots of iptables rules, this adds a
lot of time to each sync. Since these checks are expected to be a
no-op 99% of the time, skip them on partial syncs.
2022-11-29 09:42:49 -05:00
ZhangYu
6553ba246f pkg/kubelet/network/dns: omit unnecessary fmt.Sprintf 2022-11-29 14:44:14 +08:00
Tim Hockin
f4c1682fb1 Validate StatefulSet names as DNS Label
Any StatefuleSet which took advantage of this (by having dots in the
name) can't have worked because we set `pod.spec.hostname` from it,
which is validated as a DNS label.

So while this is strictly a breaking change, it doesn't break anything
that was not already broken.
2022-11-28 17:31:08 -08:00
Joe Betz
ab3c353227 Improve error messages for parse errors of --kube-reserved, --system-reserved and --qos-reserved 2022-11-28 16:35:26 -05:00
Claudiu Belu
1129f57143 unittests: Skip test if not on GCE
The test in pkg/credentialprovider/gcp/metadata_test.go is meant to
run only on GCE, which means that it will fail in any other case.

We should skip the test if we're not testing in GCE or Windows in GCE.
2022-11-28 13:54:14 +00:00
Wojciech Tyczyński
4ffca653ff Fix endpoint reconciler failing to delete masterlease
add regression test for endpoint reconciler leases
2022-11-25 08:13:20 +00:00
ialidzhikov
aede3fbf40 pkg/controller: Replace deprecated func usage from the k8s.io/utils/pointer pkg 2022-11-23 17:40:23 +02:00
aimuz
059acc2f5a kubernetes components using leader election to leases
Signed-off-by: aimuz <mr.imuz@gmail.com>
2022-11-23 10:59:08 +08:00
Akhil Velagapudi
70d31ea917 Remove unused numExistingEndpoints variable 2022-11-23 00:54:50 +00:00
Wei Huang
a731a44596 Fix an accuracy issue of scheduler_pending_pods metric 2022-11-21 21:33:16 -08:00
ZhangYu
d61849e800 pkg/controller/deployment/util/deployment_util.go:Improving test coverage 2022-11-22 10:12:58 +08:00
Ravi Nalluri
1b5e50008c Add generated docs for discovery and storage types 2022-11-17 12:03:03 -06:00
Dipankar Das
b72be5c458 formatted the file
Signed-off-by: Dipankar Das <dipankardas0115@gmail.com>
2022-11-17 10:58:40 +05:30
Ravi Nalluri
fdcf7b3b92 Add generated docs for discovery v1beta1 and storage v1 types 2022-11-16 16:55:33 -06:00
Chirayu Kapoor
693f7aef6e Changed API field references and generated docs for coordination v1 and v1beta1
Signed-off-by: Chirayu Kapoor <dev.csociety@gmail.com>
2022-11-16 22:15:58 +05:30
Aldo Culquicondor
7dc36bdf82 Wait for Pods to finish before considering Failed in Job (#113860)
* Wait for Pods to finish before considering Failed

Limit behavior to feature gates PodDisruptionConditions and
JobPodFailurePolicy and jobs with a podFailurePolicy.

Change-Id: I926391cc2521b389c8e52962afb0d4a6a845ab8f

* Remove check for unsheduled terminating pod

Change-Id: I3dc05bb4ea3738604f01bf8cb5fc8cc0f6ea54ec
2022-11-15 09:44:53 -08:00
Dipankar Das
9c9a775d4a added comment why we are suppressing the errors
Signed-off-by: Dipankar Das <dipankardas0115@gmail.com>
2022-11-15 08:48:42 +05:30
Kubernetes Prow Robot
84a55ad8d2 Merge pull request #113147 from andrewsykim/storageversiongc-controller-tests
add unit tests for storageversiongc controller
2022-11-14 10:56:41 -08:00
Kubernetes Prow Robot
f5d6ffc867 Merge pull request #113887 from mborsz/hollow
Add missing PodStartupLatencyTracker to kubemark
2022-11-14 08:27:57 -08:00
arrowfeng
6a57404e28 kubelet: cleanup secretManager and configManager in podManager
Signed-off-by: arrowfeng <289716347@qq.com>
2022-11-14 23:05:32 +08:00
Maciej Borsz
1deaf719f5 Add missing PodStartupLatencyTracker to kubemark 2022-11-14 13:55:32 +00:00