Commit Graph

121559 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
18a49b6c56
Merge pull request #123393 from cblecker/fix-make
Fix makefile variable expansion for test-integration target
2024-02-26 12:06:57 -08:00
Kubernetes Prow Robot
f8fc1956db
Merge pull request #123205 from aravindhp/nlq-promote-beta
features: promote NodeLogQuery to beta
2024-02-26 12:06:48 -08:00
Kubernetes Prow Robot
c53ac4cee4
Merge pull request #123157 from jsafrane/selinux-rwx
Add SELinuxMount feature gate
2024-02-26 12:06:39 -08:00
Aleksandra Malinowska
dd1e617ba0
Scheduler first fit (#123384)
* Don't evaluate extra nodes if there's no score plugin defined

* Fix existing unit test (add no op scoring plugin)

* Add unit tests for no score plugin scenario

* address review comments

* add a test with non-filter, non-scoring extender
2024-02-26 11:07:19 -08:00
Kubernetes Prow Robot
54bcbc3c75
Merge pull request #123512 from ingvagabund/system-kube-scheduler-rbac-dra-pod-finalizers
system:kube-scheduler: extend the RBAC with pods/finalizers
2024-02-26 09:10:15 -08:00
Kubernetes Prow Robot
77a2d6bced
Merge pull request #123511 from Rajalakshmi-Girish/fix-ut-ci-flake
ktesting: ut flake fix for CI
2024-02-26 09:10:01 -08:00
Christoph Blecker
ca41a9222d
Fix makefile variable expansion for test-integration target 2024-02-26 09:01:04 -08:00
Alexander Zielenski
aefaf66d2b remove unused service keys from aggregated discovery 2024-02-26 11:56:07 -05:00
Kubernetes Prow Robot
d171e6733a
Merge pull request #123503 from aojea/ccm_ci
Ccm ci
2024-02-26 08:02:58 -08:00
Kubernetes Prow Robot
414dabed44
Merge pull request #123498 from pacoxu/ip-mode-flake-ut
fix default IPMode set in UT
2024-02-26 08:02:45 -08:00
Jan Chaloupka
0045ef5294 system:kube-scheduler: extend the RBAC with pods/finalizers
When enabling DynamicResourceAllocation the dynamicresource plugin may
error during scheduling with:
```
E0212 08:57:53.817268       1 framework.go:1323] "Plugin failed" err="podschedulingcontexts.resource.k8s.io \"pod\" is forbidden: cannot set blockOwnerDeletion if an ownerReference refers to a resource you can't set finalizers on: , <nil>" plugin="DynamicResources" pod="gpu-test2/pod"
```
2024-02-26 15:42:35 +01:00
Kubernetes Prow Robot
cc5362ebc1
Merge pull request #123504 from pacoxu/metrics-server-v0.7.0
bump metrics server to v0.7.0
2024-02-26 05:55:33 -08:00
Rajalakshmi-Girish1
fd5019a546 ktesting: ut flake fix for CI 2024-02-26 07:26:20 -05:00
Kubernetes Prow Robot
98bd90fbe2
Merge pull request #114672 from pohly/log-text-split-streams
log: split streams also for text output
2024-02-26 01:44:58 -08:00
Paco Xu
c99996efab bump metrics server to v0.7.0 2024-02-26 17:26:18 +08:00
Antonio Ojea
0ab006b8a1 node-controller reconcile node labels on each update
instead of waiting for the periodic loop of the node-controller to
go through all the nodes, use the sync logic to reconcile the node
labels each time that the node has changed after it has been
initialized.

This has the benefit that changes by external entities on this labels
are quickly reconciled.

Change-Id: I45cfc1e3f0b9eefdfdd67267229420d76132ab87
2024-02-26 09:01:21 +00:00
Antonio Ojea
03bd3e25b1 [cloud-provider] require providerID to initialize node
The node controller has two reconcilations loops:

1. workqueue receiving events from watchers, to implement
the node initialization

2. periodic loop to reconcile cloud-provider addresses and
node objects, since there is no watch for the cloud-provider
addresses. However, this loop can take O(xx) mins on large
clusters.

Before the external cloud providers were enabled by default,
the kubelet was in charge of setting the corresponding
providerID and zone and region labels during the node object
creation.

Once this logic was moved to the external cloud providers,
there are cases that the node controller may fail to add the
providerID value on the node object and this is never reconciled.
The problem is that there are many controllers and projects that
depend on this field to be set.

Checking at the code it is not possible to not have a ProviderID
in any cloud-provider, since it is always built from the provider name
and the instance. ProviderID is also inmutable once set, so we make
ProviderID a requirement for node initialization.

To avoid any possible problems, we rollout this change under a feature
gate in deprecated state, so cloud providers can opt-out to the new
behavior.

Change-Id: Ic5d9c23b6a286b12c9721d4a378485a8b81212d1

Change-Id: Iac8c7e7e47a3247553806ed7128b273bbef0a30b
2024-02-26 09:01:21 +00:00
Antonio Ojea
099f26296b integration test for cloud provider
very simple tests to check that the node controllers removes the taint.

Test will be used later for add more coverage without having to depend
on e2e tests for validating complex scenarios and combinations of flags
and controllers.

Change-Id: I55ce01488352cce9d673585e7959678c2bfb5924
2024-02-26 09:01:21 +00:00
Antonio Ojea
ef83ec2753 don't use leader elect on ccm integration tests
Change-Id: Ic1d0ff73d7913f23ed577a121b0045a1c33b9e78
2024-02-26 09:01:21 +00:00
Antonio Ojea
08f8be9903 fix goroutine leak on legacy-cloud-provider gce
Change-Id: Ice7f66683785d60ce9d09201d557a0438743ec72
2024-02-26 09:01:21 +00:00
Antonio Ojea
3636971c39 add aojea as reviewer
Change-Id: Ie69e01542f9c8420aa0d0275378acd838e77eca9
2024-02-26 08:56:23 +00:00
Antonio Ojea
b4b4784c6c enable ip aliases on clusters by default
Change-Id: I2f98af61b5a8d98742510dd0a2b66d1bb6df02eb
2024-02-26 08:56:23 +00:00
Antonio Ojea
3908a46b22 bump cloud controller manager to v29.0.0
Change-Id: I1287c7e7cdca67daa7dc7f7dfdc0b8ed10b1f6ae
2024-02-26 08:56:23 +00:00
Mengjiao Liu
b584b87a94 kube-controller-manager: readjust log verbosity
- Increase the global level for broadcaster's logging to 3 so that users can ignore event messages by lowering the logging level. It reduces information noise.
- Making sure the context is properly injected into the broadcaster, this will allow the -v flag value to be used also in that broadcaster, rather than the above global value.
- test: use cancellation from ktesting
- golangci-hints: checked error return value
2024-02-26 14:51:56 +08:00
Paco Xu
dc7114fa91 fix default IPMode set in UT 2024-02-26 12:32:01 +08:00
fusida
9f6b48f1e7 fix node lifecycle controller panic when conditionType ready is nil 2024-02-26 11:26:45 +08:00
Kubernetes Prow Robot
689dca08e1
Merge pull request #123479 from Jefftree/sample-apiserver-129
Fix sample-apiserver rbac and bump to 1.29
2024-02-25 16:41:38 -08:00
Kubernetes Prow Robot
4b3da38651
Merge pull request #123417 from soltysh/kube_codegen-applyexternal
kube_codegen: expose external-applyconfigurations flag for client generation
2024-02-25 16:41:31 -08:00
Kubernetes Prow Robot
a58221c104
Merge pull request #123492 from carlory/fix-kubeadm-494-1
Replace fmt.Print with printer in upgrade plan code and fix configVersions are not printed when output is json or yaml
2024-02-25 13:47:31 -08:00
reinka
0f083966a7 set actual podToMake values 2024-02-25 19:28:22 +01:00
Kubernetes Prow Robot
60e11e2c6a
Merge pull request #123490 from dims/run-auto-scaler-as-non-root-in-kube-up
Run auto scaler as non root in kube up
2024-02-25 10:03:30 -08:00
Kubernetes Prow Robot
aed1f50965
Merge pull request #122629 from sanposhiho/ignore-non-
fix(scheduling queue): ignore events that interest no registered plugin
2024-02-25 10:03:21 -08:00
Patrick Ohly
840ef14907 ktesting: doc updates and fixes
First-in-first-out is wrong for cleanup, it's LIFO.

Updated some comments to make them more informative and fixed indention.
2024-02-25 18:13:58 +01:00
Kubernetes Prow Robot
821c0ef61e
Merge pull request #123489 from yxxhero/print_etcd_ready_status
feat: print etcd ready status
2024-02-25 07:42:03 -08:00
Kubernetes Prow Robot
be4b7de022
Merge pull request #123488 from dims/skip-autoscaling-tests-when-we-hit-rate-limits
Skip autoscaling tests when we hit rate limits
2024-02-25 06:40:24 -08:00
carlory
fb3ab53822 Replace fmt.Print with printer in upgrade plan code and fix configVersions are not printed when output is json or yaml 2024-02-25 21:58:18 +08:00
yxxhero
e6d6d8e14c feat: print etcd ready status
Signed-off-by: yxxhero <aiopsclub@163.com>
2024-02-25 20:56:47 +08:00
Davanum Srinivas
df92ad9bcb
Run autoscaler as non root in kube-up
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2024-02-24 19:04:35 -05:00
Kubernetes Prow Robot
237d3dfda7
Merge pull request #123486 from pohly/test-context-unit-test-flake
ktesting: unit test flake because of timing check
2024-02-24 15:55:01 -08:00
Davanum Srinivas
d7735f32d0
Skip autoscaling tests when we hit rate limits
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2024-02-24 18:07:49 -05:00
Kubernetes Prow Robot
38638adaee
Merge pull request #123418 from rikatz/kep-1860-to-beta
Promote LoadBalancerIPMode to Beta
2024-02-24 12:48:07 -08:00
Patrick Ohly
1ecd4053de ktesting: skip timing check in unit test
Extending the duration and the allowed delta in f6682370b1 was still not enough
to make the unit test run reliably in pull-kubernetes-unit.

Now it uses the original, stricter timing again, but only when run locally. In
Prow (detected by checking the "CI" env variable), the duration check is
skipped.
2024-02-24 19:26:29 +01:00
Patrick Ohly
8980b4b846 Revert "fix flaky ut in TestCause contexthelper_test"
This reverts commit f6682370b1.
2024-02-24 19:21:01 +01:00
Kubernetes Prow Robot
2a44cb0ab3
Merge pull request #122569 from IvoGoman/wrap-nomatcherror
feat(cli-runtime): wrap meta.NoKindMatchErrors
2024-02-24 10:01:33 -08:00
Kubernetes Prow Robot
4c15f5f7b0
Merge pull request #123473 from dims/fix-for-persistent-horizontal-pod-autoscaling-failures
Fix for persistent Horizontal pod autoscaling failures
2024-02-24 05:51:16 -08:00
Kensei Nakada
18ba3b388e fix(scheduling queue): ignore events that interest no registered plugin 2024-02-24 06:42:19 +00:00
Jefftree
bbef156ef5 update 129 2024-02-23 23:53:54 -05:00
Jefftree
b3216214f9 Fix sample-apiserver rbac for v1.27 and bump e2e 2024-02-23 23:53:54 -05:00
Kubernetes Prow Robot
781da75951
Merge pull request #123476 from Jefftree/1292-sample-apiserver
release v1.29.2 for sampleapiserver
2024-02-23 17:41:54 -08:00
Davanum Srinivas
e2ff63103d
fix for persistent Horizontal pod autoscaling failures
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2024-02-23 20:07:31 -05:00