Commit Graph

102871 Commits

Author SHA1 Message Date
Patrick Ohly
11ed96baf5 generated swagger docs 2021-08-11 15:22:13 +02:00
Patrick Ohly
dfaeacb51f CSIDriver: allow "StorageCapacity" to be modified
When originally introduced, the field was made immutable to be
consistent with the other fields. But in practice allowing it to be
toggled makes more sense, in particular when considering the rollout
of a CSI driver (let it run without using the published
CSIStorageCapacity object, then flip the field, or upgrading from a
driver without support to one which supports it).

The only consumer of this field, the kube-scheduler, can handle
mutation without problems because it always consults the informer
cache to get the current value.
2021-08-11 15:10:30 +02:00
Kubernetes Prow Robot
7dd4f1742f
Merge pull request #104296 from claudiubelu/test-images/automate-agnhost-binary-version
test images: Simplifies the agnhost binary version
2021-08-11 04:36:47 -07:00
Kubernetes Prow Robot
07fe9f0192
Merge pull request #104293 from x13n/master
Update version of Cluster Autoscaler to 1.22.0
2021-08-11 03:20:47 -07:00
Claudiu Belu
94ac896269 test images: Simplifies the agnhost binary version
Currently, whenever agnhost/VERSION is bumped, the version in
agnhost/agnhost.go has to be bumped as well. This is also verified
on presubmit (build/dependencies.yaml).

This means that whenever we need to bump the agnhost image version,
someone has to approve the build/dependencies.yaml, which is not as
easy.

This commit removes the need for this check by automatically setting
the Version inside agnhost.go at build time, simplifying the process.
2021-08-11 09:12:03 +00:00
Kubernetes Prow Robot
34d1d2a4b9
Merge pull request #104278 from andrewsykim/fix-feature-gate-version
Fix documented version for DisableKubeletCloudCredentialProviders feature gate
2021-08-11 02:09:22 -07:00
Kubernetes Prow Robot
57e9525e96
Merge pull request #104259 from listx/master
remove listx from OWNERS_ALIASES
2021-08-11 02:09:10 -07:00
Kubernetes Prow Robot
3ca0145f20
Merge pull request #104253 from mauriciopoppe/subpath-additional-mount-flag
Pass additional flags to subpath mount to avoid flakes in certain conditions
2021-08-11 02:08:58 -07:00
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
Daniel Kłobuszewski
1181421112 Update version of Cluster Autoscaler to 1.22.0
Release notes: https://github.com/kubernetes/autoscaler/releases/tag/cluster-autoscaler-1.22.0
2021-08-11 09:58:25 +02: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
Mauricio Poppe
08bec6da0f Keep MakeMountArgSensitive and add a new signature that receives flags 2021-08-11 00:39:01 +00: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
Andrew Sy Kim
0379c8f96a Fix documented version for DisableKubeletCloudCredentialProviders feature gate
Signed-off-by: Andrew Sy Kim <kim.andrewsy@gmail.com>
2021-08-10 17:24:45 -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
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