Commit Graph

107932 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
3b4a9cdfff
Merge pull request #108007 from endocrimes/dani/cm-remove-docker
cm: Remove legacy docker references
2022-02-10 03:23:47 -08:00
Gunju Kim
eb4cd9ab4e
Check taint/toleration before accepting pods, except for static pods 2022-02-10 19:39:26 +09:00
Kubernetes Prow Robot
518a3c2f70
Merge pull request #107108 from linxiulei/fix_pid
Read number of running processes from /proc/loadavg.
2022-02-10 01:15:47 -08:00
Madhav Jivrajani
412626f402 resttest: Modify TestContext to have namespace in context
Previously, if a request is clusterscoped, the context that
was returned has no namespace, ideally the context should
contain a metav1.NamespaceNone as the namespace even for
cluster scoped requests.

Signed-off-by: Madhav Jivrajani <madhav.jiv@gmail.com>
2022-02-10 12:54:15 +05:30
Mengjiao Liu
b3444cd7e8 Remove feature gate SetHostnameAsFQDN 2022-02-10 15:16:01 +08:00
Shu Muto
f9954d02c4 Delete test/e2e/ui/ 2022-02-10 14:48:02 +09:00
Kubernetes Prow Robot
40c2d04946
Merge pull request #107112 from linxiulei/fix_pidmax
Consider threads-max when deciding MaxPID.
2022-02-09 20:49:45 -08:00
Kubernetes Prow Robot
71977b6f07
Merge pull request #107691 from SubhasmitaSw/issue_31393
Removed references to Docker in Kubernetes API #31393
2022-02-09 18:33:46 -08:00
Kante
62eb70c1b3
reuse InformerFactory in scheduler tests (#107835)
* reuse informer in scheduler tests

Signed-off-by: kerthcet <kerthcet@gmail.com>

* reduce construct two informers

Signed-off-by: kerthcet <kerthcet@gmail.com>

* instantiate formerfacotry error

Signed-off-by: kerthcet <kerthcet@gmail.com>
2022-02-09 16:53:58 -08:00
Kubernetes Prow Robot
0dcd6eaa0d
Merge pull request #103934 from boenn/tainttoleration
De-duplicate predicate (known as filter now) logic shared in kubelet and scheduler
2022-02-09 16:53:46 -08:00
Marcus Puckett
e7e2bfde16 Specify empty IngresClassName as <none> to more clearly specify it is empty 2022-02-09 16:28:16 -08:00
Kubernetes Prow Robot
cfb2219ded
Merge pull request #107175 from roycaihw/doc/webhook-rule-validation
Fix examples of admission registration rules that contain wildcards
2022-02-09 15:35:44 -08:00
Kubernetes Prow Robot
e74c42aaf2
Merge pull request #107880 from liggitt/kubectl-auth-token
Add command to request a bound service account token
2022-02-09 14:10:01 -08:00
Kubernetes Prow Robot
6ab748eeec
Merge pull request #107698 from tallclair/psa-overrides
[PodSecurity] Deduplicate errors between baseline & restricted checks
2022-02-09 14:09:49 -08:00
David Eads
e378fd2bae update the --runtime-config handling to ensure that user preferences always take priority over hardcoded preferences 2022-02-09 16:00:09 -05:00
Kubernetes Prow Robot
4c300ff5bf
Merge pull request #107970 from liggitt/validations-round-trip
Fix serialization of x-kubernetes-validations OpenAPI extension
2022-02-09 12:08:03 -08:00
Jordan Liggitt
fca9b1d9fc Add command to request a bound service account token 2022-02-09 14:05:53 -05:00
Jordan Liggitt
42c93b058e Add service account token request permissions to edit and admin clusterroles 2022-02-09 14:05:53 -05:00
Jordan Liggitt
19d71bb5d5 Validate and populate metadata fields in token request 2022-02-09 14:05:53 -05:00
SubhasmitaSw
2d52a9f82a removed references to Docker in Kubernetes API
Signed-off-by: Davanum Srinivas <davanum@gmail.com>

Run the hack/update* commands to regenerate files

Signed-off-by: Davanum Srinivas <davanum@gmail.com>

Update staging/src/k8s.io/api/core/v1/types.go

Co-authored-by: Jordan Liggitt <jordan@liggitt.net>

Update staging/src/k8s.io/api/core/v1/types.go

Co-authored-by: Jordan Liggitt <jordan@liggitt.net>

more files that needed updates

Signed-off-by: Davanum Srinivas <davanum@gmail.com>

removed references to Docker in Kubernetes API
2022-02-10 00:09:29 +05:30
Jordan Liggitt
5efe1e648b Use serializable struct for x-kubernetes-validations in openapi 2022-02-09 12:58:01 -05:00
Kubernetes Prow Robot
3ba7d48093
Merge pull request #108002 from SataQiu/fix-dryrun-20220208
kubeadm: fix the bug that 'kubeadm init --dry-run --upload-certs' command failed with 'secret not found' error
2022-02-09 09:42:19 -08:00
Antoine Pelisse
8a0fba833c Update ManagedFields Time description to be more accurate 2022-02-09 09:32:29 -08:00
Tim Allclair
928448dd36 Add overrides for hostpath, seccomp, and capabilities checks 2022-02-09 09:23:59 -08:00
Tim Allclair
305e0b1210 Allow restricted checks to override (supercede) baseline checks 2022-02-09 09:23:59 -08:00
Lubomir I. Ivanov
66a18df14c kubeadm: switch UnversionedKubeletConfigMap to true
- Graduate the feature gate to Beta and enable it by default.
- Pre-set the default value for UnversionedKubeletConfigMap
to "true" in test/e2e_kubeadm.
- Fix a couple of typos in "tolerate" introduced in the PR that
added the FG in 1.23.
2022-02-09 18:33:27 +02:00
haoyun
81b357295c feat: add container name when violate quota constraints
Signed-off-by: haoyun <hy352144278@gmail.com>
Co-authored-by: chenwen  <wen.chen@daocloud.io>
2022-02-09 19:17:44 +08:00
He Xiaoxi
ae9f117387 Remove tolerate-unready-endpoints annotation
Remove `tolerate-unready-endpoints` annotation in Service deprecated

from 1.11, use `Service.spec.publishNotReadyAddresses` instead.

Signed-off-by: He Xiaoxi <tossmilestone@gmail.com>
2022-02-09 17:17:29 +08:00
SataQiu
2c5aef9036 kubeadm: fix the bug that 'kubeadm init --dry-run --upload-certs' command failed with 'secret not found' error 2022-02-09 12:58:02 +08:00
Kubernetes Prow Robot
2047936f3f
Merge pull request #107552 from aojea/e2e_parse_misalignment
e2e test for CVE-2021-29923
2022-02-08 19:10:18 -08:00
Kubernetes Prow Robot
0d46aee44e
Merge pull request #107296 from cezarygerard/smart-ig-ilb
GCE L4 load balancer: enable migration of Instance Group management out of K/K.
2022-02-08 17:10:17 -08:00
Kubernetes Prow Robot
97e20b4ecb
Merge pull request #108001 from denkensk/check-activeq-len
check activeQ.Len() before Pop()
2022-02-08 16:06:28 -08:00
Kubernetes Prow Robot
0e31414f3e
Merge pull request #107974 from sanposhiho/log-extender-error
Add log for the error extender returns
2022-02-08 16:06:16 -08:00
Kubernetes Prow Robot
df53ae8bbd
Merge pull request #107950 from wojtek-t/delete_collection_timeout
Verify that DeleteCollection respects context cancellation
2022-02-08 14:28:46 -08:00
Kubernetes Prow Robot
36431ae396
Merge pull request #107770 from brianpursley/timeout-test-2
Fix wrong status code in unit test error messages and replace deprecated function call
2022-02-08 14:28:35 -08:00
Kubernetes Prow Robot
ab13c85316
Merge pull request #107983 from hxietkg/hxietkg/wget-for-windows
Remove option 'T' from wget on Windows
2022-02-08 12:43:01 -08:00
Kubernetes Prow Robot
8d01b02c60
Merge pull request #107096 from hakman/remove_non-masquerade-cidr
Remove deprecated flag --non-masquerade-cidr in kubelet
2022-02-08 12:42:50 -08:00
Kubernetes Prow Robot
24e5d1fdb7
Merge pull request #107432 from denkensk/graduate-nonpreemptingpriority-to-ga
Graduate NonPreemptingPriority to GA
2022-02-08 11:05:03 -08:00
Kubernetes Prow Robot
20a2a4c1af
Merge pull request #107834 from SataQiu/fix-applyconfiguration
code-generator: fix the bug that ApplyConfiguration constructor missing WithKind/WithAPIVersion methods
2022-02-08 09:59:14 -08:00
Kubernetes Prow Robot
6a5b3da1d8
Merge pull request #107236 from cyclinder/fix_bug_WaitForAttach
GCEPD: fix incorrect return value in WaitForAttach
2022-02-08 09:59:02 -08:00
Kubernetes Prow Robot
eda02deda2
Merge pull request #107785 from chendave/warn
kubeadm: warn only when config value is different with default value
2022-02-08 08:18:55 -08:00
Danielle Lancashire
3630328fd9 eviction: Deflake TestStart
TestStart was previously flaky. In approx 100_000 local runs, it failed
about 70% of the time, and has been mentioned as a flaky unit test in
the past.

This flake was due to a race condition with the logic as written and the
go scheduler. UpdateThreshold calls `notifier.Start(events)` in a new Go
Routine, which is not guarunteed to be called immediately.

This meant that if `m.Start()` was called before `notifier.Start()`, the
test would fail, as the notifier would not have been started before the
4 events were processed and lock released.

Here, we update the test to more closely match the intended application
behaviour, and have events passed to the channel when `Start` is called
on the notifier.

This ensures that -Start gets called and additionally validates
that the correct channel is provided to the notifier.

Stop was never called previously, as it only gets called on a subsequent
call to UpdateThreshold. `AnyTimes()` hid that this did not occur.
2022-02-08 17:03:44 +01:00
Danielle Lancashire
c198062da4 cm: Remove legacy docker references
Dockershim and built-in Docker support are gone. Cleans up dead code
references to them.
2022-02-08 16:25:04 +01:00
Kubernetes Prow Robot
834349ed19
Merge pull request #107812 from diyi0926/add-field-path-back-to-event-logs
add fieldPath back to event logs
2022-02-08 07:12:54 -08:00
Kubernetes Prow Robot
5340ae0bae
Merge pull request #105483 from MadhavJivrajani/watch-cache-contention
cacher: Use watchCacheInterval to reduce lock contention
2022-02-08 03:56:55 -08:00
Jorik Jonker
27b8f13763 kubelet: expose OOM metrics
cAdvisor has code to expose OOM metrics since 0.40.0, but this was not
included in Kubelet so far. This commit enables it.

Signed-off-by: Jorik Jonker <jorik.jonker@eu.equinix.com>
2022-02-08 12:24:25 +01:00
Kubernetes Prow Robot
6ef0f3f620
Merge pull request #103642 from kerthcet/refactor/unreserve_test
refactor unreserve test
2022-02-08 02:36:53 -08:00
Alex Wang
541907334e graduate nonpreemptingpriority to ga 2022-02-08 18:11:23 +08:00
Alex Wang
ca50e459b0 check activeQ len before pop 2022-02-08 18:05:05 +08:00
Kubernetes Prow Robot
131d145b7d
Merge pull request #107618 from pohly/log-flush-frequency-config-type
FlushFrequency config type
2022-02-08 01:00:54 -08:00