Commit Graph

102972 Commits

Author SHA1 Message Date
Haleygo
95e000fd65 support kubeadm join dry-run 2021-08-10 23:43:54 +08:00
Mike Spreitzer
1db36ae3b3 Refactor goroutine counting
Add comment outlining TestContextCancel.

Stop calling `t.Errorf` from wrong goroutine.

Package up queueNoteFn expectation checking.

Add counting of goroutine in req1 exec fn.

Remove unnecessary assignment to `_`.

Make TestContextCancel wait on fake clock, to insulate timing check
from scheduler noise.

Factor goroutine counting out of queueset.go, into queueset_test.go,
where it matters.

Refactor promise: Use a simple channel-based implementation for normal
code, a mutex-based one for testing code.

Took all the panics out of queueset.go

Shrink the timeouts in promise tests to 1 second.
2021-08-10 10:37:53 -04:00
Ryan Phillips
30e9a420c4 kubelet: fix sandbox creation error suppression when pods are quickly deleted 2021-08-10 08:55:25 -05:00
Kubernetes Prow Robot
bb793e8d4b
Merge pull request #104245 from m-Bilal/fix-buildx-dependency-documentation
Fixes 104067; Explicitly states Docker CLI plugin buildx required for building using Docker
2021-08-10 05:55:18 -07:00
Kubernetes Prow Robot
c2f982315a
Merge pull request #103905 from dixudx/cleanup-uninitialized
cleanup description on deprecated include-uninitialized flag
2021-08-10 04:43:16 -07:00
Kubernetes Prow Robot
61b6233235
Merge pull request #104148 from markusthoemmes/structured-logging-2
Add the pod field to all volumeToMount info level logs
2021-08-10 03:19:18 -07:00
Kubernetes Prow Robot
e96652ea74
Merge pull request #104015 from neolit123/1.23-use-dynamic-versions
kubeadm: dynamically populate the current/minimum k8s versions
2021-08-09 21:59:17 -07:00
Linus Arver
1ea65e6213 remove listx from OWNERS_ALIASES
Removing myself for now as I navigate the transition to the Prow team.
2021-08-09 21:44:23 -07:00
Noah Kantrowitz
86c6e25016
Typo in a comment. 2021-08-09 21:21:45 -07:00
Mauricio Poppe
b9b76dba6e Update the unit tests to handle mountFlags 2021-08-09 23:46:50 +00:00
Kubernetes Prow Robot
4f50f99cc6
Merge pull request #103685 from mengjiao-liu/remove-ServiceAccountIssuerDiscovery-featuregate
Remove ServiceAccountIssuerDiscovery feature gate
2021-08-09 16:15:17 -07:00
Mauricio Poppe
338f8ba0bf Add missing interface method in mount_unsupported.go 2021-08-09 22:43:14 +00:00
Mauricio Poppe
296b30f143 Pass additional flags to subpath mount to avoid flakes in certain conditions 2021-08-09 22:15:35 +00:00
Kubernetes Prow Robot
a977c5f064
Merge pull request #104243 from pohly/pin-dependencies-to-fork
pin-dependencies.sh: support switching repos
2021-08-09 15:01:27 -07:00
Jordan Liggitt
3b0c898082 Regenerate openapi
Dropped definitions for alpha types which are no longer served
2021-08-09 17:04:31 -04:00
Jordan Liggitt
f98ff65564 Drop DefaultGarbageCollectionPolicy checks for legacy apps REST API versions 2021-08-09 17:04:31 -04:00
Jordan Liggitt
97c5b8de9a Drop legacy validation logic for CRD API 2021-08-09 17:04:30 -04:00
Kubernetes Prow Robot
04248afb26
Merge pull request #103805 from Huang-Wei/preempt-or-del-waiting-pod
sched: retry unscheduled pod immediately after a waiting pod gets preempted or deleted
2021-08-09 12:01:10 -07:00
Kubernetes Prow Robot
e4ca656208
Merge pull request #104224 from logicalhan/watch-conformance
remove unnecessary waits from watch conformance test
2021-08-09 10:47:09 -07:00
Lubomir I. Ivanov
e3538edc22 kubeadm: update unit tests to support dynamic version updates
Tests under /app and /test would fail if the current/minimum k8s version
is dynamically populated from the version in the kubeadm binary.
Adapt the tests to support that.
2021-08-09 19:42:08 +03:00
Lubomir I. Ivanov
207ffa7bdc kubeadm: dynamically populate the current/minimum k8s versions
Kubeadm requires manual version updates of its current supported k8s
control plane version and minimally supported k8s control plane and
kubelet versions every release cycle.

To avoid that, in constants.go:
- Add the helper function getSkewedKubernetesVersion() that can be
used to retrieve a MAJOR.(MINOR+n).0 version of k8s. It currently
uses the kubeadm version populated in "component-base/version" during
the kubeadm build process.
- Use the function to set existing version constants (variables).

Update util/config/common.go#NormalizeKubernetesVersion() to
tolerate the case where a k8s version in the ClusterConfiguration
is too old for the kubeadm binary to use during code freeze.

Include unit tests for the new utilities.
2021-08-09 19:42:08 +03:00
Jordan Liggitt
1ceb118e3c Drop legacy status logic for volumeattachments API 2021-08-09 12:38:29 -04:00
Jordan Liggitt
c702dd4394 Drop legacy validation logic for networking API 2021-08-09 12:37:45 -04:00
Jordan Liggitt
b1d344db44 Drop legacy validation logic for certificates API 2021-08-09 12:37:34 -04:00
Jordan Liggitt
befffd1565 Drop legacy validation logic for admission registration 2021-08-09 12:37:18 -04:00
Kubernetes Prow Robot
a7af9f6e0e
Merge pull request #101475 from ash2k/ash2k/stop-timer
Stop timer and correctly drain it
2021-08-09 09:35:31 -07:00
m-Bilal
8fd371353c Fixes 104067; Explicitly states Docker CLI plugin buildx required for building using Docker 2021-08-09 21:52:46 +05:30
Jordan Liggitt
39a1293cbc Drop beta REST APIs removed in 1.22 2021-08-09 11:10:16 -04:00
Kubernetes Prow Robot
4b4d12f8a6
Merge pull request #102913 from pacoxu/upgrade-promotheus-common
upgrade prometheus/common to v0.28.0
2021-08-09 08:03:31 -07:00
Patrick Ohly
808659cc42 pin-dependencies.sh: support switching repos
Sometimes it is useful to fork a dependency in a different repo and
then use that forked code in Kubernetes. Normally one would do `go mod
edit -replace ...=/local/path` but that has drawbacks:

- repos under staging are not updated
- sharing the modified Kubernetes with others is harder, for example
  in a WIP or RFC PR

The revised pin-dependencies.sh supports this with an optional
=<replacement> part in the dependency parameter.

Determining the revision upfront with `go mod download` also makes the
script simpler.
2021-08-09 16:54:30 +02:00
Paco Xu
768d69a423 add 'projects/' suffix if this library is used with an older version of the google api library
Signed-off-by: Paco Xu <paco.xu@daocloud.io>
2021-08-09 21:58:28 +08:00
Kubernetes Prow Robot
6a043332be
Merge pull request #103979 from cynepco3hahue/save_admitted_pods
Do not clear state of pods pending admission for CPU/Memory/Device manager
2021-08-09 05:27:31 -07:00
raymonder jin
cdc225f297
bandwith --> bandwidth 2021-08-09 20:24:47 +08:00
Imran Pochi
2c2661a411 e2e test: lock-file and exit-on-lock-contention
This commit adds an e2e test for the kubelet flags `--lock-file` and
`exit-on-lock-contention`. Eventually we would like to move them to the
kubelet configuration file rather than flags.

This test is based on the premise that whenever there is a lock
contention of the lock file (e.g. /var/run/kubelet.lock), the running
kubelet must terminate and the waiting for the lock on the lock file to
be released before starting again.

In this test we simulate that behaviour of a file contention. The test
would try to acquire the lock on the lock file.

Success of the test is determined kubelet health check when the lock is
acquired by the test and passes when the lock on the lock file is
released.

Signed-off-by: Imran Pochi <imran@kinvolk.io>
2021-08-09 15:27:54 +05:30
Mengjiao Liu
5eae896d71 Remove AllowInsecureBackendProxy feature gate 2021-08-09 17:35:43 +08:00
Kubernetes Prow Robot
4023eb77a3
Merge pull request #104212 from MikeSpreitzer/event-clock-cleanup2
Some cleanup of the package for event clocks
2021-08-09 00:29:31 -07:00
Kubernetes Prow Robot
78067ccfe3
Merge pull request #103955 from eddiezane/ez/fix-kubectl-version-test
Fix kubectl version unit test
2021-08-08 18:15:30 -07:00
Artyom Lukianov
73a5cce3e6 device manager: do not clean admitted pods from the state
Signed-off-by: Artyom Lukianov <alukiano@redhat.com>
2021-08-08 16:46:06 +03:00
Artyom Lukianov
93a237abd8 memory manager: do not clean admitted pods from the state
Signed-off-by: Artyom Lukianov <alukiano@redhat.com>
2021-08-08 16:46:06 +03:00
Artyom Lukianov
66babd1a90 cpu manager: do not clean admitted pods from the state
Signed-off-by: Artyom Lukianov <alukiano@redhat.com>
2021-08-08 16:46:06 +03:00
Kubernetes Prow Robot
970b85c43c
Merge pull request #104226 from justaugustus/go115
staging/publishing: Set go1.15 version to go1.15.15
2021-08-08 03:51:30 -07:00
Stephen Augustus
85d83ebd28
staging/publishing: Set go1.15 version to go1.15.15
Signed-off-by: Stephen Augustus <foo@auggie.dev>
2021-08-08 00:53:30 -04:00
Han Kang
619e38141b remove unnecessary waits from watch conformance test
Change-Id: Ic0eb4197ac4eeaf67a6d9c64c3f04a0d50bd5b03
2021-08-07 15:55:33 -07:00
Kubernetes Prow Robot
e2e3c2d01c
Merge pull request #104142 from mengjiao-liu/update-debian-setcap-bump
Update debian, debian-iptables, setcap images to pick up CVE-2021-33910 fixes
2021-08-07 07:13:29 -07:00
Kubernetes Prow Robot
fa6c221579
Merge pull request #104214 from seans3/dynamic-link-kubectl-fix
Fixes flaky GKE kubectl test
2021-08-07 05:01:29 -07:00
Sean Sullivan
1ce594b7ee Fixes flaky GKE kubectl test 2021-08-06 22:31:55 -07:00
Mike Spreitzer
80ca6a4ae6 Some cleanup of the package for event clocks
Rename from `clock` to `eventclock`.

Simplify by removing the prohibition on an EventFunc suspending and
resuming activity.

Remove "EventClock" from names to avoid stuttering.

Start to consolidate test code under fairqueuing/testing/.
2021-08-07 00:07:31 -04:00
Kubernetes Prow Robot
35773a47b2
Merge pull request #103886 from prameshj/ilbupdate
Allow non-subsetting ILBs to update when the feature is enabled.
2021-08-06 20:53:30 -07:00
Wei Huang
dc079acc2b
sched: retry unschedule pods immediately after a waiting pod's deletion 2021-08-06 19:08:37 -07:00
Mengjiao Liu
4f1b1d72e3 Update setcap image to buster-v2.0.4 2021-08-07 09:49:18 +08:00