Kevin Klues
155562dd2e
Fix bug in TopologyManager with merging hints when NUM_NUMA > 2
...
Before this fix, hint permutations such as:
permutation: [{11 true} {0101 true}]
Could result in merged hints of:
mergedHint: {01 true}
This was possible because both hints in the permutation container a "preferred"
allocation (i.e. the full set of NUMA nodes set in the affinity bitmask are
*required* to satisfy the allocation). With this in place, the simplified logic
we had simply kept the merged hint as preferred as well.
However, what we really want is to ensure that the merged hint is only
preferred if *true* alignment of all resources is possible (i.e. if all hints
in the permutation are preferred AND their affinities are exactly equal).
The only exception to this is if *no* topology information is provided by a
given hint provider. In this case, we assume alignment doesn't matter and only
consider the resources that actually have hints provided for them.
This changes the semantics of permutations of the form:
permutation: [{111 true} {011 true}]
To now result in the merged hint of:
mergedHint: {011 false}
Instead of:
mergedHint: {011 true}
This is arguably how it should always have been though (because a hint should
not be preferred if true alignment isn't possible), and two tests have had to
change to accomodate these new semantics.
This commit changes the merge function to implement the updated logic, adds a
test to verify it is functioning correctly, and updates the two tests mentioned
above to adjust to the new semantics.
Signed-off-by: Kevin Klues <kklues@nvidia.com>
2022-02-10 22:07:51 +00:00
Kubernetes Prow Robot
a3207872a3
Merge pull request #107481 from shu-mutou/deprecate-dashboard-addon
...
Remove dashboard cluster addon
2022-02-10 05:35:48 -08:00
Kubernetes Prow Robot
56273a6aa3
Merge pull request #108042 from MadhavJivrajani/cacher-cleanup
...
cacher: Minor cleanup and refactor of code and tests
2022-02-10 04:29:46 -08:00
Madhav Jivrajani
c3081b4875
cacher: Minor cleanup and refactor of code and tests
...
* Remove linter warnings.
* Cancel contexts to avoid leaks.
* Rename a few XXXThreadUnsafe to XXXLocked to
maintain consistency.
* A few are still called XXXThreadUnsafe mainly
because those are safe to be called from the
perspective that only one gorotuine will access
them - not really called under a lock.
Signed-off-by: Madhav Jivrajani <madhav.jiv@gmail.com>
2022-02-10 16:57:39 +05:30
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
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
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
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
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
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
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
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
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
Kubernetes Prow Robot
79dafeb80c
Merge pull request #107995 from dims/use-zip-instead-of-git-archive
...
Use zip instead of git-archive
2022-02-07 21:42:53 -08:00
Kubernetes Prow Robot
7bffb3b2ca
Merge pull request #106241 from jdnurme/cloud-provider-env-var
...
Added env variable for cloud-provider
2022-02-07 20:40:53 -08:00
kerthcet
8243167013
refactor unreserve_test
...
Signed-off-by: kerthcet <kerthcet@gmail.com>
2022-02-08 11:37:56 +08:00
Kubernetes Prow Robot
5cee90c305
Merge pull request #107992 from tkashem/flake-timeout
...
fix flake in TestTimeoutHeaders
2022-02-07 19:20:53 -08:00
Kensei Nakada
1ac9444c00
Change the wordings and set the log level
...
Co-authored-by: Alex Wang <453102040@qq.com>
2022-02-08 11:16:42 +09:00
Davanum Srinivas
45f30d8a10
use zip instead of git-archive
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2022-02-07 19:02:03 -05:00
Kubernetes Prow Robot
c2ba0a4908
Merge pull request #101028 from lobziik/vsphere-zones-with-secret-creds
...
Fixes zone/region labels setup and kubelet stucking on startup if credentials stored in secret for legacy vSphere cloudprovider.
2022-02-07 15:18:53 -08:00