Commit Graph

47352 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
ffb4172ff1 Merge pull request #115754 from linxiulei/sched
Start informers after leader election
2023-05-15 15:41:36 -07:00
Kubernetes Prow Robot
38652a8c31 Merge pull request #116531 from my-git9/ut-conditions
[UT] add ut for pkg/client/conditions
2023-05-15 13:21:35 -07:00
Eric Lin
a52dcd0d9f Add DelayCacheUntilActive option to start informers after leader election
If scheduler fails to be active (elected if leader election is enabled),
setting this option will not start informers so that to avoid memory
overhead.

Signed-off-by: Eric Lin <exlin@google.com>
2023-05-15 19:52:04 +00:00
Kubernetes Prow Robot
1d6158e11b Merge pull request #117993 from liggitt/shortnames
Undo 1.28 shortname additions for now
2023-05-15 11:05:27 -07:00
Kubernetes Prow Robot
1487fc762f Merge pull request #117982 from jpbetz/sig-roles-jpbetz
Add api-machinery TL owners permissions for jpbetz
2023-05-15 09:07:29 -07:00
Joe Betz
f0f92853ad Add api-machinery TL owners permissions for jpbetz 2023-05-15 11:09:54 -04:00
Kubernetes Prow Robot
52353a2e4a Merge pull request #117994 from sanposhiho/patch-6
cleanup unused variables for v1beta2 component config
2023-05-15 06:01:29 -07:00
Kubernetes Prow Robot
aae20dcb78 Merge pull request #118000 from daman1807/proxy-ipvs-reviewer
proxy/ipvs: added daman1807 as reviewer
2023-05-14 13:51:26 -07:00
Kubernetes Prow Robot
11218f10aa Merge pull request #117061 from AxeZhan/duplicate_validation
remove duplicate validation for csi
2023-05-14 12:51:26 -07:00
Daman Arora
a0133b7cc4 proxy/ipvs: added daman1807 as reviewer
Signed-off-by: Daman Arora <aroradaman@gmail.com>
2023-05-14 16:29:43 +05:30
Kubernetes Prow Robot
fda4ca0d8a Merge pull request #117965 from daman1807/fix/ipvs-ipv6-healthcheck
proxy/ipvs: use healthzServer for instantiating the IPVS IPv6 proxier
2023-05-13 12:29:37 -07:00
Kensei Nakada
13cef6a754 cleanup unused variables for v1beta2 component config 2023-05-14 00:22:25 +09:00
Jordan Liggitt
815578295a Revert "support short name for flowschema and prioritylevelconfiguration"
This reverts commit 3dd0c41663.
2023-05-13 11:11:04 -04:00
Jordan Liggitt
72202f9a00 Revert "add shortnames for mutatingwebhookconfigurations and validatingwebhookconfigurations"
This reverts commit 7514d8b333.
2023-05-13 11:10:55 -04:00
Kubernetes Prow Robot
8479db5876 Merge pull request #117946 from lavalamp/lavalamp-taking-a-break
lavalamp is taking a long break
2023-05-12 14:34:47 -07:00
Kubernetes Prow Robot
8f9c185696 Merge pull request #116761 from iancoolidge/devel-cpuset-revendor
Complete cpuset export to k/utils by revendoring
2023-05-12 08:37:02 -07:00
Daman Arora
3dc4eea889 proxy/service_health: release read lock early
Signed-off-by: Daman Arora <aroradaman@gmail.com>
2023-05-12 15:04:04 +05:30
Daman Arora
808098c4c6 proxy/ipvs: healthzServer for instantiating the proxier
Signed-off-by: Daman Arora <aroradaman@gmail.com>
2023-05-12 12:57:47 +05:30
xin.li
dd49af86b7 [UT] add ut for pkg/client/conditions
Signed-off-by: xin.li <xin.li@daocloud.io>
2023-05-12 10:48:46 +08:00
Kubernetes Prow Robot
02659772cb Merge pull request #117931 from tklauser/cidrset-rm-getindexforcidr
cidrset, multicidrset: directly use getIndexForIP method
2023-05-11 10:59:36 -07:00
Kubernetes Prow Robot
58e13496d6 Merge pull request #116842 from mengjiao-liu/contextual-logging-scheduler-runtime
Migrated `pkg/scheduler/framework/runtime` to use contextual logging
2023-05-11 10:59:02 -07:00
Kubernetes Prow Robot
367180d781 Merge pull request #117933 from tenzen-y/replace-deprecated-Prt-utils
Job: Replace deprecated pointer utils with supported ones
2023-05-11 09:59:14 -07:00
Kubernetes Prow Robot
87af78dba7 Merge pull request #117907 from SataQiu/fix-controller-log-20230510
Fix a bug where the AttachedVolume is not printed correctly in the log
2023-05-11 09:59:02 -07:00
Daniel Smith
1ffe3f467e lavalamp is taking a long break 2023-05-11 16:43:38 +00:00
SataQiu
3fa55d469c fix a bug where the AttachedVolume is not printed correctly in the log 2023-05-11 22:04:30 +08:00
Yuki Iwai
de882f5193 Job: Replace deprecated pointer utils with supported ones
Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com>
2023-05-11 19:29:14 +09:00
Tobias Klauser
e7c679c362 cidrset, multicidrset: directly use getIndexForIP method
Instead of constructing a *net.IPnet whose .Mask field is never used,
call the getIndexForIP method of *CidrSet and *MultiCIDRSet directly.
2023-05-11 10:53:03 +02:00
Mengjiao Liu
fe728996ca scheduler test: call frameworkruntime.WithLogger function for contextual logging 2023-05-11 15:46:08 +08:00
Mengjiao Liu
b456392567 Migrated pkg/scheduler/framework/runtime to use contextual logging 2023-05-11 15:46:02 +08:00
Kubernetes Prow Robot
122a459dcb Merge pull request #117616 from claudiubelu/fix-kubelet-util-windows-ut
unit tests: Fixes kubelet util unit tests for Windows
2023-05-10 19:51:09 -07:00
Kubernetes Prow Robot
7aea5a9b25 Merge pull request #117794 from utam0k/interpodaffinity-skip
Return Skip in InterPodAffinity#PreScore under specific conditions
2023-05-10 09:34:59 -07:00
utam0k
c0611b6bb3 Return Skip in InterPodAffinity#PreScore under specific conditions
This commit updates the InterPodAffinity PreScore to return a Skip status when the following conditions are met:
1. There are no nodes to score.
2. The incoming pod has no inter-pod affinities && the `IgnorePreferredTermsOfExistingPods` option is enabled.

Signed-off-by: utam0k <k0ma@utam0k.jp>
2023-05-10 13:02:23 +00:00
Claudiu Belu
11f1d24165 unit tests: Fixes kubelet util unit tests for Windows
The unit tests are currently failing due to missing imports. This commit
addresses this issue.

Additionally, TestIsUnixDomainSocket expects an error to be raised by
IsUnixDomainSocket if the file does not exist, but on Windows we do not
raise such error.

This issue is addressed by Stat-ing the file, and checking
if the file exists or not. We're also handling the case in which the given
filePath is a named pipe, returning false immediately, instead of trying to
dial it as a Unix domain socket.
2023-05-10 11:25:49 +00:00
Kubernetes Prow Robot
af1bf43067 Merge pull request #117872 from danwinship/kep-3453-to-ga
MinimizeIPTablesRestore to GA
2023-05-10 00:19:11 -07:00
Kubernetes Prow Robot
65c13c5c21 Merge pull request #117836 from ruquanzhao/addPodUID
Passing podUID in AddReference and DeleteReference
2023-05-10 00:18:59 -07:00
RuquanZhao
9150e6b55a s/of referencedFrom/from referenceFrom/
Signed-off-by: Ruquan Zhao <ruquan.zhao@arm.com>
2023-05-10 10:22:52 +08:00
Tim Hockin
4bbf611773 Retool validation for pod HostNetwork ports
This will ensure that HostPort == ContainerPort for pods and that
HostPort == 0 || HostPort == ContainerPort for embedded PodSpecs.
2023-05-09 18:10:44 -07:00
Tim Hockin
ec3379a717 Do hostNet Pod-ports -> hostPorts in Pod defaults
Rather than doing it in PodSpec defaulting, which triggers in
Deployments and DaemonSets, do it only when a Pod is actually in play.
2023-05-09 18:10:20 -07:00
Dan Winship
c3971002c9 MinimizeIPTablesRestore to GA 2023-05-09 18:19:00 -04:00
Kubernetes Prow Robot
a9b08f4cc2 Merge pull request #117642 from carlory/fix-001
remove ability to re-enable serving deprecated node.k8s.io/v1beta1 types
2023-05-09 09:35:56 -07:00
RuquanZhao
308ab380d7 Add unit testcases of refMap.
Signed-off-by: Ruquan Zhao <ruquan.zhao@arm.com>
2023-05-09 18:05:43 +08:00
Kubernetes Prow Robot
76552fac38 Merge pull request #114764 from claudiubelu/unittests-7
unittests: Fixes unit tests for Windows (part 7)
2023-05-08 11:52:51 -07:00
Kubernetes Prow Robot
6442024f1c Merge pull request #116779 from jpbetz/cel-ratcheting
Controlled rollout of CEL libraries and language feautres
2023-05-08 09:51:40 -07:00
Joe Betz
e740f8340e Introduce CEL EnvSets for managing safe rollout of new CEL features, libraries and expression variables 2023-05-08 11:52:31 -04:00
Kubernetes Prow Robot
dd43d864c1 Merge pull request #116901 from pacoxu/cleanup-KubeletCredentialProviders
remove GAed KubeletCredentialProviders (1.28)
2023-05-08 07:55:53 -07:00
Kubernetes Prow Robot
dc08463dff Merge pull request #117855 from tenzen-y/replace-job-controller-sets
Job: Use generic Set in controller
2023-05-08 07:01:29 -07:00
Kubernetes Prow Robot
3187a3333b Merge pull request #117477 from HirazawaUi/replace-pkg-credentialprovider-ioutil
Replace the deprecated ioutil method in the credentialprovider directory
2023-05-08 07:01:17 -07:00
Kubernetes Prow Robot
509c2c7c88 Merge pull request #117656 from carlory/fix-003
remove DevicePlugins featuregate
2023-05-08 04:31:17 -07:00
Claudiu Belu
d3237b7258 unittests: Fixes unit tests for Windows (part 7)
Currently, there are some unit tests that are failing on Windows due to
various reasons:

- if a powershell command that could return an array (e.g.: Get-Disk) would return an array of
  only one element, powershell will in fact return that object directly, and **not** an array
  containing that element. In a few cases, these commands are used and their output is converted
  to json, after which they're unmarshalled in golang, with the expectation that the unmarshalled
  data to be an array. If it's not an array, we get an error.
- when mounting Block Devices, Windows expects the given source to be a Disk Number, not a path.
- for rbd_windows_test.go, we should start with Disk Number 0, which exists on all hosts.
- if a Disk has multiple volumes, Get-Volume doesn't return the volumes in the same order. This
  can result in various assertions failing.
- the pkg/volume/rbd/rdb_test.TestPlugin test expects that mounter.MountSensitive is called when
  attacher.MountDevice is called. The Windows attacher doesn't currently make that call.
2023-05-08 10:53:39 +00:00
Kubernetes Prow Robot
f418411d0f Merge pull request #117787 from danwinship/iptables-restore-metrics
Add new partial/full sync time metrics for iptables kube-proxy
2023-05-08 01:23:28 -07:00