Commit Graph

122424 Commits

Author SHA1 Message Date
Dan Winship
ba57fd7c84 Merge linux and windows kube-proxy metric registration together
Windows proxy metric registration was in a separate file, which had
led to some metrics (eg the new ProxyHealthzTotal and ProxyLivezTotal)
not being registered for Windows even though they were implemented by
platform-generic code.

(A few other metrics were neither registered on, nor implemented on
Windows, and that's probably a bug.)

Also, beyond linux-vs-windows, make it clearer which metrics are
specific to individual backends.
2024-04-26 09:27:41 -04:00
John Riendeau
a53999f086
Bump version of agnhost used in e2e tests 2024-04-26 08:22:26 -05:00
Dr. Stefan Schimanski
e37917fea7
pkg/controlplane: split up config into generic controlplane and kube-related part
Signed-off-by: Dr. Stefan Schimanski <stefan.schimanski@gmail.com>
2024-04-26 14:14:06 +02:00
Kubernetes Prow Robot
d07a5768cc
Merge pull request #124552 from pohly/apidiff
hack/apidiff.sh: compare between two revisions, usability enhancements
2024-04-26 04:39:59 -07:00
Kubernetes Prow Robot
4066055caa
Merge pull request #124549 from sttts/sttts-aggregator-without-crds
kube-apiserver/aggregator: fix panic with crds disabled
2024-04-26 03:09:18 -07:00
Lubomir I. Ivanov
786ad3ca81 kubeadm: check for available nodes during 'CreateJob' preflight
Instead of erroring during the preflight check 'CreateJob'
from "upgrade" commands when there are no schedulable nodes,
show a warning.

This can happen in single node clusters.

Also increase the Job TTL after completion to 20 seconds
to make sure it's more than the timeout what waits
for the Job to complete.
2024-04-26 12:18:02 +03:00
Patrick Ohly
6eba52e795 hack/apidiff.sh: compare between two revisions, usability enhancements
In a Prow job, the current work tree is the result of merging a PR into the
target. We want apidiff.sh from there, but then need to invoke it for two
specific revisions and compare.

While at it, output and usability get enhanced. The directory parameter(s) may
be absolute paths or lack the leading . that is required by apidiff.
2024-04-26 11:00:03 +02:00
Dr. Stefan Schimanski
91de83b694
kube-apiserver/aggregator: fix panic with crds disabled
Signed-off-by: Dr. Stefan Schimanski <stefan.schimanski@gmail.com>
2024-04-26 09:05:20 +02:00
Kubernetes Prow Robot
ba05a8deb3
Merge pull request #124419 from neolit123/1.31-deprecate-experimental-cert-rotation
kubeadm: mark the phase 'experimental-cert-rotation' as deprecated
2024-04-25 23:28:39 -07:00
Kubernetes Prow Robot
5ae0d48a06
Merge pull request #124545 from SataQiu/fix-kubeadm-test-20240426
kubeadm: enable KubernetesReleaseVersion test
2024-04-25 22:22:21 -07:00
SataQiu
328c5edaeb kubeadm: enable KubernetesReleaseVersion test 2024-04-26 11:30:51 +08:00
Kubernetes Prow Robot
bf454d7c59
Merge pull request #124516 from danwinship/cloud-hostname-override
Fix behavior with external cloud provider and --hostname-override
2024-04-25 14:47:24 -07:00
Kubernetes Prow Robot
4bb8debb1f
Merge pull request #124524 from jbtk/env-vars
Append both env variables instead of fetching twice and overriding them.
2024-04-25 12:16:30 -07:00
Kubernetes Prow Robot
ae02f87bb4
Merge pull request #122145 from pohly/cloud-providers-context-support
cloud providers: enhance context support
2024-04-25 08:34:53 -07:00
Antonio Ojea
67596bf29f use a stable release for network policies 2024-04-25 14:27:59 +00:00
Dan Winship
59cecf8a36 Simplify redundant LocalTrafficDetector implementations
All of the LocalTrafficDetector implementations were essentially
identical after construction time, so just reduce them to a single
implementation with multiple constructors.

Also, improve the comments.
2024-04-25 08:52:35 -04:00
Dan Winship
dc1155bd53 Move LocalTrafficDetector from pkg/proxy/util/iptables to pkg/proxy/util
Since it's used for nftables as well now.
2024-04-25 08:51:43 -04:00
Dan Winship
30972710bd Fix behavior with external cloud provider and --hostname-override 2024-04-25 08:12:04 -04:00
Justyna Betkier
a484bb94c2 Fix linter issues 2024-04-25 13:34:30 +02:00
Justyna Betkier
8ba3327de7 Append both env variables instead of fetching twice and overriding them.
Previously the second line would fetch the clean environment variables
and drop the changes from the first line.
2024-04-25 13:34:30 +02:00
Kubernetes Prow Robot
8a9031f9c9
Merge pull request #124521 from pohly/apidiff
hack/apidiff.sh: handle lack of origin
2024-04-25 03:52:44 -07:00
Patrick Ohly
50c1243760 cloud providers: enhance context support
27a68aee3a introduced context support for events. Creating an event
broadcaster with context makes tests more resilient against leaking goroutines
when that context gets canceled at the end of a test and enables per-test
output via ktesting.

While at it, all context.TODO calls get removed in files that were touched.
2024-04-25 11:57:16 +02:00
Patrick Ohly
7f54c5dfec scheduler: remove AssumeCache interface
There's no reason for having the interface because there is only one
implementation. Makes the implementation of the test functions a bit
simpler (no casting). They are still stand-alone functions instead of methods
because they should not be considered part of the "normal" API.
2024-04-25 11:46:58 +02:00
Patrick Ohly
26e0409c36 scheduler: move assume cache to utils, part 2
This is now used by both the volumebinding and dynamicresources plugin, so
promoting it to a common helper package is better.

In terms of functionality, nothing was changed. Documentation got
updated (warns about storing locally modified objects, clarifies what the Get
parameters are). Code coverage should be a bit better than before (tested with
and without indexer, exercises event handlers, more error paths).

Checking for specific errors can now be done via errors.Is.
2024-04-25 11:45:43 +02:00
Patrick Ohly
910b90fca3 scheduler: move assume cache to utils, part 1
This is a verbatim move resp. copy of the files. They don't build in their new
location yet.
2024-04-25 10:49:41 +02:00
Patrick Ohly
679195d8cc hack/apidiff.sh: handle lack of origin
The script failed in the Prow job with:

   fatal: Not a valid object name origin/master

That came from "git merge-base origin/master HEAD", which isn't needed because
the Prow job intentionally sets -r explicitly.

Now the fallback is only tried if needed. While at it, the informational
messages get enhanced.
2024-04-25 10:39:20 +02:00
Kubernetes Prow Robot
e19ff7771d
Merge pull request #123777 from linxiulei/nc
Remove setting NoRouteCreated condition
2024-04-25 01:20:42 -07:00
Kubernetes Prow Robot
17854f0e0a
Merge pull request #124496 from carlory/output-alpha3
kubeadm: remove the deprecated output.kubeadm.k8s.io/v1alpha2
2024-04-24 21:02:51 -07:00
Kubernetes Prow Robot
f6fde3ba7f
Merge pull request #124382 from riendeau/agnhostbump
Bump base images for agnhost
2024-04-24 19:00:00 -07:00
Kubernetes Prow Robot
56956edd76
Merge pull request #124512 from bart0sh/PR143-e2e-node-fix-containers-lifecycle
Revert "add coverage tests for probes behavior"
2024-04-24 15:31:30 -07:00
Kubernetes Prow Robot
58788c2f7b
Merge pull request #124466 from serathius/featuregate-defer
Cleanup defer from SetFeatureGateDuringTest function call
2024-04-24 15:31:21 -07:00
Kubernetes Prow Robot
9c4d207d18
Merge pull request #124513 from serathius/workarounds
Remove workarounds for https://github.com/etcd-io/etcd/issues/17507
2024-04-24 14:29:47 -07:00
Kubernetes Prow Robot
0a6101636d
Merge pull request #123930 from Nordix/esotsal/fix_123928
Move DockerHung test in the end
2024-04-24 14:29:38 -07:00
Kubernetes Prow Robot
bc05bef903
Merge pull request #124352 from wojtek-t/idempotent_transformer_func
Idempotent transformers in scheduler & kcm
2024-04-24 12:35:02 -07:00
Kubernetes Prow Robot
0b15f8cbfc
Merge pull request #124344 from wojtek-t/fix_transformer
Fix race in informer transformers
2024-04-24 12:34:53 -07:00
Marek Siarkowicz
a08d1b5f32 Remove workarounds for https://github.com/etcd-io/etcd/issues/17507 2024-04-24 20:28:41 +02:00
Kubernetes Prow Robot
e6fa3cddb9
Merge pull request #124510 from aroradaman/revert-124498-dummy-agnhost-bump
Revert "agnhost: update README"
2024-04-24 11:26:38 -07:00
Marek Siarkowicz
3ee8178768 Cleanup defer from SetFeatureGateDuringTest function call 2024-04-24 20:25:29 +02:00
Ed Bartosh
e4c6adacf0 Revert "add coverage tests for probes behavior"
This reverts commit 9be9832184.
2024-04-24 20:56:46 +03:00
Daman Arora
26733f9aa8
Revert "agnhost: update README" 2024-04-24 22:26:33 +05:30
Kubernetes Prow Robot
bf6507070c
Merge pull request #124508 from aojea/agnhost_fix
Agnhost building fix
2024-04-24 09:47:49 -07:00
Kubernetes Prow Robot
06db9962f8
Merge pull request #124452 from danwinship/proxy-config-unit-tests
KubeProxyConfig unit test cleanups
2024-04-24 09:47:35 -07:00
Kubernetes Prow Robot
cc8063a911
Merge pull request #122971 from pohly/apidiff
hack: add apidiff.sh
2024-04-24 09:47:12 -07:00
Kubernetes Prow Robot
0f06328096
Merge pull request #124469 from serathius/etcd-3.5.13
Upgrade etcd libraries to v3.5.13
2024-04-24 08:38:17 -07:00
Kubernetes Prow Robot
b3f5c57223
Merge pull request #124263 from alvaroaleman/typed
Workqueue: Add generic versions that are properly typed
2024-04-24 08:38:08 -07:00
Antonio Ojea
5ed555fb5d Revert "Remove _tmp from test/images/image-util.sh"
This reverts commit 2e465cd6fa.
2024-04-24 13:43:02 +00:00
Antonio Ojea
391e4b58e2 Revert "added init to image-utils.sh"
This reverts commit 7951d7975e.
2024-04-24 13:42:38 +00:00
Kubernetes Prow Robot
5fe1e923df
Merge pull request #124498 from aroradaman/dummy-agnhost-bump
agnhost: update README
2024-04-24 05:10:09 -07:00
bells17
1c917aa463
component-helpers: Support structured and contextual logging (#120637) 2024-04-24 03:06:15 -07:00
John Riendeau
62191f637e
Bump base images for agnhost 2024-04-24 04:54:06 -05:00