Commit Graph

87668 Commits

Author SHA1 Message Date
nolancon
adfd11f38f Make iterateAllProviderTopologyHints generic:
- Remove policy parameters to make this function generic.
- Move function out of individual policies and into policy.go
2020-01-16 08:13:06 +00:00
nolancon
e43f0a5293 Reinstate canAdmitPodResult in policy_none:
This is to keep consistency with the other policies.
This change may be made across all policies in a future PR, but removing it
from the scope of this PR for now.
2020-01-16 08:13:05 +00:00
nolancon
4cc5b9e46c Edit hints returned from policies and unit tests:
- Best Effort Policy: Return hint with nil affinity as opposed to
defaultAffinity when provider has no preference for NUMA affinty or no
possible NUMA affinities.
- Single NUMA Node Policy: Remove defaultHint from mergeProvidersHints.
Instead return appropriate TopologyHint where required.
- Update unit tests to reflect changes. Some test cases moved into
individual policy test functions due to differing returned affinties
per policy.
2020-01-16 08:13:05 +00:00
nolancon
e3d0c9397f Updates to single-numa-node policy:
- Remove getHintMatch method.
- Replace with simplified versions of mergePermutation and
iterateAllProviderTopologyHints methods - as used in best-effort.
- Remove getHintMatch unit tests.
2020-01-16 08:13:05 +00:00
nolancon
b5ca4989e3 Update unit tests:
- Update filterHints test to reflect changes in previous commit.
- Some common test cases achieve differing expected results based on
policy due to independent merge strategies. These cases are moved into
individual policy based test functions.
2020-01-16 08:13:05 +00:00
nolancon
17d615bca2 Update filterHints:
- Only append valid preferred-true hints to filtered
- Return true if allResourceHints only consist of
nil-affinity/preferred-true hints: {nil true}, update defaultHint
preference accordingly.
2020-01-16 08:13:05 +00:00
Adrian Chiris
9f21f49493 Additional unit tests for Topology Manager methods 2020-01-16 08:13:05 +00:00
Adrian Chiris
f886d2a832 Update single-numa-node policy unit tests 2020-01-16 08:13:05 +00:00
Adrian Chiris
2825a7be1a Add new functionality for single-numa-node policy:
Explanation taken from original commit:
- Change the current method of finding the best hint.
  Instead of going over all permutations, sort the hints and find
  the narrowest hint common to all resources.
- Break out early when merging to a preferred hint is not possible
2020-01-16 08:13:05 +00:00
Adrian Chiris
5ce2ea2773 Return defaultAffinity from PolicyBestEffort:
Now that PolicySingleNUMANode is not considered here, return
defaultAffinity as was the original case before previous bug fix
2020-01-16 08:13:05 +00:00
Adrian Chiris
eda1521562 Make mergeProviderHints policy-specific:
- Remove need to pass policy and numaNodes as arguments
- Remove PolicySingleNUMANode special case check in policy_best_effort
- Add mergeProviderHints base to policy_single_numa_node for upcoming
commit
2020-01-16 08:13:05 +00:00
Adrian Chiris
dc36924c37 Update policy_none removing canAdmitPodResult
Update unit tests for none_policy
Add Name test for policy_restricted
2020-01-16 08:13:05 +00:00
Adrian Chiris
cf8b098dda Refactor policy-best-effort
- Modularize code with mergePermutation method
2020-01-16 08:13:05 +00:00
Sascha Grunert
278717bc57
Fix ineffectual assignment to CPUSets
Signed-off-by: Sascha Grunert <sgrunert@suse.com>
2020-01-16 08:57:42 +01:00
Guangwen Feng
e2e5bf5e0b Fix golint warning for pkg/util/procfs/procfs_linux.go
Signed-off-by: Guangwen Feng <fenggw-fnst@cn.fujitsu.com>
2020-01-16 15:16:47 +08:00
tanjunchen
1db3f45dc5 test/e2e/framework/rc/:refactor function ByNameContainer 2020-01-16 13:49:02 +08:00
Kubernetes Prow Robot
f437ff75d4
Merge pull request #87254 from egernst/lame-typo-fix
simple typo fix
2020-01-15 21:21:57 -08:00
Kubernetes Prow Robot
550034022f
Merge pull request #87238 from yuzhiquan/patch-scheduler
cleanup(scheduler): remove unused function, remove duplicate comment
2020-01-15 21:21:46 -08:00
Kubernetes Prow Robot
47475c69d1
Merge pull request #87181 from tanjunchen/add-comment-hack-update
add comment in hack/update-*.sh
2020-01-15 21:21:38 -08:00
Kubernetes Prow Robot
fd7c857da7
Merge pull request #87175 from YuikoTakada/move_skip_e2e_cloud
use e2eskipper package in test/e2e/cloud
2020-01-15 21:21:26 -08:00
Kubernetes Prow Robot
ca16ebfa49
Merge pull request #87106 from ialidzhikov/enh/golang@1.13.6
Update to golang@1.13.6
2020-01-15 21:21:15 -08:00
Kubernetes Prow Robot
3a9df0eab3
Merge pull request #87062 from YuikoTakada/move_skip_e2e_auth
Use e2eskipper package in test/e2e/auth
2020-01-15 21:21:01 -08:00
Kubernetes Prow Robot
7ffa2b9c46
Merge pull request #87042 from oomichi/e2e-alias
Add import-aliases check of e2e sub framework
2020-01-15 21:20:48 -08:00
Kubernetes Prow Robot
d9bf22f8f7
Merge pull request #85281 from RainbowMango/pr_add_metrics_flag_to_controller_manager
Allow show hidden metrics in kube-controller-manager
2020-01-15 21:20:34 -08:00
Jin Hase
e1eabf8576 Add comments in several hack/verify-*.sh 2020-01-16 13:54:58 +09:00
tanjunchen
69461d26d8 move function GetKubemarkMasterComponentResoureUsage 2020-01-16 12:35:39 +08:00
Kubernetes Prow Robot
2b6d875504
Merge pull request #87192 from notpad/inte_test
Add integration test for NodeResourceLimits plugin
2020-01-15 19:04:35 -08:00
Kubernetes Prow Robot
2cbd474597
Merge pull request #86400 from Huang-Wei/fix-flaky-preemption-e2e
Fix a flaky scheduler preemption e2e
2020-01-15 19:04:22 -08:00
YuikoTakada
aa2691eeac Fix static check failures in test/e2e/instrumentation/monitoring 2020-01-16 02:42:07 +00:00
tanjunchen
0c77101b90 add README.md in hack/ 2020-01-16 10:12:18 +08:00
tanjunchen
b2f76cc780 add comment in hack/update-*.sh 2020-01-16 10:05:49 +08:00
yuzhiquan
0e81e39465 cleanup(scheduler): remove unused function, remove duplicate comment, implement interface
update bazel
2020-01-16 09:07:09 +08:00
Kubernetes Prow Robot
5d1c301610
Merge pull request #87158 from dims/pick-closest-tags-for-a-few-packages
Pick closest tags for a few packages and avoid random SHA
2020-01-15 16:40:22 -08:00
Kubernetes Prow Robot
82c9e5c814
Merge pull request #87217 from prameshj/patch-helper
Add PatchService method in service/helper.
2020-01-15 14:01:33 -08:00
Kubernetes Prow Robot
6a156c9815
Merge pull request #87202 from ahg-g/aldo
Nominate alculquicondor to sig-scheduling-maintainers
2020-01-15 14:00:24 -08:00
Kubernetes Prow Robot
2da2c3b01b
Merge pull request #87132 from yuxiaobo96/k8s-removeTODO
remove TODO in test/e2e/framework/providers/gce/ingress.go
2020-01-15 11:56:37 -08:00
Kubernetes Prow Robot
fc92222046
Merge pull request #87013 from oxddr/taint-heapster
Revert "Revert "Add an option to specify kubelet flags for heapster node
2020-01-15 11:56:22 -08:00
Kevin Klues
34b942a41d Remove check for empty activePods list in CPUManager removeStaleState
This check is redundant since we protect this call with a call to
`m.sourcesReady.AllReady()` earlier on. Moreover, having this check in
place means that we will leave some stale state around in cases where
there are actually no active pods in the system and this loop hasn't
cleaned them up yet. This can happen, for example, if a pod exits while
the kubelet is down for some reason. We see this exact case being
triggered in our e2e tests, where a test has been failing since October
when this change was first introduced.
2020-01-15 20:09:24 +01:00
Kevin Klues
5802f3a910 Add proper activePods list in TestGetTopologyHints for CPUManager 2020-01-15 20:08:41 +01:00
Eric Ernst
cdd92d39b7 preemption: typo cleanup
Signed-off-by: Eric Ernst <eric.ernst@intel.com>
2020-01-15 10:55:40 -08:00
Pavithra Ramesh
f370b78116 Update vendor 2020-01-15 10:15:50 -08:00
Pavithra Ramesh
f0e45689d3 Add PatchService method in service/helper.
addressed review comments
2020-01-15 10:15:42 -08:00
Kubernetes Prow Robot
b95d571e32
Merge pull request #87226 from liggitt/simplify-code-generator
Simplify code generator dependencies
2020-01-15 09:41:47 -08:00
Kubernetes Prow Robot
93595eb4eb
Merge pull request #87122 from feiskyer/more-arm-clients
Add Azure network and VM clients with backoff retry
2020-01-15 09:41:33 -08:00
Davanum Srinivas
3709f9264d
Document the actual git tag the SHA was picked from
the 3 packages do not have semver tags, the git tags are not good either
for go proxy or go get or pin-dependencies script for that matter. So we
should just document the git tag we picked the SHA from in go.mod
2020-01-15 12:08:47 -05:00
Davanum Srinivas
2a731eb411
Updating dependency github.com/checkpoint-restore/go-criu to version 17b0214 2020-01-15 12:08:22 -05:00
Davanum Srinivas
103d77c619
Updating dependency github.com/coreos/pkg to version 97fdf19 2020-01-15 12:08:12 -05:00
Davanum Srinivas
a6d72ab713
Updating dependency github.com/elazarl/goproxy to version 947c36d 2020-01-15 11:56:41 -05:00
Kubernetes Prow Robot
fbfbd10c28
Merge pull request #87230 from tanjunchen/remove-TODO-skip.go
remove TODO in test/e2e/framework/skip.go
2020-01-15 08:25:56 -08:00
Kubernetes Prow Robot
15aa065e86
Merge pull request #86569 from zouyee/btos
using string instead of byte
2020-01-15 08:25:49 -08:00