Commit Graph

102856 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
202f775adb
Merge pull request #103608 from ipochi/imran/e2e-lock-contention
E2E test for kubelet exit-on-lock-contention
2021-08-11 02:08:46 -07:00
Kubernetes Prow Robot
ae79825914
Merge pull request #104271 from dims/warn-if-docker-buildx-is-not-available
Warn if docker buildx is not available
2021-08-11 00:55:03 -07:00
Kubernetes Prow Robot
a21a328a1a
Merge pull request #104116 from saschagrunert/etcd-buildx
Use docker buildx for etcd image
2021-08-11 00:54:49 -07:00
Kubernetes Prow Robot
cc1b8e237e
Merge pull request #101926 from bhcleek/errors/code-check
check APIStatus.Code in Is* family of functions
2021-08-10 23:24:46 -07:00
Kubernetes Prow Robot
5a732dcfe1
Merge pull request #104279 from liggitt/add-staging-golang-license
Copy golang license to staging copies
2021-08-10 18:48:58 -07:00
Kubernetes Prow Robot
01f83db119
Merge pull request #104258 from coderanger/patch-3
Typo in a comment.
2021-08-10 18:48:46 -07:00
Kubernetes Prow Robot
6b7c0cb386
Merge pull request #104048 from lizhuqi/fix-npd-test
Remove AUFSUmountHung from NPD test
2021-08-10 17:40:46 -07:00
Kubernetes Prow Robot
938d31e273
Merge pull request #101257 from tkashem/graceful-termintaion
apiserver: graceful termination with new option shutdown-send-retry-after
2021-08-10 15:08:40 -07:00
Jordan Liggitt
c4ecdad570 Copy golang license to staging copies 2021-08-10 17:37:28 -04:00
Kubernetes Prow Robot
24a09c3ade
Merge pull request #104268 from rphillips/fixes_terminating_pod_race
kubelet: fix sandbox creation error suppression when pods are quickly deleted
2021-08-10 13:02:52 -07:00
Kubernetes Prow Robot
40c9066054
Merge pull request #103027 from Haleygo/feature/add-kubeadm-join-dryrun
kubeadm: support kubeadm join --dry-run
2021-08-10 13:02:39 -07:00
Abu Kashem
3182b69e97
apiserver: add a new mode for graceful termination
add a new mode for graceful termination with the new server run option
'shutdown-send-retry-after'
- shutdown-send-retry-after=true: we initiate shutdown of the
  HTTP Server when all in-flight request(s) have been drained. during
  this window all incoming requests are rejected with status code
  429 and the following response headers:
    - 'Retry-After: N' - client should retry after N seconds
    - 'Connection: close' - tear down the TCP connection
- shutdown-send-retry-after=false: we initiate shutdown of the
  HTTP Server as soon as shutdown-delay-duration has elapsed. This
  is in keeping with the current behavior.
2021-08-10 15:53:37 -04:00
Abu Kashem
e838173306
apiserver: rename test variables 2021-08-10 15:50:08 -04:00
Kubernetes Prow Robot
48da959dbf
Merge pull request #104248 from liggitt/drop-beta
Drop dead beta storage and validation code
2021-08-10 11:52:40 -07:00
Davanum Srinivas
f63dbd481f
Warn if docker buildx is not available
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2021-08-10 14:42:11 -04:00
Kubernetes Prow Robot
95ff56c201
Merge pull request #104002 from MikeSpreitzer/refactor-counting
Refactor goroutine counting
2021-08-10 10:05:17 -07:00
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
Noah Kantrowitz
86c6e25016
Typo in a comment. 2021-08-09 21:21:45 -07: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
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
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
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