Commit Graph

117207 Commits

Author SHA1 Message Date
Patrick Ohly
9e9a6cde4b test/integration/scheduler: fix data races
The plugins get called by scheduler goroutines. At least the polling seems to
be done concurrently and thus needs locking.

Locking the PreBindPlugin state is less obvious. It might be that the scheduler
is really done with the test pod, but that ordering doesn't seem to be enough
for the race detector. It's simpler to add mutex locking.
2023-05-17 17:10:09 +02:00
Humble Chirammal
b035c373db build latest sample-api-server for test/e2e
v1.17.0 has been built at present where this commit make use
of available latest version/tag for the build purpose.

Signed-off-by: Humble Chirammal <humble.devassy@gmail.com>
2023-05-17 19:51:48 +05:30
Kubernetes Prow Robot
bce37d089f
Merge pull request #118063 from humblec/test-images
remove glusterdynamic provisioner images reference from tests
2023-05-17 06:10:34 -07:00
Filip Křepinský
bafae5c076 rename err to lookupErr 2023-05-17 14:55:07 +02:00
Filip Křepinský
8b9cbe6202 fix false positive kubectl plugin unit tests
- test.args should be passed instead of the os.Args of the test framework
  to prevent simple invocation of kubectl without args that could
  manifest in false positive test runs
- plugin execution should have a different test path
- tests should invoke functioning kubectl commands instead of the mock
  ones to ensure the correct subcommand is executed without a failure
2023-05-17 14:52:00 +02:00
Jordan Liggitt
b9950b5192
Drop zeitgeist from tools go.mod 2023-05-17 08:37:53 -04:00
Humble Chirammal
36f0caf7ec remove GlusterFS references from test/e2e/* comments/descriptions
Signed-off-by: Humble Chirammal <humble.devassy@gmail.com>
2023-05-17 17:40:28 +05:30
Humble Chirammal
d83c3ce7ca make rbd and iscsi test images in parity with the test code
Signed-off-by: Humble Chirammal <humble.devassy@gmail.com>
2023-05-17 17:40:28 +05:30
Humble Chirammal
9de2846c72 remove glusterdynamic provisioner images reference from tests
GlusterFS code has been removed from the repo in v1.26 and this image
no longer required.

Signed-off-by: Humble Chirammal <humble.devassy@gmail.com>
2023-05-17 17:40:25 +05:30
Kubernetes Prow Robot
b950f7ffb6
Merge pull request #118027 from humblec/hack-install-etcd
etcd: Update version to 3.5.9
2023-05-17 04:52:33 -07:00
Piotr Betkier
763e7923fb e2e: replace ubuntu-slim with agnhost in hpa cm noExporterDeployment 2023-05-17 11:19:23 +02:00
SataQiu
261de704c2 kubeadm: fix a bug where the static pod changes detection logic is inconsistent with kubelet 2023-05-17 17:05:24 +08:00
carlory
666be79d67 legacy names of volume plugins have been gone a LONG time 2023-05-17 17:02:44 +08:00
Kubernetes Prow Robot
9f6f17b899
Merge pull request #117970 from kkkkun/replace_etcd_build_to_build.sh
replace etcd build to build.sh
2023-05-17 01:38:33 -07:00
kkkkun
8b4840aa37 clean up unsupport etcd version
Signed-off-by: kkkkun <scuzk373x@gmail.com>
2023-05-17 16:35:50 +08:00
Kubernetes Prow Robot
06bde4f689
Merge pull request #118024 from kerthcet/fix/perf-errors
[perf-test] Log the warning instead of reporting error
2023-05-17 00:16:33 -07:00
Benjamin Elder
e0ebac6c9c drop redundant NArg check when looping Args 2023-05-16 23:23:22 -07:00
Benjamin Elder
82c40e3697 drop redundant NArg check when looping Args 2023-05-16 23:12:37 -07:00
Benjamin Elder
829bcea763 remove vestigial BUILD file 2023-05-16 22:27:56 -07:00
kerthcet
0616d15712 Fix perf-test by increasing the error margin
Signed-off-by: kerthcet <kerthcet@gmail.com>
2023-05-17 12:14:06 +08:00
tao.yang
46ed70ecac Bump runc to v1.1.7
Signed-off-by: tao.yang <tao.yang@daocloud.io>
2023-05-17 10:52:12 +08:00
Humble Chirammal
51d79c4d6b e2e: use gomega.Expect instead of deprecated framework.Expect*
replace below functions:

 framework.ExpectEqual
 framework.ExpectNotEqual
 framework.ExpectError

Ref#115961

Signed-off-by: Humble Chirammal <humble.devassy@gmail.com>
2023-05-17 07:55:27 +05:30
Kubernetes Prow Robot
02f4d643ea
Merge pull request #118036 from skitt/docker-distribution-2.8.2
Bump docker/distribution to 2.8.2
2023-05-16 18:46:32 -07:00
Kubernetes Prow Robot
addf9d4778
Merge pull request #116973 from apelisse/add-client-to-typeconverter
managedfields: A few improvements which will make testing easier
2023-05-16 16:48:33 -07:00
Kubernetes Prow Robot
fb63090c9f
Merge pull request #118056 from liggitt/tracking-init
Initialize data if nil
2023-05-16 15:50:33 -07:00
Jordan Liggitt
1daf74d25c
Initialize data if nil 2023-05-16 17:51:26 -04:00
Kubernetes Prow Robot
bdbfbffef3
Merge pull request #117371 from smarterclayton/minimal_podmanager
kubelet: Don't reference the pod manager interface directly from components
2023-05-16 14:34:33 -07:00
Antoine Pelisse
b81cfb9cb8 Update vendor 2023-05-16 13:10:45 -07:00
Antoine Pelisse
15c5713015 managedfields: Remove gvk from SkipNonApplied
Let's remove the dependency on the GVK in SkipNonApplied internal
manager, since we can deduce the type from the given object.
2023-05-16 13:03:48 -07:00
Antoine Pelisse
b52e57c589 managedfields: Improve/strengthen version checking for Apply 2023-05-16 13:03:48 -07:00
Antoine Pelisse
559d12fcce managedfields: Create NewFakeFieldManager
And simplify how a lot of the fakes are created. Notably, the converter
was never really used to do anything so this is simplified.
2023-05-16 13:03:48 -07:00
Antoine Pelisse
45853e20ae openapi: Create client -> TypeConverter function
Allows creating a typeconverter from a client (i.e. by taking the data
of the client and formatting it so that one can create a type
converter).
2023-05-16 13:03:48 -07:00
Kubernetes Prow Robot
2f0c2e50d4
Merge pull request #117036 from haoruan/bugfix/warning-on-deprecated-annotations
emit warning on deprecated annotation volume.beta.kubernetes.io/storage-class
2023-05-16 11:59:37 -07:00
Stephen Heywood
45603efecb Create e2e test for PodEphemeralcontainers endpoints
e2e test validates the following 2 endpoints
- readCoreV1NamespacedPodEphemeralcontainers
- replaceCoreV1NamespacedPodEphemeralcontainers
2023-05-17 06:30:43 +12:00
Timo Furrer
ebaf49dbd7 Export DefaultServerUrlFor utility function
Signed-off-by: Timo Furrer <tuxtimo@gmail.com>
2023-05-16 19:20:07 +02:00
Kubernetes Prow Robot
3588d091ff
Merge pull request #117962 from humblec/gomega-equal
e2e: use gomega.Expect instead of framework.ExpectEqual in windows/*
2023-05-16 09:53:47 -07:00
Kubernetes Prow Robot
53772982be
Merge pull request #116829 from mengjiao-liu/contextual-logging-scheduler-plugin-volumezone
Migrated the volumezone scheduler plugin to use contextual logging
2023-05-16 09:53:35 -07:00
Johan Oskarsson
5519b89a28 Validate lock identity
Ensure that the lock identity is not empty. This can cause unexpected issues during leader election.
2023-05-16 09:41:18 -07:00
Kubernetes Prow Robot
54d2ced4d6
Merge pull request #117985 from howardjohn/patch-2
Fix comments on InformerFor
2023-05-16 08:11:48 -07:00
Kubernetes Prow Robot
d91fd5138e
Merge pull request #117753 from humblec/mitchelle
dependencies: update gh/mitchellh/go-wordwrap
2023-05-16 08:11:36 -07:00
Humble Chirammal
e3eb4bd0c5 updating dependencies.yaml for etcd v3.5.9 version
Signed-off-by: Humble Chirammal <humble.devassy@gmail.com>
2023-05-16 20:27:17 +05:30
Piotr Betkier
c99cf53a10 e2e: deflake hpa e2e custom metrics tests
a) add namespacing to metrics: fixes interference between `should scale up when one metric is missing (Pod and External metrics)` and `should not scale down when one metric is missing (Container Resource and External Metrics)` specs, cause of flakiness.

b) replaces deployments containing unused exporters (metrics ignored) with deployments without any exporters: potential fix for often hitting a rate-limit on creating metrics descriptors (429 errors), also adds clarity.

c) fixes metric types: some external metrics tests used non-average type while expecting the value to be constant regardless of the number of pods. However, queries resulting from metric specs don't filter by pods, so a sum of metrics for all the pods is the fetched metric value (https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough/#autoscaling-on-metrics-not-related-to-kubernetes-objects). Adding averaging back by the number of pods fixes a couple of specs where the tests were passing for the wrong reason (wanted d ifferent test conditions).
2023-05-16 16:46:00 +02:00
Humble Chirammal
247ea7fc78 use upstream etcd github path instead of redirecting one
In the installation script we use coreos/etcd path which redirect
to etcd-io/etcd. This commit replace the same.

Signed-off-by: Humble Chirammal <humble.devassy@gmail.com>
2023-05-16 20:11:03 +05:30
Humble Chirammal
6616e1f238 update etcd version in install.sh to 3.5.9
Signed-off-by: Humble Chirammal <humble.devassy@gmail.com>
2023-05-16 20:11:03 +05:30
Kubernetes Prow Robot
8d491e676a
Merge pull request #118018 from humblec/feature-gate-storage-removal
remove CSIStorageCapacity featuregate
2023-05-16 07:07:48 -07:00
Kubernetes Prow Robot
54dbb93388
Merge pull request #117999 from kkkkun/bump-etcd-image-3.5.9-0
etcd: Build image 3.5.9-0
2023-05-16 07:07:36 -07:00
Dan Winship
0e456dcf86 Clarify localhost nodeport comments/errors 2023-05-16 09:14:11 -04:00
Dan Winship
a744a186b6 Rename GetNodeAddresses to GetNodeIPs, return net.IP 2023-05-16 09:14:09 -04:00
Dan Winship
2ca215fd99 Add NodePortAddresses.MatchAll()
Rather than having GetNodeAddresses() return a special magic value
indicating that it matches all IPs, add a separate method to check
that. (And have GetNodeAddresses() just return the IPs as expected
instead.)
2023-05-16 09:09:24 -04:00
Kubernetes Prow Robot
2d742bb8ab
Merge pull request #118045 from Nordix/annotate-fix/adil
Changing annotate PrintFlags from annotate to annotated
2023-05-16 06:07:35 -07:00