nolancon
4d76b1c8de
Add mergeFilteredHints:
...
- Move remaining logic from mergeProvidersHints to generic top level
mergeFilteredHints function.
- Add numaNodes as parameter in order to make generic.
- Move single NUMA node specific check to single-numa-node Merge
function.
2020-01-22 09:07:41 +00:00
John Naulty
80c3f500b6
Fix CreateVolume signature in comment
...
The CreateVolume function for aws-ebs provsiioner returns fstype, which
was missing from the commented section above the function declaration.
2020-01-22 01:06:26 -08:00
nolancon
fc300e0e7d
Move filterSingleNumaHints call to top level Merge
2020-01-22 08:39:22 +00:00
SataQiu
c4f7308e11
kube-proxy: fix incorrect log information
2020-01-22 16:35:58 +08:00
nolancon
45660fd3a2
Add filterProvidersHints function:
...
- Move initial 'filtering' functionality to generic function
filterProvidersHints level policy.go.
- Call new function from top level Merge function.
- Rename some variables/parameters to reflect changes.
2020-01-22 08:35:28 +00:00
nolancon
df9b2595f3
Update filterHints to filterSingleNumaHints:
...
- Change function name
- Remove policy parameter (unnecessary)
- Update unit test to reflect change
2020-01-22 07:15:00 +00:00
Kubernetes Prow Robot
1735f7a2b6
Merge pull request #87377 from gavinfish/pkg-util-netsh
...
Fix static check errors in pkg/util/netsh
2020-01-21 22:02:35 -08:00
Haosdent Huang
b09e35257a
Remove scheduler/algorithm/priorities
in import-restrictions
2020-01-22 11:54:28 +08:00
Kubernetes Prow Robot
8cd0c42845
Merge pull request #87407 from haosdent/remove-registry-args
...
Deprecate scheduler's framework.plugins.RegistryArgs
2020-01-21 16:26:57 -08:00
Wei Huang
170714e532
Remove folder pkg/scheduler/algorithm
2020-01-21 14:33:08 -08:00
Kubernetes Prow Robot
c9b4cf3d25
Merge pull request #87342 from Huang-Wei/move-predicates-to-kubelet
...
Move GeneralPredicates logic to kubelet.
2020-01-21 12:58:47 -08:00
Kubernetes Prow Robot
95fcc5f777
Merge pull request #87072 from fenggw-fnst/work
...
Fix typo in comments for func GetFullContainerName
2020-01-21 12:58:34 -08:00
Wei Huang
3f8b202266
Move GeneralPredicates logic to kubelet.
2020-01-21 09:27:00 -08:00
Kubernetes Prow Robot
37f98ac3b6
Merge pull request #87401 from zouyee/move
...
Move scheduler's SchedulerExtender interface to core/extenders.go
2020-01-21 09:21:50 -08:00
Haosdent Huang
50d511d4b8
Deprecate scheduler's framework.plugins.RegistryArgs
2020-01-21 23:50:58 +08:00
Kubernetes Prow Robot
29a4b39536
Merge pull request #87382 from yiyang5055/fix-staticcheck
...
fix static check failure in pkg/controller/disruption and pkg/control…
2020-01-21 06:35:37 -08:00
zouyee
d6b449b5c7
Move scheduler's SchedulerExtender interface to core/extenders.go
...
Signed-off-by: Zou Nengren <zouyee1989@gmail.com>
2020-01-21 20:20:20 +08:00
Kubernetes Prow Robot
48cb968825
Merge pull request #87297 from alculquicondor/cleanup/get_binder
...
Replace Scheduler.GetBinder with a method
2020-01-20 21:25:36 -08:00
Kubernetes Prow Robot
9822016bf8
Merge pull request #87397 from klueska/upstream-cpu-manager-set-initial-containers
...
Initialize CPUManager containerMap to set of initial containers
2020-01-20 17:39:50 -08:00
Kubernetes Prow Robot
e6b5194ec1
Merge pull request #84300 from klueska/upstream-cpu-manager-reconcile-on-container-state
...
Update logic in `CPUManager` `reconcileState()`
2020-01-20 12:27:37 -08:00
Kevin Klues
bd9d8fa42f
Initialize CPUManager containerMap to set of initial containers
...
A recent change made it so that the CPUManager receives a list of
initial containers that exist on the system at startup. This list can be
non-empty, for example, after a kubelet retart.
This commit ensures that the CPUManagers containerMap structure is
initialized with the containers from this list.
2020-01-20 20:42:29 +01:00
Aldo Culquicondor
eb265bc7db
Remove GetBinder member and replace it with a method.
...
Signed-off-by: Aldo Culquicondor <acondor@google.com>
2020-01-20 14:10:02 -05:00
Kubernetes Prow Robot
37ee6425ef
Merge pull request #87255 from klueska/upstream-remove-redundant-active-pods-check
...
Remove check for empty activePods list in CPUManager removeStaleState
2020-01-20 09:05:50 -08:00
Aldo Culquicondor
7a39e1396a
Remove unnecessary slow binding test
...
Signed-off-by: Aldo Culquicondor <acondor@google.com>
2020-01-20 11:49:45 -05:00
Kubernetes Prow Robot
23fa359d6c
Merge pull request #84705 from whypro/cpumanager-panic-master
...
Return error instead of panic when cpu manager fails on startup.
2020-01-20 07:25:37 -08:00
mattjmcnaughton
73b2d83125
Refactor docker specific oom const out of qos pkg
...
Previously, `pkg/kubelet/qos` contained two different docker-specific
OOM constants. One set the oom adj for sandbox docker containers and the
other set the oom adj for the docker daemon. Move both to be closer to
their actual usages in `dockershim`.
This change addresses a TODO and leads us towards the overall goal of
making `pkg/kubelet` runtime agnostic except for `dockershim`.
2020-01-20 10:22:31 -05:00
Kevin Klues
7be9b0fe55
Update comments and error messages in the CPUManager
2020-01-20 15:31:01 +01:00
Kevin Klues
f2acbf6607
Base CPUManager state reconciliation on container state, not pod state
2020-01-20 13:57:30 +00:00
Kevin Klues
f6cf9b8ce9
Move CPUManager Pod Status logic before container loop
2020-01-20 13:57:30 +00:00
Kubernetes Prow Robot
f680c261e6
Merge pull request #87074 from yuxiaobo96/k8s-staticcheck
...
fix staticcheck: pkg/volume/awsebs
2020-01-20 03:09:37 -08:00
yuxiaobo
221396ac35
cleanup: delete unused func
...
Signed-off-by: yuxiaobo <yuxiaobogo@163.com>
2020-01-20 18:20:57 +08:00
yiyang5055
53aff819e0
fix static check failure in pkg/controller/disruption and pkg/controller/namespace/deletion
2020-01-20 09:10:46 +00:00
yuxiaobo
72f34b817e
staticcheck: pkg/volume/fc, pkg/volume/portworx and pkg/volume/vsphere_volume
...
Signed-off-by: yuxiaobo <yuxiaobogo@163.com>
2020-01-20 16:47:54 +08:00
Mike Spreitzer
ce12105edc
Added server-side printers for the API object types for API priority and fairness
2020-01-20 01:49:05 -05:00
Kubernetes Prow Robot
3d8317ae91
Merge pull request #87139 from yuxiaobo96/k8s-staticcheck2
...
fix staticcheck:pkg/volume/cinder
2020-01-19 21:47:36 -08:00
drfish
f19f4e40f9
Fix static check errors in pkg/util/netsh
2020-01-20 13:25:34 +08:00
Sakura
203c7b4731
fix staticcheck errors in pkg/controller/daemon.
...
Signed-off-by: Sakura <longfei.shang@daocloud.io>
2020-01-19 21:09:05 +08:00
Kubernetes Prow Robot
073da1588a
Merge pull request #86801 from likakuli/fix_syncsts_orphanrevision
...
fix a bug that orphan revision cannot be adopted and statefulset cannot be synced
2020-01-19 00:07:35 -08:00
Kubernetes Prow Robot
f4b6b751cd
Merge pull request #87081 from dims/updating-protobuf-and-grpc
...
Updating protobuf (v1.3.1) and grpc (v1.26.0)
2020-01-18 13:01:36 -08:00
Kubernetes Prow Robot
37d9c22abe
Merge pull request #86377 from wojtek-t/immutable_secrets_api
...
API for immutable Secrets and ConfigMaps
2020-01-18 05:25:35 -08:00
Kubernetes Prow Robot
c1b696d672
Merge pull request #87313 from MikeSpreitzer/apf-validation
...
Update validation for API Priority and Fairness
2020-01-18 01:49:51 -08:00
Kubernetes Prow Robot
967b40f051
Merge pull request #86137 from robscott/endpointslice-proxy-feature
...
Creating new EndpointSliceProxying feature gate for kube-proxy, enabling EndpointSlice feature gate by default
2020-01-17 21:39:36 -08:00
Mike Spreitzer
47ad6db1dc
Fixup comments in internalbootstrap
2020-01-17 22:16:50 -05:00
Kubernetes Prow Robot
3538320d74
Merge pull request #87165 from alculquicondor/cleanup/mv_snapshot_2
...
Move Snapshot to internal/cache
2020-01-17 17:14:07 -08:00
Rob Scott
469de65c25
Enabling EndpointSlice feature gate by default
...
This enables the EndpointSlice controller by default, but does not make
kube-proxy a consumer of the EndpointSlice API.
2020-01-17 16:19:29 -08:00
Rob Scott
47b2593d59
Creating new EndpointSliceProxying feature gate for kube-proxy
...
This creates a new EndpointSliceProxying feature gate to cover EndpointSlice
consumption (kube-proxy) and allow the existing EndpointSlice feature gate to
focus on EndpointSlice production only. Along with that addition, this enables
the EndpointSlice feature gate by default, now only affecting the controller.
The rationale here is that it's really difficult to guarantee all EndpointSlices
are created in a cluster upgrade process before kube-proxy attempts to consume
them. Although masters are generally upgraded before nodes, and in most cases,
the controller would have enough time to create EndpointSlices before a new node
with kube-proxy spun up, there are plenty of edge cases where that might not be
the case. The primary limitation on EndpointSlice creation is the API rate limit
of 20QPS. In clusters with a lot of endpoints and/or with a lot of other API
requests, it could be difficult to create all the EndpointSlices before a new
node with kube-proxy targeting EndpointSlices spun up.
Separating this into 2 feature gates allows for a more gradual rollout with the
EndpointSlice controller being enabled by default in 1.18, and EndpointSlices
for kube-proxy being enabled by default in the next release.
2020-01-17 16:17:40 -08:00
Mike Spreitzer
4d88acee51
Made internalbootstrap gin up its own Scheme
...
doing our part to reduce usage of legacyscheme.Scheme
2020-01-17 16:47:40 -05:00
Mike Spreitzer
5330bd7440
dogged insistence on full verbosity
2020-01-17 15:46:36 -05:00
Kubernetes Prow Robot
f88f58cb79
Merge pull request #87245 from 928234269/fix_staticcheck
...
fix staticcheck errors in pkg/volume/hostpath.
2020-01-17 12:15:18 -08:00
Aldo Culquicondor
f53d7e55df
Move Snapshot from nodeinfo/snapshot to internal/cache
...
Signed-off-by: Aldo Culquicondor <acondor@google.com>
2020-01-17 13:29:41 -05:00
Kubernetes Prow Robot
0040920045
Merge pull request #87293 from pmorie/brad-childs-owners
...
Remove Brad Childs from OWNERS files
2020-01-17 09:00:56 -08:00
Aldo Culquicondor
6a14203658
Rename cache's Snapshot to Dump
...
Signed-off-by: Aldo Culquicondor <acondor@google.com>
2020-01-17 11:28:08 -05:00
Davanum Srinivas
b3853138a4
update generated files
2020-01-17 11:23:53 -05:00
Kubernetes Prow Robot
50f9ea7999
Merge pull request #85798 from nolancon/merge-policy-rebase
...
Updated - topologymanager: Add Merge method to Policy
2020-01-17 05:14:56 -08:00
Kubernetes Prow Robot
6278df2a97
Merge pull request #82223 from rikatz/issue77493
...
Check first if ipvs module is builtin
2020-01-17 03:52:56 -08:00
Sakura
fe8b32317f
delete unused field
...
Signed-off-by: Sakura <longfei.shang@daocloud.io>
2020-01-17 19:34:48 +08:00
Mike Spreitzer
ec5321c6a9
Update validation for API Priority and Fairness
...
This PR fixes oversights and adds validation that rejects writes
of wrong Spec values for the four mandatory objects.
2020-01-17 02:43:52 -05:00
Kobayashi Daisuke
ed1381e35f
Fix staticcheck in pkg/controller/podgc
2020-01-17 15:42:38 +09:00
Wei Huang
c712230ac1
Implement default queue sort logic as a scheduler plugin
2020-01-16 19:10:43 -08:00
Paul Morie
afaea605f4
Remove Brad Childs from OWNERS files
2020-01-16 15:21:34 -05:00
Kubernetes Prow Robot
9701baea0f
Merge pull request #87283 from klueska/update-printing-for-tm-bitmask
...
Update bitmask printing to print in groups of 2 instead of all 64 bits
2020-01-16 12:04:32 -08:00
Kevin Klues
708278098a
Update bitmask printing to print in groups of 2 instead of all 64 bits
2020-01-16 17:28:52 +01:00
Kubernetes Prow Robot
0c1d714627
Merge pull request #87128 from Aresforchina/fix-staticcheck-test12
...
fix-staticcheck:pkg/volume/emptydir
2020-01-16 07:48:50 -08:00
Kevin Klues
7069b1d6e8
Update TopologyManager single-numa-node logic to handle "don't cares"
...
The logic has been updated to match the logic of the best-effort policy
except in two places:
1) The hint filtering frunction has been updated to allow "don't care"
hints encoded with a `nil` affinity mask, to pass through the filter in
addition to hints that have just a single NUMA bit set.
2) After calculating the `bestHint` we transform "don't care" affinities
encoded as having all NUMA bits set in their affinity masks into "don't
care" affinities encoded as `nil`.
2020-01-16 08:50:35 +00:00
Kevin Klues
2905ffffa7
Rename TopologyManager test TestPolicyBestEffortMerge for consistency
2020-01-16 08:50:21 +00:00
Kevin Klues
94489c137c
Cleanup use of defaultAffinity in mergePermutation of TopologyManager
2020-01-16 08:50:12 +00:00
nolancon
5e23517ebf
Use reflect.DeepEqual check in policy_test.go
2020-01-16 08:13:07 +00:00
nolancon
92eb7cd601
Update "Single NUMA hint generation" expected affinity to nil
2020-01-16 08:13:07 +00:00
nolancon
8b3f6e61a2
Move test case "Two providers, 1 with 2 hints, 1 with single
...
non-preferred hint matching" into specific policy tests
2020-01-16 08:13:07 +00:00
nolancon
681c42bfc2
Move test case "Two providers, 1 hint each, same mask, 1 preferred, 1
...
not 2/2" into specific policy tests
2020-01-16 08:13:07 +00:00
nolancon
a38a2562b2
Move test case "Two providers, 1 hint each, same mask, 1 preferred, 1
...
not 1/2" into specific policy test.
2020-01-16 08:13:07 +00:00
nolancon
f639da7637
Move test case "Two providers, 1 hint each, no common mask" into
...
specific policy tests.
2020-01-16 08:13:07 +00:00
nolancon
401a2bb285
Move test case "Single TopologyHint with Preferred as false and
...
NUMANodeAffinity as nil" into specific policy tests.
2020-01-16 08:13:06 +00:00
nolancon
6460ef6392
Move test case "Single TopologyHint with Preferred as true and
...
NUMANodeAffinity as nil" into specific policy tests.
2020-01-16 08:13:06 +00:00
nolancon
baeff9ec5d
Move test case "HintProvider returns empty non-nil map[string][]TopologyHint from
...
provider" into specific policy tests.
2020-01-16 08:13:06 +00:00
nolancon
599217d482
Move test case "HintProvider returns -nil map[string][]TopologyHint from provider" into specific policy tests
2020-01-16 08:13:06 +00:00
nolancon
57661ee946
Move test case 'HintProvider returns empty non-nil map[string][]TopologyHint' into specific policy tests.
2020-01-16 08:13:06 +00:00
nolancon
51f1af0395
Move test case 'TopologyHint not set' into individual policy tests
2020-01-16 08:13:06 +00:00
nolancon
8466a5852a
Restore policy_test.go to upstream
...
Following commits will contain incremental changes to this file to ease
review process and ensure all tests are accounted for.
2020-01-16 08:13:06 +00:00
nolancon
59bb6c4d6f
Update checks in mergeProvidersHints:
...
- Initialize best Hint to TopologyHint{}
- Update checks.
- Move generic unit test case into policy specific tests and updated
expected outcome to reflect changes.
2020-01-16 08:13:06 +00:00
nolancon
6758f95117
Restore original policy none test cases:
...
Mistakenly overwritten in earlier commit
2020-01-16 08:13:06 +00:00
nolancon
2d1a535a35
Make mergePermutation generic:
...
- Remove policy parameters to make function generic
- Move function into top level policy.go
2020-01-16 08:13:06 +00:00
nolancon
5487941485
Refactor filterHints:
...
- Restructure function
- Remove bug fix for catching {nil true} - To be fixed in later commit
- Restore unit tests to original state for testing filterHints
2020-01-16 08:13:06 +00:00
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
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
yuzhiquan
0e81e39465
cleanup(scheduler): remove unused function, remove duplicate comment, implement interface
...
update bazel
2020-01-16 09:07:09 +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
Kubernetes Prow Robot
15aa065e86
Merge pull request #86569 from zouyee/btos
...
using string instead of byte
2020-01-15 08:25:49 -08:00
Kubernetes Prow Robot
97d68d014c
Merge pull request #86172 from liggitt/intstr
...
Clarify intstr.IntValue() behavior
2020-01-15 08:25:35 -08:00
Sakura
4143bc7a96
fix staticcheck errors in pkg/volume/hostpath.
...
Signed-off-by: Sakura <longfei.shang@daocloud.io>
2020-01-15 22:54:48 +08:00
ialidzhikov
a038a33dcf
Clean up commented assertions in tests
...
Signed-off-by: ialidzhikov <i.alidjikov@gmail.com>
2020-01-15 11:34:27 +02:00
Kubernetes Prow Robot
208cc18c69
Merge pull request #86728 from mattjmcnaughton/mattjmcnaughton/add-test-coverage-oom-watcher
...
Add test coverage for oom watcher
2020-01-15 01:21:33 -08:00
Kubernetes Prow Robot
de34d2ce1e
Merge pull request #87193 from mattjmcnaughton/mattjmcnaughton/cleanup-rkt-code-in-pleg
...
Clean up rkt specific code in `pkg/kubelet/pleg`
2020-01-14 22:21:46 -08:00
Aresforchina
514bdbedac
fix-static:pkg/volume/scaleio/
2020-01-15 09:53:27 +08:00
Kubernetes Prow Robot
9173a5f93f
Merge pull request #87164 from liggitt/sar-approver-v1
...
Use v1 subjectaccessreview API in controller-manager CSR approver
2020-01-14 17:22:58 -08:00
Kubernetes Prow Robot
88cf4e5c25
Merge pull request #87091 from ahg-g/ahg-cleanup
...
Remove last scheduler dependencies on predicates package
2020-01-14 17:21:39 -08:00
Kubernetes Prow Robot
b046f742bd
Merge pull request #87038 from alculquicondor/cleanup/mv_snapshot
...
Remove direct use of Snapshot's data structures
2020-01-14 17:21:29 -08:00
mattjmcnaughton
9077603b97
Add richer unit tests for OomWatcher
...
Add unit tests for OomWatcher that actually test the logic defined in
the `Start` method. As a result of an earlier refactor, its now trivial
to mock the OOMInstance events which the `oom_watcher` is supposed to be
watching.
2020-01-14 07:57:06 -05:00
mattjmcnaughton
ab7e0f58d5
Clean up rkt specific code in pkg/kubelet/pleg
...
Clean up code in PLEG which was only necessary for the `rkt` runtime.
Rkt is no longer a built-in runtime and docker(shim) uses the CRI, so
its safe to remove this code entirely.
This diff removes the last mentions of `rkt` in the kubelet.
2020-01-14 07:42:30 -05:00
Kubernetes Prow Robot
be26fbc638
Merge pull request #86282 from RainbowMango/pr_refactor_resource_endpoint
...
Refactor kubelet resource metrics
2020-01-14 02:23:09 -08:00
Kubernetes Prow Robot
f4db8212be
Merge pull request #76496 from danielqsj/metrics-2
...
Clean deprecated metrics
2020-01-13 20:53:09 -08:00
Kubernetes Prow Robot
61d36e4a43
Merge pull request #85850 from danwinship/kubelet-ipv6-node-ip
...
Allow "kubelet --node-ip ::" to mean prefer IPv6
2020-01-13 17:41:08 -08:00
Kubernetes Prow Robot
e1cc36000f
Merge pull request #87002 from SataQiu/staticcheck-20200109
...
Fix staticcheck failures of pkg/util/ipconfig pkg/util/iptables pkg/util/ipvs/testing
2020-01-13 13:58:55 -08:00
Antonio Ojea
de15774e10
kube-proxy unit test FilterIncorrectIPVersion
...
Add an unit test to the kube-proxy FilterIncorrectIPVersion function
2020-01-13 22:44:22 +01:00
Jordan Liggitt
054e3846fc
Use v1 subjectaccessreview API in controller-manager CSR approver
2020-01-13 15:55:52 -05:00
Aldo Culquicondor
187d711225
Split findNodesThatFit into framework and extenders logic
...
Signed-off-by: Aldo Culquicondor <acondor@google.com>
2020-01-13 14:10:17 -05:00
Aldo Culquicondor
63c1c68d0c
Remove direct use of Snapshot's data structures
...
Signed-off-by: Aldo Culquicondor <acondor@google.com>
2020-01-13 14:10:17 -05:00
Abdullah Gharaibeh
fb66e807cd
Remove scheduler framework dependency on predicates package
2020-01-13 13:02:31 -05:00
Kewei Ma
34fce9faee
Fix a comment in job_controller
2020-01-13 10:09:06 -06:00
yuxiaobo
da15570daa
fix staticcheck:pkg/volume/cinder
...
Signed-off-by: yuxiaobo <yuxiaobogo@163.com>
2020-01-13 18:20:23 +08:00
Aresforchina
e62f9625cf
fix-static:pkg/volume/emptydir
2020-01-13 15:23:45 +08:00
wojtekt
9174905ae7
Autogenerated
2020-01-12 21:09:05 +01:00
wojtekt
e612ebfdff
Immutable field and validation
2020-01-12 20:51:31 +01:00
Kubernetes Prow Robot
c0e245fa0e
Merge pull request #85268 from yue9944882/feat/flow-control-defaulting
...
Bootstrap flow-control objects
2020-01-11 12:27:37 -08:00
sunxiaofei03
330159c0a4
fix orphaned pod flexvolume can not be cleaned up
2020-01-11 14:54:48 +08:00
Kubernetes Prow Robot
ace98e1382
Merge pull request #84433 from yamt/comment-typo
...
Fix a comment typo in legacyNodeRoleBehaviorFeature
2020-01-10 17:17:38 -08:00
Kubernetes Prow Robot
8467561f2c
Merge pull request #86783 from mattjmcnaughton/mattjmcnaughton/remove-unnecessary-modification-container-pid-namespace
...
Remove no longer needed `modifyContainerPIDNamespaceOverrides`
2020-01-10 15:43:50 -08:00
Kubernetes Prow Robot
befc371364
Merge pull request #86702 from mattjmcnaughton/mattjmcnaughton/refactor-oom-watcher-to-allow-greater-test-coverage
...
Refactor oom watcher to allow greater test coverage
2020-01-10 15:43:37 -08:00
Kubernetes Prow Robot
240782c7f7
Merge pull request #87043 from zjs/topic/propagate-providerid-errors
...
Ensure a provider ID is set on a node if expected
2020-01-10 14:33:50 -08:00
Kubernetes Prow Robot
dc2099ea11
Merge pull request #87055 from denkensk/clean-unused-predicate-error
...
Cleanup unused predicate error types.
2020-01-10 12:25:16 -08:00
Kubernetes Prow Robot
942b526e5c
Merge pull request #87051 from Huang-Wei/remove-prio-util-pkg
...
Remove scheduler/algorithm/priorities/util package
2020-01-10 12:25:01 -08:00
Kubernetes Prow Robot
6e2a2855ef
Merge pull request #87034 from ritazh/azure-owners
...
Update Azure owners
2020-01-10 12:24:49 -08:00
Zach Shepherd
2b554079af
Ensure a provider ID is set on a node if expected
...
A transient issue might occur that causes an error to be returned by
InstanceID(). When this is ignored, the external cloud provider taint
will be removed and neither AddCloudNode() nor UpdateCloudNode() will
try to set a provider ID in the future.
By returning the error we can ensure that the external cloud provider
taint is not removed prematurely, allowing the operation to be retried
(until the provider ID can be set).
Preserve support for external cloud providers that do not use IDs by
continuing if a NotImplemented error is returned, making a distinction
between lack of support for provider IDs and an actual error.
Introduce pair of unit tests that show a provider ID will eventually
be set if an error is returned, unless that error is a NotImplemented,
in which case the external cloud provider taint will be removed.
2020-01-10 11:00:54 -08:00
yue9944882
70dea6e4a8
review: several fixes and addressing comments
2020-01-11 01:46:31 +08:00
Kubernetes Prow Robot
a66adcb4f1
Merge pull request #87050 from KobayashiD27/fixgolint
...
fix golint error in pkg/apis/rbac
2020-01-10 08:58:48 -08:00
Kubernetes Prow Robot
a5a48d0bf3
Merge pull request #87037 from Huang-Wei/remove-util-pkg
...
Cleanup scheduler/algorithm/predicates package
2020-01-10 08:58:35 -08:00
Kubernetes Prow Robot
3341611480
Merge pull request #87001 from chendotjs/ipvs-typofix
...
fix typo in ipvs proxier README
2020-01-10 06:24:34 -08:00
yuxiaobo
c5764735e2
fix staticcheck:pkg/volume/awsebs
...
Signed-off-by: yuxiaobo <yuxiaobogo@163.com>
2020-01-10 18:36:39 +08:00
danielqsj
ab182552b4
clean SinceInMicroseconds, convert to SinceInSeconds
2020-01-10 17:05:38 +08:00
danielqsj
a8f2feaeb5
remove deprecated metrics of proxy
2020-01-10 17:05:38 +08:00
danielqsj
8ae3f80048
remove deprecated metrics of dockershim
2020-01-10 17:05:38 +08:00
danielqsj
85931af1ee
remove deprecated metrics of scheduler
2020-01-10 17:03:40 +08:00
danielqsj
1a9b121764
remove deprecated metrics of kubelet
2020-01-10 16:46:52 +08:00
Kubernetes Prow Robot
9269b5d430
Merge pull request #87014 from notpad/fix/comments
...
Fix comment
2020-01-09 21:58:55 -08:00
Alex Wang
0bab010b45
clean unused predicate error
2020-01-10 13:06:29 +08:00
Wei Huang
b2159b5d66
Remove scheduler/algorithm/priorities/util package
2020-01-09 20:16:05 -08:00
Kubernetes Prow Robot
7a50fdb2a6
Merge pull request #85993 from chendotjs/fix-cidr
...
kubenet: replace gateway with cni result
2020-01-09 20:13:04 -08:00
Wei Huang
6aaf0bb41b
Cleanup scheduler/algorithm/predicates package
2020-01-09 19:01:31 -08:00
Rita Zhang
b062fcb117
Update Azure owners
2020-01-09 18:35:18 -08:00
Kobayashi Daisuke
fee0d43d23
fix golint error in pkg/apis/rbac
2020-01-10 11:22:05 +09:00
draveness
2c3c6721ce
refactor(scheduling): remove priorities package
2020-01-10 09:05:39 +08:00
Kubernetes Prow Robot
adb8b08e91
Merge pull request #86905 from draveness/feature/disable-scheduling-plugin
...
feat(scheduling): address disabled plugins in scheduling framework
2020-01-09 16:10:47 -08:00
Kubernetes Prow Robot
e648e944e0
Merge pull request #86848 from haosdent/clean-filter-deps-nodeunschedulable
...
Break nodeunschedulable Filter plugins dependency on predicates package
2020-01-09 16:10:34 -08:00
Kubernetes Prow Robot
aef336d712
Merge pull request #86999 from draveness/feature/remove-ErrTopologySpreadConstraintsNotMatch
...
fix: remove ErrTopologySpreadConstraintsNotMatch
2020-01-09 13:29:42 -08:00
Kubernetes Prow Robot
95c9878b78
Merge pull request #86964 from alculquicondor/fix/snapshot_rm_node
...
Remove nodes from cache immediately on delete events
2020-01-09 13:29:32 -08:00
Kubernetes Prow Robot
f634ee6fe2
Merge pull request #86545 from xiaoanyunfei/cleanup/enhance_scheduler_metrics
...
Cleanup/Enhance scheduler metrics
2020-01-09 13:29:22 -08:00
Kubernetes Prow Robot
3ccdad175a
Merge pull request #86210 from draveness/feature/remove-ga-flags
...
feat: remove several feature gates in 1.18
2020-01-09 13:28:50 -08:00
Kubernetes Prow Robot
eedf1945b5
Merge pull request #86998 from denkensk/rm-errserviceaffinityviolated
...
Remove ErrServiceAffinityViolated scheduler predicate error
2020-01-09 11:33:42 -08:00
Kubernetes Prow Robot
407b29fa05
Merge pull request #86981 from alculquicondor/fix/node_info_list_2
...
Remove uses of NodeInfoMap outside of snapshot and cache
2020-01-09 11:33:31 -08:00
Aldo Culquicondor
afe3b907a1
Remove nodes from cache immediately on delete events
...
Signed-off-by: Aldo Culquicondor <acondor@google.com>
2020-01-09 12:58:12 -05:00
draveness
50deec25bc
feat(scheduling): address disabled plugins in scheduling framework
...
+ Custom plugins run after the default plugins.
+ Disable default plugins and re-enable them in the configuration could update
the execution order.
+ Use `*` to disable all the default plugins of specific extension points.
2020-01-09 23:59:59 +08:00
Aldo Culquicondor
bcab9b4c9e
Remove uses of NodeInfoMap outside of snapshot and cache
...
Signed-off-by: Aldo Culquicondor <acondor@google.com>
2020-01-09 10:04:11 -05:00
Kubernetes Prow Robot
32d8799ef1
Merge pull request #86979 from ahg-g/ahg-cleanup2
...
Move TaintToleration predicate to its plugin
2020-01-09 06:53:45 -08:00
Abdullah Gharaibeh
50b697bacb
move TaintToleration predicate to its plugin
2020-01-09 08:14:53 -05:00
notpad
228891de9c
Fix comment
2020-01-09 20:06:56 +08:00
Kubernetes Prow Robot
edad4bbfc8
Merge pull request #86940 from skilxn-go/master
...
Add VolumeBinder to FrameworkHandle interface
2020-01-09 03:01:45 -08:00
SataQiu
51c742c1dd
fix staticcheck failures of pkg/util/ipconfig pkg/util/iptables pkg/util/ipvs/testing
2020-01-09 16:05:11 +08:00
draveness
0278d793c8
fix: remove ErrTopologySpreadConstraintsNotMatch
2020-01-09 16:01:13 +08:00
chenyaqi01
f893486191
ipvs proxier README: fix typo
2020-01-09 15:12:05 +08:00
Alex Wang
80127fe10f
rm errserviceaffinityviolated
2020-01-09 15:08:59 +08:00
Haosdent Huang
864600f05f
Break nodeunschedulable Filter plugins dependency on predicates package
2020-01-09 14:54:28 +08:00
Kubernetes Prow Robot
2c800c5a70
Merge pull request #86985 from ahg-g/ahg-cleanup4
...
Remove test/integration dependency on predicates and algorithmprovider
2020-01-08 21:29:58 -08:00
Kubernetes Prow Robot
4d41f4809f
Merge pull request #86890 from damemi/move-selector-spread-to-plugin
...
Move selector spreading priority code to plugin
2020-01-08 21:29:45 -08:00
sunxiaofei03
6c58cc0ad0
change framework_extension_point_duration_seconds from sampling to always record
2020-01-09 12:23:05 +08:00
Kubernetes Prow Robot
b3c94d3fb9
Merge pull request #86966 from bharaththiruveedula/master
...
Fix interpodaffinity issue
2020-01-08 19:12:20 -08:00
Kubernetes Prow Robot
4426ccb2a6
Merge pull request #86963 from ahg-g/ahg-status
...
Update scheduler's RunFilterPlugins to return a plugin to status map
2020-01-08 19:12:12 -08:00
Kubernetes Prow Robot
4d95d40a41
Merge pull request #86836 from haosdent/clean-filter-deps-interpodaffinity
...
Break interpodaffinity Filter plugins dependency on predicates package
2020-01-08 19:11:53 -08:00
skilxn-go
5def91d778
Add VolumeBinder to FrameworkHandle interface
2020-01-09 10:29:35 +08:00
Abdullah Gharaibeh
c86f59610c
remove test/integration dependency on predicates and algorithmprovider
2020-01-08 19:51:22 -05:00
Kubernetes Prow Robot
720e6de6b9
Merge pull request #85168 from Jefftree/admission-wh-proxy
...
Use Network Proxy for Admission Webhooks
2020-01-08 16:07:40 -08:00
Jefftree
1289bdaba4
network proxy with admission wh
2020-01-08 15:01:38 -08:00
Kubernetes Prow Robot
b558cff8f5
Merge pull request #86950 from yuzhiquan/patch-pod
...
cleanup(api-machinery): remove unused struct and variable
2020-01-08 14:46:48 -08:00
Kubernetes Prow Robot
792fe793a1
Merge pull request #86946 from cchord/fix_typo
...
fix typo
2020-01-08 14:46:24 -08:00
Kubernetes Prow Robot
ca05f4c63b
Merge pull request #86930 from alculquicondor/fix/node_info_list
...
Use Snapshot.NodeInfoList for listing operations
2020-01-08 14:46:03 -08:00
Abdullah Gharaibeh
f3c7a4c823
Update scheduler's RunFilterPlugins to return a plugin to status map
2020-01-08 16:44:51 -05:00
Bharath Thiruveedula
8e3c1b54a7
Fix interpodaffinity issue
...
Signed-off-by: Bharath Thiruveedula <bharath_ves@hotmail.com>
2020-01-09 01:18:49 +05:30
Mike Dame
d227b7822f
Move selector spreading priority code to plugin
2020-01-08 13:37:37 -05:00
Kubernetes Prow Robot
b34c96b62c
Merge pull request #86764 from haosdent/migrate-servie-affinity
...
Break serviceaffinity Filter plugins dependency on predicates package
2020-01-08 08:47:39 -08:00
Aldo Culquicondor
5d916e20dd
Use Snapshot.NodeInfoList for listing operations
...
instead of iterating over NodeInfoMap.
Also remove redundant queries to NodeInfoMap.
Signed-off-by: Aldo Culquicondor <acondor@google.com>
2020-01-08 09:45:36 -05:00
Kubernetes Prow Robot
1e0bfae887
Merge pull request #86871 from gosoon/master
...
fix log message error in nodelifecycle
2020-01-08 02:58:33 -08:00
Kubernetes Prow Robot
1f50be5d04
Merge pull request #86775 from Aresforchina/fix-staticcheck-test03
...
fix staticcheck of pkg/util/ebtables
2020-01-08 02:58:07 -08:00
Kubernetes Prow Robot
b1e8bed5be
Merge pull request #86755 from mwmix/scheduler_server_unit_tests
...
Adding in missing Registry unit tests.
2020-01-08 02:57:54 -08:00
Kubernetes Prow Robot
fd0358fd21
Merge pull request #86689 from klueska/upstream-fix-cpumanager-v1-state-checksum
...
Lock checksum calculation for v1 CPUManager state to pre 1.18 logic
2020-01-08 02:57:40 -08:00
likakuli
10864d3366
fix a bug that orphan revision cannot be adopted and sts cannot be synced
2020-01-08 17:56:41 +08:00
yuzhiquan
8d7f383785
cleanup(api-machinery): remove unused struct and variable
2020-01-08 16:57:02 +08:00
Jiahao Zhu
680df17f39
fix typo
2020-01-08 15:48:58 +08:00
Haosdent Huang
a1053e4835
Break interpodaffinity Filter plugins dependency on predicates package
2020-01-08 14:37:51 +08:00
Kubernetes Prow Robot
8dca390262
Merge pull request #84927 from mattjmcnaughton/mattjmcnaughton/fix-kubelet-config-common
...
Fix golint failures for pkg/kubelet/config/...
2020-01-07 21:09:40 -08:00
mattjmcnaughton
8897c435ad
Refactor oom watcher to allow greater test coverage
...
This diff contains a strict refactor; there are no behavioral changes.
Address a long standing TODO in `oom_watcher_linux_test.go` around test
coverage. We refactor our `oom.Watcher` so it takes in a struct
fulfulling the `streamer` interface (i.e. defines `StreamOoms` method).
In production, we will continue to use the `oomparser` from `cadvisor`.
However, for testing purposes, we can now create our own `fakeStreamer`,
and control how it streams `oomparser.OomInstance`. With this fake, we
can implement richer unit testing for the `oom.Watcher` itself.
Actually adding the additional unit tests will come in a later commit.
2020-01-07 21:48:14 -05:00
Kubernetes Prow Robot
6099a739d8
Merge pull request #86919 from ahg-g/ahg-fix
...
Fix how we check for node info list consistency
2020-01-07 14:09:05 -08:00
Kubernetes Prow Robot
99600ae9a7
Merge pull request #86852 from haosdent/clean-filter-deps-volumezone
...
Break volumezone Filter plugins dependency on predicates package
2020-01-07 14:08:55 -08:00
Kubernetes Prow Robot
c867fdbc1c
Merge pull request #86847 from haosdent/clean-filter-deps-nodelabel
...
Break nodelabel Filter plugins dependency on predicates package
2020-01-07 14:08:46 -08:00
Christopher M. Luciano
bff24f41bf
core: fix dead links in core api comments
...
Signed-off-by: Christopher M. Luciano <cmluciano@us.ibm.com>
2020-01-07 16:32:05 -05:00
Kubernetes Prow Robot
c7af1da206
Merge pull request #86913 from ahg-g/ahg-nodelimit
...
fix a bug in scheduler's node resource limits score
2020-01-07 12:34:25 -08:00
Abdullah Gharaibeh
e26fbe6f08
fix a bug in scheduler's node resource limits score
2020-01-07 13:43:44 -05:00
Kubernetes Prow Robot
d4d3d4b55e
Merge pull request #86875 from ahg-g/ahg1-cleanup
...
Move RequestedToCapacityRatio argument processing to its plugin
2020-01-07 10:14:42 -08:00
Kubernetes Prow Robot
dc084fe131
Merge pull request #86849 from haosdent/clean-filter-deps-nodevolumelimits
...
Break nodevolumelimits Filter plugins dependency on predicates package
2020-01-07 10:14:33 -08:00
Haosdent Huang
320c9bfeed
Break volumezone Filter plugins dependency on predicates package
2020-01-08 01:03:01 +08:00
Abdullah Gharaibeh
591b870691
fix how we check for node info list consistency
2020-01-07 11:45:25 -05:00
Kubernetes Prow Robot
49e24adf3e
Merge pull request #86832 from mattjmcnaughton/mattjmcnaughton/remove-dead-code-in-fake-docker-client
...
Remove dead code in fake docker client
2020-01-07 07:36:18 -08:00
Matt Mix
42afa0a2cc
Adding in missing Registry unit tests.
2020-01-07 10:20:39 -05:00
Haosdent Huang
6a82609902
Break serviceaffinity Filter plugins dependency on predicates package
2020-01-07 22:43:37 +08:00
Dan Winship
ce68edf700
Allow "kubelet --node-ip ::" to mean prefer IPv6
2020-01-07 07:53:21 -05:00
Kubernetes Prow Robot
f3df7a2fdb
Merge pull request #86727 from mattjmcnaughton/mattjmcnaughton/remove-recorder-PastEventf
...
Remove `recorder.PastEventf` method
2020-01-07 04:38:49 -08:00
Kubernetes Prow Robot
5373fa3f59
Merge pull request #82462 from vllry/dualstack-iptables
...
Dualstack support for kube-proxy iptables mode
2020-01-07 04:38:20 -08:00
Kubernetes Prow Robot
dd5272b76f
Merge pull request #86575 from gongguan/nkubemark
...
kubemark use remote cri
2020-01-07 03:20:46 -08:00
Kubernetes Prow Robot
38173d586a
Merge pull request #86877 from ahg-g/ahg1-cleanup2
...
Remove unused scheduler types
2020-01-07 01:13:33 -08:00
Kubernetes Prow Robot
08ae3b490a
Merge pull request #86859 from silenceshell/ExtenderConfig-rename-Extender
...
rename ExtenderConfig to Extender in comments
2020-01-07 01:13:24 -08:00
Kubernetes Prow Robot
195e8e3ad9
Merge pull request #86844 from mattjmcnaughton/mattjmcnaughton/update-cadvisor-stats-provider-comment
...
Correct comment around which integrations require cadvisor_stats
2020-01-07 01:13:14 -08:00
Haosdent Huang
4ef31f81c7
Break nodelabel Filter plugins dependency on predicates package
2020-01-07 16:37:52 +08:00
Kubernetes Prow Robot
8b8f2aa4a5
Merge pull request #85431 from irbull/api-doc
...
Add public documentation for kubelet/apis/config
2020-01-06 23:12:18 -08:00
louisgong
8d54a84507
fix kubemark use fake CRI
2020-01-07 11:39:58 +08:00
louisgong
324e5ce7e3
hollow-node use remote CRI
2020-01-07 11:00:45 +08:00
Abdullah Gharaibeh
729c37373a
Remove unused scheduler types
2020-01-06 21:19:42 -05:00
Kubernetes Prow Robot
59b4933fb8
Merge pull request #86724 from gongguan/fix-fake-CRI
...
fix fake remote CRI
2020-01-06 18:06:57 -08:00
Kubernetes Prow Robot
e7c79050b4
Merge pull request #86718 from ahg-g/ahg1-err
...
Copy nodeaffinity predicate to its filter plugin
2020-01-06 18:06:46 -08:00
Kubernetes Prow Robot
49bc696614
Merge pull request #86251 from bboreham/pleg-last-seen-metric
...
Kubelet: add a metric to observe time since PLEG last seen
2020-01-06 18:06:18 -08:00
Kubernetes Prow Robot
d6412b856f
Merge pull request #84345 from danielqsj/withdialer
...
replace grpc.WithDialer which is deprecated
2020-01-06 15:56:17 -08:00
Kubernetes Prow Robot
19ecd690fa
Merge pull request #86646 from yutedz/client-protocol
...
Require client / server protocols
2020-01-06 13:34:18 -08:00
Kubernetes Prow Robot
b112ad4f0b
Merge pull request #86845 from mattjmcnaughton/mattjmcnaughton/remove-rkt-from-runtime-options
...
Remove `rkt` from container runtime options
2020-01-06 11:12:29 -08:00
Abdullah Gharaibeh
4e67476867
move nodeaffinity predicate to its filter plugin
2020-01-06 13:22:51 -05:00
Kubernetes Prow Robot
9acf7d11fe
Merge pull request #86344 from klueska/upstream-cm-approver
...
Add klueska as an approver in pkg/kubelet/cm/OWNERS
2020-01-06 09:54:16 -08:00
Abdullah Gharaibeh
b9e2389e0d
Move RequestedToCapacityRatio argument processing to its plugin
2020-01-06 11:54:09 -05:00
Ted Yu
906adbdfcd
Require client / server protocols
2020-01-06 08:50:04 -08:00
tianfeiyu
fddf50cf88
fix log message error in nodelifecycle
2020-01-06 21:02:08 +08:00
yue9944882
fe8ad90afa
bootstrap flow-control objects
...
typo
wrap bootstrap-creation-flow w/ wait.PollUtil
go wait
2020-01-06 20:35:03 +08:00
Kubernetes Prow Robot
0f61791bc7
Merge pull request #86850 from haosdent/clean-filter-deps-volumerestrictions
...
Break volumerestrictions Filter plugins dependency on predicates package
2020-01-05 20:57:41 -08:00
silenceshell
7254517c5c
rename ExtenderConfig to Extender
2020-01-06 11:18:51 +08:00
Kubernetes Prow Robot
10dc4a0c79
Merge pull request #86822 from ahg-g/ahg-cleanup
...
Cleanup deprecated scheduler functions/files
2020-01-05 12:37:41 -08:00
Haosdent Huang
9bcca31e52
Break volumerestrictions Filter plugins dependency on predicates package
2020-01-06 02:59:47 +08:00
Haosdent Huang
aae9a7f704
Break nodevolumelimits Filter plugins dependency on predicates package
2020-01-06 02:30:40 +08:00
mattjmcnaughton
794d0d9b4d
Remove rkt
from container runtime options
...
Part of efforts to clean up mentions of rkt in kubelet.
rkt was removed entirely in 1.11, in favor of using `rktlet` and CRI
instead. It should no longer be listed at all as a runtime.
2020-01-05 09:27:38 -05:00
Kubernetes Prow Robot
862c8bf818
Merge pull request #85561 from cwdsuzhou/Nov/return_when_failed
...
Return when removePod failed
2020-01-05 06:23:40 -08:00
mattjmcnaughton
06b44c76fd
Correct comment around which integrations require cadvisor_stats
...
This commit is part of a larger effort to clean up references to `rkt`
in the kubelet.
Previously, this comment hard-coded which integrations required
the cadvisor stats provider. The comment has grown stale
(i.e. referenced rkt and did not reference cri-o).
Update the comment to instead point to the code which determines which
integrations need the cadvisor stats provider.
2020-01-05 09:23:09 -05:00
mattjmcnaughton
f2cb1f35fe
Remove dead code in fake docker client
...
The `FakeDockerClient` had a number of methods defined on it which were
not being called anywhere. The majority were of the form `Assert...`.
In the spirit of removing dead code, remove the methods which aren't
being called.
2020-01-05 08:31:59 -05:00
Kubernetes Prow Robot
2d56d75061
Merge pull request #86730 from ahg-g/ahg1-ds
...
Break DS controller dependency on scheduler predicates and predicate errors
2020-01-04 14:39:40 -08:00
Kubernetes Prow Robot
fd98df37b5
Merge pull request #86742 from haosdent/clean-filter-deps
...
Break volumebinding Filter plugins dependency on predicates package
2020-01-04 12:21:40 -08:00
Haosdent Huang
d27dc6751e
Break volumebinding Filter plugins dependency on predicates package
2020-01-05 01:37:22 +08:00
Abdullah Gharaibeh
041e5b5560
addressed comments
2020-01-04 01:14:24 -05:00
Kubernetes Prow Robot
135ddf1ccc
Merge pull request #86820 from Huang-Wei/cleanup-SetPredicatesOrdering
...
Cleanup SetPredicatesOrderingDuringTest due to deprecation of predicates
2020-01-03 16:59:41 -08:00
louisgong
e8eb5c656b
fix fake remote CRI
2020-01-04 08:43:17 +08:00
Abdullah Gharaibeh
d31dcecd20
cleanup unused scheduler functions/files
2020-01-03 19:09:14 -05:00
Wei Huang
051be8fe80
Cleanup SetPredicatesOrderingDuringTest due to deprecation of predicates
2020-01-03 11:57:17 -08:00
Wei Huang
64d7b224d9
Cleanup unused parameter of NewGenericScheduler
2020-01-03 11:42:39 -08:00
Abdullah Gharaibeh
7d604c318c
Break DS controller on scheduler predicates and predicate errors
2020-01-03 13:05:07 -05:00
Aresforchina
2293b47346
add some comments for const variable
2020-01-03 23:28:21 +08:00
Kubernetes Prow Robot
180e1c9f51
Merge pull request #86584 from xiaoanyunfei/cleanup/deprecate_scheduler_metrics
...
deprecate scheduling_algorithm_predicate_evaluation_seconds and sched…
2020-01-03 03:41:40 -08:00
Bryan Boreham
cc0b3e82eb
Kubelet: add a metric to observe time since PLEG last seen
...
Expose the measurement that kubelet uses to judge that "PLEG is
unhealthy". If we can observe the measurement growing then we can
alert before the node goes unhealthy.
Note that the existing metrics PLEGRelistInterval and
PLEGRelistDuration are poor for this, because when relist() gets
stuck they are never updated.
Signed-off-by: Bryan Boreham <bryan@weave.works>
2020-01-03 10:01:27 +00:00
Kubernetes Prow Robot
47d5c3ef8d
Merge pull request #86785 from cwdsuzhou/Jan/update_comments
...
update comments of some funs in scheduling_queue
2020-01-02 22:26:02 -08:00
Kubernetes Prow Robot
b3c4c90a72
Merge pull request #86673 from ahg-g/ahg1-provider
...
Define algorithm providers in terms of plugins
2020-01-02 22:25:53 -08:00
Kubernetes Prow Robot
30090d0809
Merge pull request #86665 from SataQiu/clean-proxy-20191227
...
kube-proxy: add some interface type assertions
2020-01-02 22:25:40 -08:00
Kubernetes Prow Robot
fdfcb00ede
Merge pull request #86586 from xiaoanyunfei/cleanup/deprecate_scheduler_duration_seconds
...
Deprecate scheduling_duration_seconds Summary metric
2020-01-02 19:15:55 -08:00
SataQiu
2a83443782
add error handler of unix.Setrlimit
2020-01-03 10:49:06 +08:00
Abdullah Gharaibeh
b535ed3b0c
Merge scheduler's ConfigProducerRegistry into LegacyRegistry
2020-01-02 16:40:33 -05:00
caiweidong
02e217759e
update comments of some funs in scheduling_queue
2020-01-02 23:35:12 +08:00
mattjmcnaughton
d09fe8e247
Remove no longer needed modifyContainerPIDNamespaceOverrides
...
As of https://github.com/kubernetes/kubernetes/pull/72831/ , the minimum
kubernetes version is now 1.13.1. As a result, this function becomes a
no-op. As the TODO indicates, we should delete it.
2020-01-02 09:09:02 -05:00
Aresforchina
bfc4a7a1c5
fix staticcheck of pkg/util/ebtables
2020-01-02 18:16:50 +08:00
Kubernetes Prow Robot
26b52e84a4
Merge pull request #86230 from hex108/skip_schedule
...
Scheduler handles pod annotation updates during scheduling more gracefully
2019-12-31 17:03:40 -08:00
Abdullah Gharaibeh
a6b7b0d95e
Define algorithm providers in terms of plugins.
2019-12-31 15:28:09 -05:00
notpad
7f79516705
Move resource-based priority functions to their Score plugins
2019-12-31 23:50:11 +08:00
Jun Gong
706e90a033
Skip scheduling the pod if it has been assumed and the pod updates could be skipped.
2019-12-31 14:21:41 +08:00
caiweidong
6410ac3173
Return when removePod failed
2019-12-31 10:11:12 +08:00
mattjmcnaughton
92940fa80d
Remove recorder.PastEventf
method
...
The `recorder.PastEventf` method wasn't actually working as advertised.
It was supposed to accept a timestamp, which would be used when
generating the event. However, as the
[source code](https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/client-go/tools/record/event.go#L316 )
shows, this `timestamp` was never actually used.
In other words, `PastEventf` is identical to `Eventf`.
We have two options: one would be to fix `PastEventf` so that it works
as advertised. The other would be to delete `PastEventf` and only
support `Eventf`.
Ultimately, I could only find one use of `PastEventf` in the code base,
so I propose we just delete `PastEventf` and convert all uses to
`Eventf`.
2019-12-30 12:00:23 -05:00
Kubernetes Prow Robot
a443014dfc
Merge pull request #86621 from yuzhiquan/patch-pod
...
refactor (pod log) container valiate
2019-12-30 02:41:39 -08:00
yuzhiquan
ca69051475
refactor(pod log):refactor for container valiate, little cleanup
...
bug(pod log):TestCheckLogLocation should point out pod name
modify container if statement
fix typo
2019-12-30 16:16:45 +08:00
Kubernetes Prow Robot
6d53021196
Merge pull request #86511 from aojea/v6example
...
Add ipv6 examples for network policy API
2019-12-29 19:39:39 -08:00
Wei Huang
78352240f6
Move podtopologyspread priority logic to its Score plugin
2019-12-28 19:29:37 -08:00
Kevin Klues
b373121a14
Make CPUManagerCheckpointV2 type an alias of CPUManagerCheckpoint
...
This change is to prevent problems when we remove the V1->V2 migration
code in the future. Without this, the checksums of all checkpoints would
be hashed with the name CPUManagerCheckpointV2 embedded inside of them,
which is undesirable. We want the checkpoints to be hashed with the name
CPUManagerCheckpoint instead.
2019-12-28 19:29:13 +01:00
Kubernetes Prow Robot
f796b750c6
Merge pull request #86681 from Huang-Wei/interpodaffinity-typo
...
Fix a typo in interpodaffinity score plugin
2019-12-28 08:23:38 -08:00
Kevin Klues
5faf8f4c52
Lock checksum calculation for v1 CPUManager state to pre 1.18 logic
...
The updated CPUManager from PR #84462 implements logic to migrate the
CPUManager checkpoint file from an old format to a new one. To do so, it
defines the following types:
```
type CPUManagerCheckpoint = CPUManagerCheckpointV2
type CPUManagerCheckpointV1 struct { ... }
type CPUManagerCheckpointV2 struct { ... }
```
This replaces the old definition of just:
```
type CPUManagerCheckpoint struct { ... }
```
Code was put in place to ensure proper migration from checkpoints in V1
format to checkpoints in V2 format. However (and this is a big however),
all of the unit tests were performed on V1 checkpoints that were
generated using the type name `CPUManagerCheckpointV1` and not the
original type name of `CPUManagerCheckpoint`. As such, the checksum in
the checkpoint file uses the `CPUManagerCheckpointV1` type to calculate
its checksum and not the original type name of `CPUManagerCheckpoint`.
This causes problems in the real world since all pre-1.18 checkpoint
files will have been generated with the original type name of
`CPUManagerCheckpoint`. When verifying the checksum of the checkpoint
file across an upgrade to 1.18, the checksum is calculated assuming
a type name of `CPUManagerCheckpointV1` (which is incorrect) and the
file is seen to be corrupt.
This patch ensures that all V1 checksums are verified against a type
name of `CPUManagerCheckpoint` instead of ``CPUManagerCheckpointV1`.
It also locks the algorithm used to calculate the checksum in place,
since it wil never change in the future (for pre-1.18 checkpoint
files at least).
2019-12-28 14:17:55 +01:00
Kubernetes Prow Robot
d605766c89
Merge pull request #86662 from draveness/feature/cloud-specific-predicates
...
feat(scheduling): implement azure, cinder, ebs and gce as filter plugin
2019-12-27 22:23:38 -08:00
Wei Huang
b3bebddb30
Fix a typo in interpodaffinity score plugin
2019-12-27 20:23:28 -08:00
Kubernetes Prow Robot
8bf6504661
Merge pull request #86583 from libnux/change_random_fully_log_level
...
Change log level to 3 when --random-fully is not supported
2019-12-27 19:47:39 -08:00
draveness
320ac4e277
feat(scheduling): implement azure, cinder, ebs and gce as filter plugin
2019-12-28 11:46:40 +08:00
Kubernetes Prow Robot
f1cbbda291
Merge pull request #86650 from RainbowMango/pr_testapi_cleanup
...
Cleanup testapi after it has been removed
2019-12-27 14:05:38 -08:00
Antonio Ojea
31e59fd5e3
Add ipv6 examples for network policy API
...
Add IPv6 examples to the network policy API
2019-12-27 22:47:20 +01:00
Kubernetes Prow Robot
0387ee4244
Merge pull request #86625 from zouyee/cnu
...
Move CheckNodeUnschedulable predicate to its filter plugin
2019-12-27 09:27:39 -08:00
Kubernetes Prow Robot
429ad7db4f
Merge pull request #86659 from Huang-Wei/eps-move-pred
...
Move pod topology spread predicate logic to its filter plugin
2019-12-27 07:53:38 -08:00
Kubernetes Prow Robot
b52cdca17d
Merge pull request #86638 from danielqsj/ServiceAntiAffinityPriority
...
Move ServiceAntiAffinityPriority to score plugin
2019-12-27 04:05:38 -08:00
SataQiu
134c545b96
proxy: add some interface type assertions
2019-12-27 18:30:25 +08:00
Wei Huang
8a4dce5431
Move pod topology spread predicate logic to its filter plugin
2019-12-26 23:56:03 -08:00
Kubernetes Prow Robot
9d31c9387c
Merge pull request #86635 from draveness/feature/move-volume-limits-predicates
...
feat(scheduling): move csi volume predicates to csi filter plugin
2019-12-26 22:27:51 -08:00
RainbowMango
eea91c018b
Cleanup testapi after it has been removed
2019-12-27 14:11:15 +08:00
danielqsj
f53c81f4a2
Move ServiceAntiAffinityPriority to score plugin
2019-12-27 10:02:13 +08:00
Kubernetes Prow Robot
d4ba10ec80
Merge pull request #85703 from robscott/endpointslice-controller-race-fix
...
Fixing Potential Race Condition in EndpointSlice Controller.
2019-12-26 17:59:52 -08:00
Kubernetes Prow Robot
4158e7c1de
Merge pull request #85123 from danielqsj/apierrs
...
Unify aliases for "k8s.io/apimachinery/pkg/api/errors"
2019-12-26 17:59:38 -08:00
draveness
291a7bb164
feat(scheduling): move csi volume predicates to csi filter plugin
2019-12-27 09:14:35 +08:00
Kubernetes Prow Robot
40320be679
Merge pull request #86612 from andyzhangx/azuredisk-excludepath
...
fix: azure disk could not mounted on Standard_DC4s/DC2s instances
2019-12-26 13:43:51 -08:00
Rob Scott
c75787bb77
Fixing Potential Race Condition in EndpointSlice Controller.
...
This adds a new EndpointSlice tracker to keep track of the expected resource versions of EndpointSlices associated with each Service managed by the EndpointSlice controller. This should prevent a potential race where a syncService call could happen with an incomplete view of EndpointSlices if additions or deletions hadn't fully propagated to the cache yet. Additionally, this ensures that external changes to EndpointSlices will be handled by the EndpointSlice controller.
2019-12-26 12:15:38 -08:00
zouyee
89867e1c21
Move CheckNodeUnschedulable predicate to its filter plugin
...
Signed-off-by: Zou Nengren <zouyee1989@gmail.com>
2019-12-26 21:38:27 +08:00
zouyee
c4331b0369
Move VolumeZone predicate to its Filter plugin
...
Signed-off-by: Zou Nengren <zouyee1989@gmail.com>
2019-12-26 21:36:11 +08:00
Kubernetes Prow Robot
04d71d8a7b
Merge pull request #86614 from ahg-g/ahg1-default2
...
Deprecate scheduler predicate and priority factory registration and associated types
2019-12-26 05:21:38 -08:00
danielqsj
19fe9f8d94
replace grpc.WithDialer which is deprecated
2019-12-26 17:46:59 +08:00
danielqsj
5bc0e26c19
unify alias of api errors under pkg and staging
2019-12-26 16:42:28 +08:00
Kubernetes Prow Robot
f13e2ed491
Merge pull request #86591 from ahg-g/ahg1-default
...
Added scheduler algorithm provider registrey.
2019-12-25 18:25:38 -08:00
Abdullah Gharaibeh
2b3df3587e
Deprecate scheduler predicate and priority factory registration
2019-12-25 20:33:08 -05:00
Kubernetes Prow Robot
c84b1a8a10
Merge pull request #86601 from angao/no-disk-conflict
...
move NoDiskConflict predicate to its filter plugin
2019-12-25 15:27:38 -08:00
Kubernetes Prow Robot
bd1195c28e
Merge pull request #86580 from zouyee/rlp
...
Move ResourceLimitsPriority to its Score plugin
2019-12-25 07:39:38 -08:00
andyzhangx
36393390f4
fix: azure disk could not mounted on Standard_DC4s/DC2s instances
2019-12-25 13:55:58 +00:00
Alex Wang
e5168cc7bb
move nodepreferavoidpods to score plugin
2019-12-25 17:26:58 +08:00
zouyee
bf2b709e82
Move ResourceLimitsPriority to its Score plugin
...
Signed-off-by: Zou Nengren <zouyee1989@gmail.com>
2019-12-25 16:41:40 +08:00
Kubernetes Prow Robot
26253903b5
Merge pull request #86595 from draveness/feature/move-node-affinity-to-score-plugin
...
feat: implement node affinity priority as score plugin
2019-12-25 00:01:43 -08:00
yue9944882
141909fa2e
tighten ceiling for matching-precedence to 10000
2019-12-25 15:47:11 +08:00
Wen Gao
e5d90c57f0
move NoDiskConflict predicate to its filter plugin
2019-12-25 15:44:59 +08:00
Abdullah Gharaibeh
8fc21710e7
Added scheduler algorithm provider registery.
2019-12-25 00:48:52 -05:00
notpad
c33c4fffd1
Move RequestedToCapacityRatio to plugins/noderesources
2019-12-25 12:18:32 +08:00
draveness
75872b8e79
feat: implement node affinity priority as score plugin
...
+ Add DefaultNormalizeScore function
+ Implement NodeAffinity as score plugin
2019-12-25 10:53:35 +08:00
Kubernetes Prow Robot
e94cf58f25
Merge pull request #86593 from ahg-g/ahg1-intree
...
Cleanup scheduler's in-tree plugins registry naming
2019-12-24 18:39:29 -08:00
Kubernetes Prow Robot
bb7bad49f5
Merge pull request #86588 from hase1128/clean-up-apiserver-document
...
Clean up kube-apiserver reference document
2019-12-24 15:17:29 -08:00
Abdullah Gharaibeh
fe7de96ebe
cleanup scheduler's in-tree plugins registry naming
2019-12-24 15:56:36 -05:00
Kubernetes Prow Robot
24469a3692
Merge pull request #86585 from SataQiu/scheduler-taint-toleration
...
"Move Taint and toleration priority to its Score plugin"
2019-12-24 11:43:29 -08:00
Kubernetes Prow Robot
0c54ec3e4c
Merge pull request #86577 from draveness/feature/remove-total-num-nodes-in-metdata
...
fix: remove totalNumNodes from priority metadata
2019-12-24 08:41:29 -08:00
Jin Hase
49b6e40461
Clean up kube-apiserver reference document
2019-12-24 21:21:06 +09:00
sunxiaofei03
97676963c3
deprecate scheduling_algorithm_predicate/priority_evaluation_seconds
2019-12-24 19:41:01 +08:00
Kubernetes Prow Robot
175ee0a111
Merge pull request #86542 from zouyee/nodeinfocheck
...
introduce checker for the result of nodeInfo.Node()
2019-12-24 03:23:29 -08:00
SataQiu
21c916c3d2
move Taint and toleration predicate to its Score plugin
2019-12-24 19:22:12 +08:00
sunxiaofei03
70b80ae28a
Deprecate scheduling_duration_seconds Summary metric
2019-12-24 19:17:29 +08:00
libnux
f0e01bcfde
Change log level to 3 when --random-fully is not supported
2019-12-24 17:47:27 +08:00
draveness
5fd6b8fae7
fix: remove totalNumNodes from priority metadata
2019-12-24 15:45:04 +08:00
Kubernetes Prow Robot
39d0710a4b
Merge pull request #86530 from zouyee/vbb
...
Move volumebinding predicate to its filter plugin
2019-12-23 22:05:29 -08:00
Kubernetes Prow Robot
d758fc3edb
Merge pull request #81886 from praseodym/fix-staticcheck-pkg/proxy
...
Fix staticcheck failures for pkg/proxy/...
2019-12-23 17:33:29 -08:00
zouyee
bae72ee8d2
using string instead of byte
...
Signed-off-by: Zou Nengren <zouyee1989@gmail.com>
2019-12-24 09:23:02 +08:00
zouyee
bf8a8a657c
introduce checker for the result of nodeInfo.Node()
...
Signed-off-by: Zou Nengren <zouyee1989@gmail.com>
2019-12-24 09:11:40 +08:00
Kubernetes Prow Robot
5e31799701
Merge pull request #86534 from liggitt/ipallocator-range
...
Restore IPAllocator ipv4 range handling
2019-12-23 13:25:29 -08:00
Kubernetes Prow Robot
06fb3eb582
Merge pull request #86496 from ahg-g/ahg1-check
...
Support AlwaysCheckAllPredicates in the scheduler framework.
2019-12-23 09:53:33 -08:00
Maciej Szulik
fcae27b9d2
If lastTimestamp is not set use firstTimestamp when printing event
2019-12-23 17:07:04 +01:00
draveness
3f591bb2dd
feat: implement image locality as score plugin
2019-12-23 23:05:23 +08:00
zouyee
83408acf75
Move volumebinding predicate to its filter plugin
...
Signed-off-by: Zou Nengren <zouyee1989@gmail.com>
2019-12-23 21:57:49 +08:00
Jordan Liggitt
6a1354252d
Add unit test for extended ipv4 service IP range
2019-12-22 22:32:42 -05:00
Jordan Liggitt
df4f5c1a30
Revert "remove ipallocator in favor of k/utils net package"
...
This reverts commit f984b4c7a2
.
2019-12-22 22:31:25 -05:00
Mark Janssen
a54e5cec54
Fix staticcheck failures for pkg/proxy/...
...
Errors from staticcheck:
pkg/proxy/healthcheck/proxier_health.go:55:2: field port is unused (U1000)
pkg/proxy/healthcheck/proxier_health.go:162:20: printf-style function with dynamic format string and no further arguments should use print-style function instead (SA1006)
pkg/proxy/healthcheck/service_health.go:166:20: printf-style function with dynamic format string and no further arguments should use print-style function instead (SA1006)
pkg/proxy/iptables/proxier.go:737:2: this value of args is never used (SA4006)
pkg/proxy/iptables/proxier.go:737:15: this result of append is never used, except maybe in other appends (SA4010)
pkg/proxy/iptables/proxier.go:1287:28: this result of append is never used, except maybe in other appends (SA4010)
pkg/proxy/userspace/proxysocket.go:293:3: this value of n is never used (SA4006)
pkg/proxy/winkernel/metrics.go:74:6: func sinceInMicroseconds is unused (U1000)
pkg/proxy/winkernel/metrics.go:79:6: func sinceInSeconds is unused (U1000)
pkg/proxy/winuserspace/proxier.go:94:2: field portMapMutex is unused (U1000)
pkg/proxy/winuserspace/proxier.go:118:2: field owner is unused (U1000)
pkg/proxy/winuserspace/proxier.go:119:2: field socket is unused (U1000)
pkg/proxy/winuserspace/proxysocket.go:620:4: this value of n is never used (SA4006)
2019-12-22 21:32:06 +01:00
Kubernetes Prow Robot
2d310b1321
Merge pull request #86346 from SataQiu/bump-utils-20191217
...
Bump k8s.io/utils version
2019-12-21 23:55:32 -08:00
Kubernetes Prow Robot
ff975e865d
Merge pull request #86498 from Huang-Wei/deprecate-failedPredicateMap
...
Cleanup failedPredicateMap from generic_scheduler.go
2019-12-21 08:41:33 -08:00
Abdullah Gharaibeh
eeb8a5b728
Added back the flag to trigger examining all Filters in the scheduler.
2019-12-21 05:17:23 -05:00
SataQiu
2497a1209b
bump k8s.io/utils version
2019-12-21 14:54:44 +08:00
Kubernetes Prow Robot
8737890681
Merge pull request #86459 from ahg-g/ahg1-affinity-pred
...
move inter pod affinity predicate logic to its Filter plugin
2019-12-20 18:28:08 -08:00
Wei Huang
3e65b3793f
Cleanup failedPredicateMap from generic_scheduler.go
2019-12-20 15:18:15 -08:00
Abdullah Gharaibeh
429448cb40
move inter pod affinity predicate logic to its Filter plugin
2019-12-20 16:58:36 -05:00
Wei Huang
1f78a936d4
Deprecate AlwaysCheckAllPredicates in scheduler Policy API
2019-12-20 11:41:33 -08:00
Kubernetes Prow Robot
9fa1e00be9
Merge pull request #83437 from matthyx/startupprobe-beta
...
Promote StartupProbe to beta for 1.18
2019-12-20 00:59:32 -08:00
Kubernetes Prow Robot
b632eaddba
Merge pull request #86446 from ahg-g/ahg1-nodelabel
...
Move NodeLabel priority logic to its Score and Filter plugin
2019-12-19 15:37:21 -08:00
Kubernetes Prow Robot
641d0290e4
Merge pull request #86399 from ahg-g/ahg1-prioritymeta
...
InterPodAffinity Priority as Score plugin
2019-12-19 13:39:56 -08:00
Kubernetes Prow Robot
03e90b80ce
Merge pull request #86167 from yiyang5055/change-CounterVec-to-Counter
...
change CounterVec to use Counter in the Kubelet's Pod Lifecycle Event…
2019-12-19 11:33:56 -08:00
Abdullah Gharaibeh
68f3802ba8
move NodeLabel predicate logic to its Filter plugin
2019-12-19 14:00:39 -05:00
Abdullah Gharaibeh
119a9a94d1
InterPodAffinity Priority as Score plugin
2019-12-19 13:42:49 -05:00
Abdullah Gharaibeh
22a0f55a68
move NodeLabel priority logic to its Score plugin
2019-12-19 13:35:43 -05:00
Kubernetes Prow Robot
9f841bf423
Merge pull request #86425 from jkaniuk/revert-85879
...
Revert pull request #85879 "hollow-node use remote CRI"
2019-12-19 10:12:21 -08:00
Kubernetes Prow Robot
9fad2e3201
Merge pull request #84611 from cwdsuzhou/Nov/simplyfy_zone_checker
...
Simplify volume zone checker codes
2019-12-19 08:09:57 -08:00
whypro
f4bd4e2e96
Return error instead of panic when cpu manager starts failed.
2019-12-19 21:56:23 +08:00
chenyaqi01
c5002a348e
kubenet: replace gateway with cni result
2019-12-19 18:32:25 +08:00
Jacek Kaniuk
4303be3d9f
Revert pull request #85879 "hollow-node use remote CRI"
2019-12-19 10:52:35 +01:00
sshukun
12a5bdec00
Fix go-lint issues in package pkg/kubelet/checkpointmanager/testing/example_checkpoint_formats/v1
2019-12-19 12:53:33 +09:00
Kubernetes Prow Robot
5cb1ec5fea
Merge pull request #86298 from aojea/netpolicyv6
...
networkPolicy ipv6 unit tests validation
2019-12-18 10:37:57 -08:00
Kubernetes Prow Robot
814fc34cde
Merge pull request #85879 from gongguan/cri-kubemark
...
hollow-node use remote CRI
2019-12-18 06:01:57 -08:00
Kubernetes Prow Robot
2796ff8538
Merge pull request #85279 from RainbowMango/pr_add_metrics_flag_to_proxy
...
Allow show hidden metrics in kube-proxy
2019-12-18 00:57:57 -08:00
Kubernetes Prow Robot
77c565025a
Merge pull request #86289 from ahg-g/ahg1-metadata
...
Deprecate PredicateMetadata
2019-12-17 23:42:10 -08:00
louisgong
e8e1cc9ee0
extract PreInitRuntimeService from NewMainKubelet
2019-12-18 11:48:29 +08:00
RainbowMango
6b33a77068
Adopt kubeadm and kubeproxy unit test after new config field added.
...
Fix proxy unit test
2019-12-18 11:09:26 +08:00
Kubernetes Prow Robot
e397797f9e
Merge pull request #85735 from alvaroaleman/make-node-initialization-more-efficient
...
Cloud node controller: Only call once into cloud provider
2019-12-17 17:35:57 -08:00
Kubernetes Prow Robot
40df9f82d0
Merge pull request #82492 from gnufied/fix-uncertain-mounts
...
Fix uncertain mounts
2019-12-17 14:49:57 -08:00
Kubernetes Prow Robot
e5f0648c6b
Merge pull request #86284 from ahg-g/ahg1-prefilter2
...
Register nodeports and noderesources prefilters
2019-12-17 12:01:10 -08:00
Kubernetes Prow Robot
e1c7112276
Merge pull request #85517 from andrewsykim/ipvs-timeout
...
support configuration of kube-proxy IPVS tcp,tcpfin,udp timeout
2019-12-17 12:00:43 -08:00
Kubernetes Prow Robot
a1fc96f41e
Merge pull request #84462 from klueska/upstream-cpu-manager-update-state-semantics
...
Update CPUManager stored state semantics
2019-12-17 12:00:12 -08:00
Alvaro Aleman
18fa7bdb6e
Cloud node controller: Only call once into cloud provider
2019-12-17 20:03:27 +01:00
Kubernetes Prow Robot
d0e901807d
Merge pull request #85771 from aojea/iptables_lock
...
Be more agressive acquiring the iptables lock
2019-12-17 08:32:02 -08:00
Kubernetes Prow Robot
fb0956c234
Merge pull request #85016 from hvaara/fix-golint-pkg-util-sysctl-testing
...
Fix golint issues in pkg/util/sysctl/testing
2019-12-17 06:18:13 -08:00
RainbowMango
4eb61e3f93
Deal with auto-generated files:
...
- Update bazel by hack/update-bazel.sh
- make update
2019-12-17 21:46:41 +08:00
RainbowMango
9b7d8712cf
Add show hidden flag to kube-proxy
2019-12-17 21:46:41 +08:00
Abdullah Gharaibeh
770e51cd10
Deprecate PredicateMetadata
2019-12-17 08:02:59 -05:00
Abdullah Gharaibeh
b3abfdc9e4
registered nodeports and noderesources prefilters
2019-12-17 07:29:37 -05:00
Kubernetes Prow Robot
ec4f3e3064
Merge pull request #86319 from Huang-Wei/fluffout-sched-tests
...
Fix up the sub-test style
2019-12-17 04:20:32 -08:00
Kubernetes Prow Robot
a57a8f33b3
Merge pull request #86277 from yutedz/subpath-walk-nil
...
Check FileInfo against nil during walk of container dir path
2019-12-17 04:20:22 -08:00
Kevin Klues
9818b4522e
Add klueska as an approver in pkg/kubelet/cm/OWNERS
2019-12-17 10:40:23 +01:00
Andrew Sy Kim
db2c048db9
support configuration of kube-proxy IPVS tcp,tcpfin,udp timeout
...
Signed-off-by: Andrew Sy Kim <kiman@vmware.com>
2019-12-17 04:35:08 -05:00
Kubernetes Prow Robot
42fe74cd2c
Merge pull request #86142 from raz-bn/add-complete-event
...
Adding new job completed event
2019-12-16 23:43:58 -08:00
Vallery Lancey
23957a6b28
Allow kube-proxy iptables mode to support dual-stack, with the meta-proxier.
2019-12-16 22:50:25 -08:00
Kubernetes Prow Robot
0633e2cd34
Merge pull request #86303 from langyenan/misspell
...
fix misspelling in comment
2019-12-16 21:39:49 -08:00
Kubernetes Prow Robot
d2c5d0ae70
Merge pull request #86264 from ahg-g/ahg1-svcmeta
...
Move service affinity predicate logic to its plugin.
2019-12-16 21:39:39 -08:00
Kubernetes Prow Robot
3c951b1bb6
Merge pull request #86261 from troy0820/auth/kubectl-can-i-example
...
[auth]Change example in can-i to apps instead of extensions
2019-12-16 21:39:30 -08:00
Kubernetes Prow Robot
0ab1583240
Merge pull request #85747 from tnqn/networkpolicy-validation
...
Fix NetworkPolicy PolicyTypes validation
2019-12-16 21:38:04 -08:00
Ted Yu
62d7772882
Check FileInfo against nil during walk of container dir path
2019-12-16 17:59:17 -08:00
Kubernetes Prow Robot
a931227952
Merge pull request #83504 from lyft/remove-all-terminated-containers
...
cri_stats_provider: do not consider exited containers when calculating cpu usage
2019-12-16 17:53:39 -08:00
raz-bn
0224c48120
Job completed event added
2019-12-16 21:41:15 +00:00
Wei Huang
82afa2bbaf
Fix up the sub-test style
2019-12-16 11:28:12 -08:00
Jordan Liggitt
a65d8aeb76
Add UID precondition to kubelet pod status patch updates
2019-12-16 14:27:32 -05:00
Jacek Kaniuk
8fae8e54af
Disable excessive logging in scheduler plugins
2019-12-16 15:14:39 +01:00
ianlang
c9418412d1
fix misspelling in comment
2019-12-16 17:27:08 +08:00
Antonio Ojea
f401d711aa
networkPolicy validation ipv6 unit tests
...
Add ipv6 cases to the validation unit tests.
2019-12-16 08:46:53 +01:00
RainbowMango
c394d821fd
Deal with auto-generated files:
...
- Update bazel by hack/update-bazel.sh
2019-12-16 10:27:02 +08:00
RainbowMango
ecf5f7d749
Deprecated metrics under /metrics/resource/v1alpha1
2019-12-16 10:27:02 +08:00
RainbowMango
0db7074e1a
Add new endpoint for resource metrics.
2019-12-16 10:26:54 +08:00
Abdullah Gharaibeh
7331ec7b02
Move service affinity predicate logic to its plugin.
2019-12-15 13:56:31 -05:00
Matthias Bertschy
6603f41a13
Promote StartupProbe to beta for 1.18
2019-12-15 14:49:34 +01:00
Abdullah Gharaibeh
02a0aad6d3
podfitsresource metadata as prefilter
2019-12-14 00:51:25 -05:00
Wei Huang
3d353f5122
Update semantics of EvenPodsSpread metadata object
...
- Now `nil` represents the meta is not set at all (in PreFilter phase)
- An empty `PodTopologySpreadMetadata` object denotes it's a legit meta and is set in PreFilter phase.
2019-12-13 16:33:22 -08:00
Wei Huang
468aebc17f
Move EvenPodsSpread metadata computation logic as a PreFilter Plugin
2019-12-13 16:33:21 -08:00
Kubernetes Prow Robot
efe159e8d2
Merge pull request #86224 from ahg-g/ahg-prefilters
...
Wrap host ports metadata in a prefilter
2019-12-13 16:19:58 -08:00
Kubernetes Prow Robot
6a919f2b54
Merge pull request #85903 from liggitt/disable-deprecated-apis
...
Remove ability to re-enable serving deprecated APIs
2019-12-13 16:19:36 -08:00
Kubernetes Prow Robot
69410eca4b
Merge pull request #86256 from liggitt/testapi
...
Remove use of testapi package
2019-12-13 12:55:50 -08:00
Troy Connor
314b6cb32b
[auth]Change example in can-i to apps instead of extensions
2019-12-13 13:36:48 -05:00
Abdullah Gharaibeh
6f3c68bd5c
compatibility tests for default provider and mandatory filters
2019-12-13 12:47:15 -05:00
Jordan Liggitt
0387cc7cb3
Update generated files
2019-12-13 12:23:39 -05:00
Jordan Liggitt
e9870c3076
Update storage hash to use ingress type for cross-group comparison
2019-12-13 12:21:33 -05:00
Jordan Liggitt
f2f22b84cd
Delete ReplicationControllerDummy
2019-12-13 12:21:33 -05:00
Jordan Liggitt
3df9e86a4e
Remove ability to re-enable serving deprecated APIs
2019-12-13 12:21:33 -05:00
Jordan Liggitt
424d5e20df
Remove testapi
2019-12-13 11:56:29 -05:00
Jordan Liggitt
78a3a4a2b1
Remove testapi use from pkg/api/testing
2019-12-13 11:56:29 -05:00
Jordan Liggitt
5d5b444c4d
Remove use of testapi codecs, selflink, resourcepath functions
2019-12-13 11:56:29 -05:00
Jordan Liggitt
bb90f0ff94
Install APIs directly for tests
2019-12-13 11:56:29 -05:00
Kubernetes Prow Robot
873356c0cc
Merge pull request #83302 from yuyulei/storage-quantity
...
add getting Storage Quantity to ResourceList
2019-12-13 07:56:55 -08:00
Abdullah Gharaibeh
c54dbd85e0
wrap host ports metadata in a prefilter.
2019-12-13 09:16:25 -05:00
Kubernetes Prow Robot
c34d140241
Merge pull request #86129 from damemi/remove-priority-code
...
Remove priority execution path from prioritizeNodes in generic_scheduler
2019-12-13 01:41:04 -08:00
Kubernetes Prow Robot
f67d3b1a7d
Merge pull request #86229 from ahg-g/ahg-ds
...
Remove daemonset controller's dependency on scheduler metadata
2019-12-13 00:26:54 -08:00
yaqi
d146e1941d
Add getting Storage Quantity to ResourceList
2019-12-13 10:54:31 +08:00
Kubernetes Prow Robot
7e01fe12bf
Merge pull request #86228 from ahg-g/ahg-r1
...
Deprecate scheduler's FailureReason
2019-12-12 18:33:32 -08:00
Kubernetes Prow Robot
6715e35530
Merge pull request #86175 from ahg-g/ahg1-prefilters
...
Wrap InterPodAffinity predicate metadata as a Prefilter
2019-12-12 18:33:19 -08:00
Kubernetes Prow Robot
ae717afc0d
Merge pull request #86140 from yutedz/rs-rm-timeout
...
Do not swallow timeout in manageReplicas
2019-12-12 18:33:07 -08:00
Kubernetes Prow Robot
6db550d1db
Merge pull request #85789 from ZP-AlwaysWin/dev-1202
...
Remove unnecessary nil check in if statement in nodelease controller
2019-12-12 18:32:54 -08:00
Mike Dame
255ab6d2c3
Remove priority execution paths in favor of score plugins
...
Mainly affects core/generic_scheduler.go (and related tests). Removes the "prioritizers" field and related functions.
2019-12-12 19:30:44 -05:00
Abdullah Gharaibeh
288609ecf5
remove ds dependeny on scheduler metadata
2019-12-12 19:04:36 -05:00
Abdullah Gharaibeh
70a2bccfd6
deprecate scheduler's FailureReason
2019-12-12 18:54:52 -05:00
Abdullah Gharaibeh
2fdf1fa3c1
inter-pod affinity prefilter
2019-12-12 15:20:14 -05:00
Ted Yu
9cff345770
Do not swallow timeout in manageReplicas
2019-12-12 11:27:36 -08:00
David Ashpole
fca84c02bb
add dashpole as kubelet approver
2019-12-12 11:10:24 -08:00
Kubernetes Prow Robot
bb03061010
Merge pull request #86218 from ahg-g/ahg-framework
...
Add an interface to return scheduler framework instance
2019-12-12 11:06:32 -08:00
Kubernetes Prow Robot
442107b6b9
Merge pull request #86092 from robscott/endpointslice-proxy-cache-fix
...
Ensuring kube-proxy does not mutate shared EndpointSlices
2019-12-12 08:12:32 -08:00
Abdullah Gharaibeh
9f334a4d08
Add an interface to return scheduler framework instance
2019-12-12 10:47:32 -05:00
draveness
02f335d476
feat: remove several feature gates in 1.18
2019-12-12 18:17:14 +08:00
draveness
dcea6ff065
fix: remove TaintNodesByCondition feature gate in daemon controller
2019-12-12 18:17:14 +08:00
Kubernetes Prow Robot
010291d4dc
Merge pull request #84951 from yutedz/status-mgr-sync-static
...
Sync the status of static Pods
2019-12-11 19:40:32 -08:00
Hemant Kumar
ca532c6fb2
Ensure that error is returned on NodePublish
2019-12-11 22:10:09 -05:00
Kevin Klues
f553286156
Pass initial set of runtime containers to the CPUManager at startup
...
These information associatedd with these containers is used to migrate
the CPUManager state from it's old format to its new (i.e. keyed off of
podUID and containerName instead of containerID).
2019-12-11 23:02:51 +01:00
Kevin Klues
6441e1ef43
Move CPUManager Checkpoint restoration to Start() instead of New()
2019-12-11 23:02:51 +01:00
Kevin Klues
69f8053850
Update top-level CPUManager to adhere to new state semantics
...
For now, we just pass 'nil' as the set of 'initialContainers' for
migrating from old state semantics to new ones. In a subsequent commit
will we pull this information from higher layers so that we can pass it
down at this stage properly.
2019-12-11 23:02:51 +01:00
Kevin Klues
185e790f71
Update CPUManager policies to adhere to new state semantics
2019-12-11 23:02:51 +01:00
Kevin Klues
7c760fea38
Change CPUManager state to key off of podUID and containerName
...
Previously, the state was keyed off of containerID intead of podUID and
containerName. Unfortunately, this is no longer possible as we move to a
to model where we we allocate CPUs to containers at pod adit time rather
than container start time.
This patch is the first step towards full migration to the new
semantics. Only the unit tests in cpumanager/state are passing. In
subsequent commits we will update the CPUManager itself to use these new
semantics.
This patch also includes code to do migration from the old checkpoint format
to the new one, assuming the existence of a ContainerMap with the proper
mapping of (containerID)->(podUID, containerName). A subsequent commit
will update code in higher layers to make sure that this ContainerMap is
made available to this state logic.
2019-12-11 23:02:51 +01:00
Kevin Klues
9191a949ae
Extend makePod() helper in CPUManager to take PodUID and ContainerName
2019-12-11 23:02:51 +01:00
Kevin Klues
7a15d3a4d7
Fix bug in parsing int to string in CPUManager tests
2019-12-11 23:02:51 +01:00
Kevin Klues
765aae93f8
Move containerMap out of static policy and into top-level CPUManager
2019-12-11 23:02:51 +01:00
Kevin Klues
1d995c98ef
Update CPUmanager containerMap to allow removal by containerRef
2019-12-11 23:02:47 +01:00
Kevin Klues
0639bd0942
Change CPUManager containerMap to key off of (podUID, containerName)
...
Previously it keyed off of a pointer to the actual pod / container,
which was unnecessary, and hard to work with (especially on the
retrieval side).
2019-12-11 23:02:11 +01:00
Kevin Klues
3881e50cce
Update CPUmanager containerMap to also return a containerRef
2019-12-11 23:01:01 +01:00
Kevin Klues
347d5f57ac
Move CPUManager ContainerMap to its own package
2019-12-11 22:59:00 +01:00
Jordan Liggitt
cdf2e794a5
Clarify intstr.IntValue() behavior
2019-12-11 12:14:26 -05:00
yiyang5055
0f410d625a
change CounterVec to use Counter in the Kubelet's Pod Lifecycle Event Generator
2019-12-11 23:51:28 +08:00
Kubernetes Prow Robot
cfdc365525
Merge pull request #86133 from Huang-Wei/cleanup-predicate-path
...
Eliminate running paths of Predicates in scheduler
2019-12-11 06:18:06 -08:00
Kubernetes Prow Robot
928817a26a
Merge pull request #74525 from gliush/configurable-hpa-limits
...
Configurable HorizontalPodAutoscaler
2019-12-11 03:18:05 -08:00
Wei Huang
dc3d1bd238
Eliminate running paths of Predicates in scheduler
...
- eliminate running paths of Predicates in scheduler; use Filter Plugins instead.
- refactor all unit tests
- adjust the TestPreemptWithPermitPlugin integration test
2019-12-10 19:14:13 -08:00
Kubernetes Prow Robot
4000732bec
Merge pull request #85463 from AkihiroSuda/allow-net-ipv4-ping_group_range
...
SafeSysctlWhitelist: add net.ipv4.ping_group_range (allow ping without CAP_NET_RAW)
2019-12-10 16:05:06 -08:00
Kubernetes Prow Robot
7933002ba2
Merge pull request #85452 from byteor/master
...
[pkg/auth/nodeidentifier/default_test.go]: fix testing error message typo
2019-12-10 16:04:49 -08:00
Kubernetes Prow Robot
9ddbc90039
Merge pull request #84191 from langyenan/getTypedVersion
...
invoke getTypedVersion() instead of direct runtime call
2019-12-10 16:04:19 -08:00
Rob Scott
49e4bd137b
Ensuring kube-proxy does not mutate shared EndpointSlices
2019-12-10 13:18:04 -08:00
Kubernetes Prow Robot
c7a65ca0c3
Merge pull request #85446 from RainbowMango/pr_remove_RawRegister
...
Remove the derprecated API RawRegister from stability framework
2019-12-10 12:16:20 -08:00
Arjun Naik
8ab226263a
Adds tests
...
Signed-off-by: Arjun Naik <arjun@arjunnaik.in>
2019-12-10 18:09:20 +01:00
Ivan Glushkov
ac23d55d90
Generates boilerplate code
2019-12-10 20:38:09 +04:00
Ivan Glushkov
27ffe439b6
Adds the algorithm implementation for the Configurable HPA
2019-12-10 20:37:33 +04:00
Ivan Glushkov
5c70cda6e5
Adds validation rules and proper defaults
2019-12-10 20:37:19 +04:00
Ivan Glushkov
141eaf79ee
Introduces all API changes needed for Configurable HPA PR
2019-12-10 20:37:03 +04:00
Kubernetes Prow Robot
9bf52c2aa6
Merge pull request #86046 from ahg-g/ahg1-affinity
...
Optimize required pod affinity (2)
2019-12-09 17:39:28 -08:00
Kubernetes Prow Robot
d842c194c2
Merge pull request #86022 from Huang-Wei/sched-reserve-multi-errs
...
Return all scheduler predicate failures instead of the first one
2019-12-09 14:00:26 -08:00
Abdullah Gharaibeh
32dc70e0f1
optimize required inter-pod affinity
2019-12-09 16:21:13 -05:00
Kubernetes Prow Robot
ff8cf507dc
Merge pull request #83841 from RainbowMango/pr_hide_kubelet_deprecated_metrics
...
Turn off kubelet deprecated metrics
2019-12-09 11:30:02 -08:00
Kubernetes Prow Robot
fcc35b0468
Merge pull request #85899 from gongguan/slim_down_lister
...
slim down some lister expansions
2019-12-09 07:20:17 -08:00
Kubernetes Prow Robot
398e2bcc73
Merge pull request #85874 from sambdavidson/ttlFunc
...
Kubelet cert TTL via GaugeFunc
2019-12-09 07:20:02 -08:00
ianlang
babdcd0d14
invoke getTypedVersion() instead of direct runtime call
2019-12-09 15:31:45 +08:00
Wei Huang
a136108d2b
Return all predicate failures instead of the first one
2019-12-08 21:10:40 -08:00
Kubernetes Prow Robot
77a95dce68
Merge pull request #85959 from ahg-g/ahg-affinity-opt
...
Refactor and optimize preferred (anti) pod affinity
2019-12-06 19:49:25 -08:00
Kubernetes Prow Robot
95878329d4
Merge pull request #86009 from rphillips/fixes/at_most_one_ref
...
kubelet: guarantee at most only one cinfo per containerID
2019-12-06 17:06:15 -08:00
Kubernetes Prow Robot
e624d1b7bf
Merge pull request #85001 from bmoix/fix-golint-kubelet-httpgetter
...
kubelet: rename HTTPGetter interface
2019-12-06 17:05:53 -08:00
louisgong
7f5076d8ee
slim down some lister expansions
2019-12-07 08:27:06 +08:00
Samuel Davidson
aba0b31526
Changed Kubelet client and serving cert TTL/Expiry certs to use gaugefunc for calculating time remaining.
2019-12-06 15:52:03 -08:00
Kubernetes Prow Robot
c9f690d418
Merge pull request #85170 from timyinshi/logSymlink
...
modify dockerID to containerID
2019-12-06 14:27:35 -08:00
Kubernetes Prow Robot
c577031abb
Merge pull request #76741 from logicalhan/install-tunneler-bugs
...
Two bugfixes in installTunneler
2019-12-06 14:27:22 -08:00
Ryan Phillips
4762985fb6
kubelet: guarantee at most only one cinfo per containerID
...
The trailing for loop removed within this PR can include active and
inactive references. This modification will gauarantee at most only one
reference per container is returned.
2019-12-06 14:11:08 -06:00
Abdullah Gharaibeh
53be26e402
optimize preferred pod affinity
2019-12-06 12:59:06 -05:00
Valentyn Boginskey
6b8b8491bb
Raise verbosity of kubelet_node_status messages
...
In standalone kubelet scenarios, `initialNode` gets called in a loop via
`syncPod` -> `GetNode` -> `initialNode`. This causes excessive log spam
from the controller attach/detach messages.
2019-12-06 10:38:18 -05:00
Noah Kantrowitz
0ac25f51fc
Tiny typo in a comment.
2019-12-06 01:32:09 -08:00
louisgong
0dd468039d
inject remoteRuntime to kubelet dependency
2019-12-06 14:12:08 +08:00
Kubernetes Prow Robot
0ea756ff0a
Merge pull request #84688 from tahsinrahman/kubeproxyconfig-test
...
Increase test coverage for ComponentConfigs and add tests for kubeproxyconfiguration
2019-12-05 17:15:04 -08:00
Han Kang
6de7082978
remove two unused metrics
2019-12-05 16:30:21 -08:00
Han Kang
aaac96c660
Two bug fixes: (1) at least log something out if we fail to register our health check, (2) actually register a prometheus metric. I delete the deprecated metric in this block because there isn't any point to it, since no one can be broken by changing a metric that doesn't get collected
2019-12-05 16:30:21 -08:00
Kubernetes Prow Robot
b8ce44f006
Merge pull request #85863 from nan-yu/pdb_status_renaming
...
Rename PodDisruptionsAllowed to DisruptionsAllowed in type PodDisruptionBudgetStatus
2019-12-05 15:54:49 -08:00
Kubernetes Prow Robot
060e0de56d
Merge pull request #85945 from obitech/kubelet_refactor_lenient_path
...
Refactor kubelet component config lenient path decoding
2019-12-05 13:51:03 -08:00
Kubernetes Prow Robot
c2b312bd22
Merge pull request #85790 from tanjunchen/fix-staticcheck-pkg-printers
...
fix staticcheck in pkg/printers
2019-12-05 13:50:54 -08:00
Kubernetes Prow Robot
ad5d4c4705
Merge pull request #85706 from yutedz/per-node-dev
...
Remove nodes slice in loop of takeByTopology
2019-12-05 13:50:30 -08:00
obitech
bf92350b11
Refactor kubelet component config lenient path decoding
...
Use NewLenientSchemeAndCodec function provided in k8s.io/component-base/codec
instead of private package function.
2019-12-05 19:23:48 +08:00
yuzhiquan
e057bd4ad2
fix: typo Snapshoting to Snapshotting
2019-12-05 10:42:35 +08:00
tanjunchen
40911e74c1
fix staticcheck in pkg/printers
2019-12-05 10:24:42 +08:00
Ted Yu
36784331eb
Sync the status of static Pods
2019-12-04 13:28:42 -08:00
Hemant Kumar
4b8e552a88
Use typed errors for special casing volume progress
...
Use typed errors rather than operation status for
indicating operation progress
2019-12-04 14:48:30 -05:00
Adelina Tuvenie
bc7d254317
Fix Cpu Requests priority Windows.
...
For Windows, CPU Requests ( Shares, Count and Maximum ) are mutually exclusive, however
Kubernetes sends them all anyway in the pod spec.
When using dockershim this is not an issue, as Docker checks for this specific situation
here: 1bd184a4c2/daemon/daemon_windows.go (L87-L106)
However, when using CRI-Containerd this pods fail to spawn with an error from hcsshim.
This PR intends to filter these values before they are sent to the CRI and not rely on the
runtime for it.
Related to: https://github.com/kubernetes/kubernetes/issues/84804
2019-12-04 19:32:26 +02:00
Kubernetes Prow Robot
f4caa62593
Merge pull request #85590 from yuzhiquan/master
...
handle registry merge error
2019-12-04 08:50:57 -08:00
Kubernetes Prow Robot
97a4e6683e
Merge pull request #85634 from hwdef/fix-staticcheck14
...
pkg/master: Fix static check failures
2019-12-04 07:18:57 -08:00
louisgong
b469404d97
hollow-node use remote CRI
2019-12-04 17:07:04 +08:00
Kubernetes Prow Robot
ac5dc1fc68
Merge pull request #85844 from shaloulcy/add_configmap_predicate_func
...
add PredicateFunc for configmap
2019-12-03 19:45:12 -08:00
Kubernetes Prow Robot
370e2f4b29
Merge pull request #85862 from ahg-g/ahg-antiAffinity
...
Partially avoid LabelSelectorAsSelector overhead in anti-pod affinity calculation
2019-12-03 18:35:23 -08:00
Kubernetes Prow Robot
ca7ad98d60
Merge pull request #85470 from cwdsuzhou/add_pod_info
...
add pod info when failing to add pod to unschedulableQ
2019-12-03 18:35:10 -08:00
Dc.Hannibal
9a9db00451
handle registry merge error
...
Handle registry merge error.
Add test case
Add a test case in TestSchedulerCreation
Add test case comment
Add test case comment, and modify error msg.
gofmt
gofmt import order
replace NewDefaultRegistry with a fake registry
update comment
rename framework plugins nodeaffinity import
remove nodeaffinity plugin import, get fake registry name from default registry randomly
Add a space
Add a space after //
update comment, trans FrameWork to Framework
2019-12-04 09:21:18 +08:00
Kubernetes Prow Robot
fe97fbb2e6
Merge pull request #85071 from hvaara/fix-golint-pkg-apis-batch-validation
...
Fix golint issues in pkg/apis/batch/validation
2019-12-03 17:00:57 -08:00
Kubernetes Prow Robot
bb9981e19f
Merge pull request #85046 from hvaara/fix-golint-pkg-registry--storage
...
Fix golint issues in pkg/registry/.../storage
2019-12-03 15:47:11 -08:00
Kubernetes Prow Robot
eff703de21
Merge pull request #84005 from yue9944882/chore/crd-internal-client-prune
...
Prune internal clients from CRD apiserver
2019-12-03 15:46:57 -08:00
Nan Yu
1fb0dd4ec5
Rename PodDisruptionsAllowed to DisruptionsAllowed in type PodDisruptionBudgetStatus
2019-12-03 14:26:35 -08:00
Abdullah Gharaibeh
2d3c8fe6b9
optimize anti-affinity predicate
2019-12-03 15:44:57 -05:00
Kubernetes Prow Robot
b141a990c3
Merge pull request #85820 from ahg-g/ahg-queue
...
Start and stop the scheduling queue consistently
2019-12-03 11:41:14 -08:00
Kubernetes Prow Robot
205570eb75
Merge pull request #84614 from rphillips/fixes/add_cert_rotation_failure_metric
...
kubelet: add certificate rotation error metric
2019-12-03 11:40:57 -08:00
yue9944882
81471c36b1
[generated] bazels and vendor/modules.txt
...
[generated] bazels
bazel
2019-12-04 00:49:28 +08:00
yue9944882
15a883b067
s/apiextensions/apiextensionsv1/ for all imports in k/k
...
rename alias import
fmt
2019-12-04 00:49:27 +08:00
yue9944882
168f8f54f0
switch to v1 crd
...
switch api helper functions to v1 CRD api
switch v1 CRD for apiserver internal
switch to v1 CRD for internal controllers
api storage/validation related changes
move local-defaulting utils private to prevent spreading
boilerplate
keep the subresource status/scale spec nil unless it's enabled
clean up empty space
2019-12-04 00:49:26 +08:00
Antonio Ojea
51814ae189
Be more agressive acquiring the iptables lock
...
iptables has two options to modify the behaviour trying to
acquire the lock.
--wait -w [seconds] maximum wait to acquire xtables lock
before give up
--wait-interval -W [usecs] wait time to try to acquire xtables
lock
interval to wait for xtables lock
default is 1 second
Kubernetes uses -w 5 that means that wait 5 seconds to try to
acquire the lock. If we are not able to acquire it, kube-proxy
fails and retries in 30 seconds, that is an important penalty
on sensitive applications.
We can be a bit more aggresive and try to acquire the lock every
100 msec, that means that we have to fail 50 times to not being
able to succeed.
2019-12-03 17:38:13 +01:00
shaloulcy
efa34ba484
add PredicateFunc for configmap
...
Signed-off-by: shaloulcy <lcy041536@gmail.com>
2019-12-03 20:18:27 +08:00
Kubernetes Prow Robot
1e2b6176aa
Merge pull request #83289 from beautytiger/dev-190929-sctp
...
fix unit test in hostport_manager_test.go
2019-12-02 21:42:57 -08:00
Kubernetes Prow Robot
57b6b287d4
Merge pull request #85688 from yutedz/pods-to-rm
...
Reduce unnecessary Set in updateAllocatedDevices
2019-12-02 17:07:26 -08:00
Kubernetes Prow Robot
97e34ee223
Merge pull request #85475 from andyzhangx/upgrade-azure-storage-lib
...
upgrade api-version to fix azure file AuthorizationFailure
2019-12-02 17:07:10 -08:00
Sean Sullivan
9b32d8734f
Adds initial unit tests for tablegenerator.go
2019-12-02 14:21:51 -08:00
Abdullah Gharaibeh
f388534082
make scheduling queue start before the scheduler starts and stops after the scheduler stops
2019-12-02 14:35:09 -05:00
Kubernetes Prow Robot
833f585104
Merge pull request #85760 from yutedz/chkpt-write-err
...
Log error when writing checkpoint fails
2019-12-02 10:27:06 -08:00
Hemant Kumar
0741f6fa29
Ensure that metadata directory is not created if secret is not found
...
To ensure that metadata directory is not created if secret is not
found, we will move fetching secrets bit more earlier in the code.
2019-12-02 12:09:38 -05:00
Hemant Kumar
309c6f863a
Handle the case of remounts correctly
2019-12-02 12:09:38 -05:00
Hemant Kumar
5feea93163
Rename MarkVolumeMountedOpts to MarkVolumeOpts
...
Also remove VolumeNotMounted state
2019-12-02 12:09:38 -05:00
Hemant Kumar
cdbd3ba5c2
Change interface of SetUp function
2019-12-02 12:09:38 -05:00
Hemant Kumar
db9ac38592
Change signature of MountDevice function and remove MountDeviceWithStatusTracking
2019-12-02 12:09:38 -05:00
Hemant Kumar
0c52b6606e
Refactor NodeStage function
...
Timeout operations should result in
Fix unit tests for uncertainDeviceGlobalMounts
2019-12-02 12:09:38 -05:00
Hemant Kumar
57019e0628
Add tests for verifying in-progress state
2019-12-02 12:09:38 -05:00
Hemant Kumar
27a70a9260
Update generated files
2019-12-02 12:09:38 -05:00
Hemant Kumar
321e99367a
Add code to handle Setup With Status tracking
2019-12-02 12:09:38 -05:00
Hemant Kumar
dc9e64c31e
Implement return status codes
2019-12-02 12:02:27 -05:00
Hemant Kumar
50dbcb3e00
Make sure PodExistsInVolume does not uses uncertain volumes
2019-12-02 12:01:40 -05:00
Hemant Kumar
34a6007dfe
Add code to mark volume as uncertain
...
Update bazel files
Add tests for volume mounts in uncertain state
2019-12-02 12:01:40 -05:00
Hemant Kumar
a795f3de88
Add code for introducing uncertain state of mounts
...
Add a comment about volumestate
2019-12-02 11:57:40 -05:00
Kubernetes Prow Robot
e941b46b22
Merge pull request #85705 from ralfonso/iscsi_refcounter_block_fix
...
Fix iscsi refcounter in the case of no Block iscsi volumes
2019-12-02 06:03:05 -08:00
ZP-AlwaysWin
8c2aed4ff5
Optimize:remove unnecessary judgment
2019-12-02 14:17:48 +08:00
Ted Yu
84a9803741
Log error when writing checkpoint fails
2019-11-29 19:47:17 -08:00
Ted Yu
6415fa765e
Remove nodes slice in loop of takeByTopology
2019-11-29 12:12:22 -08:00
Abdullah Gharaibeh
5ea43f20cb
optimize scheduler's UpdateNodeInfoSnapshot
2019-11-29 15:06:13 -05:00
Quan Tian
d07dd4bbed
Fix NetworkPolicy PolicyTypes validation
...
The validation had an excess nested loop and also caused wrong
error feedback that all policyTypes input will be reported as
unsupported if any of them is wrong.
2019-11-29 16:02:38 +08:00
Kubernetes Prow Robot
53740bbade
Merge pull request #85687 from dmage/decode_base64
...
fix: padded base64 encoded docker auth field
2019-11-28 11:17:03 -08:00
Kubernetes Prow Robot
050c9471c8
Merge pull request #85644 from liggitt/meta-v1-table
...
Switch TableGenerator/TableConvertor interfaces to metav1
2019-11-28 10:05:18 -08:00
Oleg Bulatov
5bec54ed5b
fix: padded base64 encoded docker auth field
...
base64 allows usage of new line characters and some tools use them.
As a result, the length of the encoded string cannot be used to
determine whether it's padded or not.
This patch fixes the regression after #82148 .
2019-11-28 17:12:03 +01:00
Kubernetes Prow Robot
d9c1203308
Merge pull request #85716 from krzysied/kubemark_node_labels_fix
...
Fxing kubemark node labels
2019-11-28 06:09:16 -08:00
Kubernetes Prow Robot
d356fcfce5
Merge pull request #84921 from clarklee92/FixCollidesWithImportedPackageName
...
Variables collide with imported package name
2019-11-28 01:49:03 -08:00
Krzysztof Siedlecki
5cf06bfa80
fxing kubemark node labels
2019-11-28 10:23:48 +01:00
Kubernetes Prow Robot
247c12d618
Merge pull request #85695 from ahg-g/ahg-provider
...
remove redundant definition of the defaultProvider in the scheduler
2019-11-27 17:51:03 -08:00
Ryan Roemmich
d44583d28a
Fix iscsi refcounter in the case of no Block iscsi volumes
2019-11-27 15:50:40 -08:00
Kubernetes Prow Robot
45f6270283
Merge pull request #85689 from ahg-g/ahg-export-snapshot
...
Export scheduler.Snapshot function
2019-11-27 14:23:03 -08:00
Kubernetes Prow Robot
80eed952f0
Merge pull request #84854 from BSWANG/fix-hugetlb-cgroup
...
fix kubelet failed to start on setting hugetlb limits
2019-11-27 12:29:03 -08:00
Abdullah Gharaibeh
7360797a12
remove redundant definition of the defaultProvider in the scheduler
2019-11-27 14:49:57 -05:00
Kubernetes Prow Robot
c58b63267c
Merge pull request #85562 from gkarthiks/master
...
golint fixes for /pkg/util/iptables/testing
2019-11-27 10:46:45 -08:00
Abdullah Gharaibeh
2e0bad569d
export scheduler.Snapshot function, needed for cluster autoscaler integration
2019-11-27 12:35:56 -05:00
Ted Yu
86f3bc25e1
Reduce unnecessary Set in updateAllocatedDevices
2019-11-27 08:48:06 -08:00
Kubernetes Prow Robot
be65a9d1b6
Merge pull request #85526 from hex108/dump_nominated_pods
...
Print nominated pods when dumping scheduler cached NodeInfo
2019-11-27 07:17:21 -08:00
Kubernetes Prow Robot
7ed5eb6dcc
Merge pull request #81880 from MikeSpreitzer/fix81879
...
Bumped the number of times a node tries to lookup itself
2019-11-27 03:07:20 -08:00
Kubernetes Prow Robot
ef1af14cab
Merge pull request #85172 from c3y1huang/fix/golint_failure/Remove-pkg.registry.apps.replicaset
...
Fix golint failures for pkg/registry/apps/replicaset
2019-11-27 01:09:21 -08:00
hwdef
e7172b3dbf
pkg/master: Fix static check failures
2019-11-27 09:15:57 +08:00
Kubernetes Prow Robot
8b05cec276
Merge pull request #84477 from yutedz/csi-node-v1
...
Switch storage version to use v1.CSINode in 1.18
2019-11-26 12:17:21 -08:00
Jordan Liggitt
a1595da534
Attach runtimeclass printer
2019-11-26 13:20:52 -05:00
Jordan Liggitt
03910e99da
Attach resourcequota printer
2019-11-26 13:20:52 -05:00
Jordan Liggitt
9b387da5a1
Improve rolebinding/clusterrolebinding printers
2019-11-26 13:20:52 -05:00
Jordan Liggitt
5448a8b526
Add webhook printers
2019-11-26 13:18:18 -05:00
Jordan Liggitt
cc7e7245a3
Add CSINode/CSIDriver printers
2019-11-26 13:18:18 -05:00
Jordan Liggitt
36eb250cbb
Switch TableGenerator/TableConvertor interfaces to metav1
2019-11-26 13:18:18 -05:00
Davanum Srinivas
837fd41c42
Flip CSIMigrationOpenStack flag to be beta and off by default
2019-11-26 06:36:16 -05:00
Kubernetes Prow Robot
10883c4c69
Merge pull request #84728 from notpad/kubemark
...
Migrate Kubemark to distroless
2019-11-26 02:09:10 -08:00
Kubernetes Prow Robot
41757d673e
Merge pull request #85521 from gaorong/check-return-value
...
check service status value returned by EnsureLoadBalancer
2019-11-25 22:51:10 -08:00
Ted Yu
1cb3992d1b
Switch storage version to use v1.CSINode in 1.18
2019-11-25 19:14:09 -08:00
Kubernetes Prow Robot
b84fad5e6f
Merge pull request #84401 from xiaoanyunfei/bugfix/inspect-docker-image
...
ignore image err when docker image has been cleaned up
2019-11-25 19:11:10 -08:00
Kubernetes Prow Robot
1c5b6cb66e
Merge pull request #85611 from ksubrmnn/routing_mesh
...
Fix HTTP readiness/liveness probes using NodePort
2019-11-25 16:43:19 -08:00
Kubernetes Prow Robot
cec566d77a
Merge pull request #85451 from flix-tech/ruben.serradas
...
Fix golint issues in pkg/kubelet/events/event.go
2019-11-25 16:43:10 -08:00
Kalya Subramanian
e87e4bea0f
Fix HTTP readiness/liveness probes for local node
2019-11-25 10:50:46 -08:00
Kubernetes Prow Robot
9d048f0768
Merge pull request #85432 from jadarsie/az-dyn-env
...
Support Azure Stack dynamic environments
2019-11-25 09:03:38 -08:00
gkarthiks
c38e79e76d
refactor: incorporated the review comments
...
Signed-off-by: gkarthiks <github.gkarthiks@gmail.com>
2019-11-24 11:46:57 -08:00
Kubernetes Prow Robot
9905a33fd7
Merge pull request #85368 from robscott/endpointslice-deepcopy
...
Deep copying EndpointSlices in reconciler before modifying them
2019-11-23 22:55:50 -08:00
Rob Scott
4229b99203
Deep copying EndpointSlices in reconciler before modifying them.
2019-11-23 20:57:50 -08:00
Kubernetes Prow Robot
459b1d76bf
Merge pull request #85527 from aojea/fix#85414
...
Revert "kube-proxy: check KUBE-MARK-DROP"
2019-11-23 13:19:49 -08:00
gkarthiks
a4abc1dd4d
refactor(golint): lint fixes for iptables test file
...
Signed-off-by: gkarthiks <github.gkarthiks@gmail.com>
2019-11-22 19:58:56 -08:00
Kubernetes Prow Robot
3aeb38afd3
Merge pull request #85493 from cofyc/local-owner
...
Add cofyc as owner of pkg/volume/local
2019-11-22 17:31:41 -08:00
Kubernetes Prow Robot
1900edf44a
Merge pull request #85440 from gkarthiks/master
...
Fix lint in /pkg/util/iptables
2019-11-22 17:31:31 -08:00
Kubernetes Prow Robot
300ca89e60
Merge pull request #85426 from davidz627/fix/testCtx
...
Plumb test state through to fake volume host creation for error handling
2019-11-22 17:31:22 -08:00
Kubernetes Prow Robot
ef6d304bed
Merge pull request #85345 from andrewsykim/improve-node-event-handler-logic
...
proxier: improve node topology event handler logic
2019-11-22 17:30:35 -08:00
Kubernetes Prow Robot
a15b5dfb13
Merge pull request #85188 from charleszheng44/scheduler-ut
...
add ut for scheduler framework
2019-11-22 17:29:43 -08:00
Antonio Ojea
98be7831e4
Revert "kube-proxy: check KUBE-MARK-DROP"
...
This reverts commit 1ca0ffeaf2
.
kube-proxy is not recreating the rules associated to the
KUBE-MARK-DROP chain, that is created by the kubelet.
Is preferrable avoid the dependency between the kubelet and
kube-proxy and that each of them handle their own rules.
2019-11-22 06:37:42 +01:00
Jun Gong
abc64a8519
Print nominated pods on the node when dumping scheduler cached NodeInfo
2019-11-22 13:12:37 +08:00
jadarsie
3322ff9551
generalize solution
2019-11-21 19:14:47 -08:00
caiweidong
81afa77e3b
add pod info when failing to add pod to queue
2019-11-22 11:07:31 +08:00
Rong Gao
99603e105a
check service status value returned by EnsureLoadBalancer
...
when service status returned by EnsureLoadBalancer is nil, return the
function directly to avoid NPE
2019-11-22 09:19:06 +08:00
jadarsie
55828d059d
misc fixes
2019-11-21 10:19:25 -08:00
Ian Bull
a232971d73
Add public documentation for kubelet/apis/config
...
The `kubelet/apis/config` package had golint failures. This change-set
removes the `kubelet/apis/config` package from the `.golint_failures`
and fixes the golint errors. In particular, this change-set adds
documentation to the public types in the package.
This change-set works towards issue#68026
2019-11-20 22:52:53 -08:00
Yecheng Fu
96eb647898
add cofyc as local volume owner
2019-11-21 09:38:49 +08:00
andyzhangx
6b73c9f8c2
upgrade api-version to fix azure file AuthorizationFailure
...
fix build failure
2019-11-20 05:41:25 +00:00
Dan Williams
5652819292
kubelet/network: add sig-network-approvers to OWNERS
2019-11-19 23:05:51 -06:00
Akihiro Suda
821362bd1e
SafeSysctlWhitelist: add net.ipv4.ping_group_range
...
sysctl value `net.ipv4.ping_group_range` can be used for allowing `ping`
command without `CAP_NET_RAW` capability.
e.g. `net.ipv4.ping_group_range="0 42"` to allow ping for users with
GID 0-GID 42.
This sysctl value was introduced in kernel 3.0 and has been namespaced
since its birth.
c319b4d76b (diff-5b536a7a92abed603bbb4caa61613270R57)
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2019-11-20 07:26:02 +09:00
Benjamin Elder
cf510ac285
fix multiple node cidr masks in providerless build
2019-11-19 09:47:45 -08:00
Benjamin Elder
753774d9ea
add providerless tag to vsphere volume code
2019-11-19 09:47:45 -08:00
Benjamin Elder
b100bf9654
add providerless tags to new awsebs code
2019-11-19 09:47:45 -08:00
gkarthiks
b05749c619
chore(gofmt): go format fix
...
Signed-off-by: gkarthiks <github.gkarthiks@gmail.com>
2019-11-19 08:30:16 -08:00
Zhou Peng
d49bc34376
[pkg/auth/nodeidentifier/default_test.go]: fix testing error message typo
...
Signed-off-by: Zhou Peng <p@ctriple.cn>
2019-11-19 23:35:04 +08:00
Ruben
55c83e3397
Fix golint issues in pkg/kubelet/events/event.go
...
Change the single const statement in favor of multiple const event lists.
This way we don't need to put the name of the constant in the comment
and it's clearer that the comment refers to the whole list.
2019-11-19 13:15:08 +01:00
RainbowMango
214228f024
Remove the derprecated API RawRegister from stability framework
2019-11-19 18:56:09 +08:00
Jordan Liggitt
dc0e51dd18
Plumb authorization webhook version from CLI to config
2019-11-18 23:58:05 -08:00
Karthikeyan Govindaraj
a4631c845e
chore(lint): lint fix in /pkg/util/iptables
2019-11-18 23:44:49 -08:00
Karthikeyan Govindaraj
bdc11c2806
chore(lint): fix iptable.go file lint
2019-11-18 23:43:51 -08:00
jadarsie
ec57d8a4d0
Support Azure Stack dynamic environments
2019-11-18 15:06:32 -08:00
David Zhu
21f7060c8f
Plumb test state through to fake volume host creation for error handling
2019-11-18 14:45:01 -08:00
Kubernetes Prow Robot
81af5baff8
Merge pull request #85237 from leakingtapan/ebs-migration-flag
...
Flip CSIMigrationAWS flag to be beta and off by default
2019-11-18 12:33:42 -08:00
Yuan Tang
dd308ca576
Fix grammar: have -> has
2019-11-18 11:17:58 -05:00
Md Tahsin Rahman
ce5cbe8b13
Add tests for kubeproxyconfig
2019-11-16 23:34:39 +06:00
Kubernetes Prow Robot
09d142a7ab
Merge pull request #80854 from aojea/hostportv6
...
Add IPv6 support to kubenet hostport
2019-11-16 04:35:41 -08:00
notpad
dcf80e31ac
Migrate Kubemark to distroless
2019-11-16 17:49:26 +08:00
Kubernetes Prow Robot
e0529008d0
Merge pull request #85370 from mikedanese/expcache
...
fix terrible bug and inline GC for expiring cache
2019-11-16 00:29:40 -08:00
Kubernetes Prow Robot
c3f8d700ac
Merge pull request #85367 from aramase/node-cidr-followup
...
[kube controller manager] add comments for compatibility
2019-11-15 19:09:54 -08:00
Kubernetes Prow Robot
5848ee4945
Merge pull request #85365 from robscott/endpointslice-default-off
...
Disabling EndpointSlice feature gate by default
2019-11-15 17:57:50 -08:00
Kubernetes Prow Robot
9c26a752a9
Merge pull request #85231 from davidz627/flags
...
Flip CSIMigration and CSIMigrationGCE to Beta
2019-11-15 17:57:41 -08:00
Mike Danese
d16dde36a3
inline GC in expiring cache
...
This allows us to drop the background goroutine with negligable
difference in performance.
2019-11-15 17:50:31 -08:00
Kubernetes Prow Robot
9859e73433
Merge pull request #85361 from liggitt/endpoint-label
...
Fix label mutation in endpoints controller
2019-11-15 16:17:49 -08:00
Anish Ramasekar
128f33b26e
add comments for compatibility
2019-11-15 15:38:06 -08:00
Rob Scott
37aa219fff
Disabling EndpointSlice feature gate by default
...
Given the significance this change would have we've decided to hold off
on enabling this by default until we can have better test coverage and
more real world usage of the feature.
2019-11-15 14:54:35 -08:00
Jordan Liggitt
08b5c809d2
Fix label mutation in endpoints controller
2019-11-15 16:24:10 -05:00
Rob Scott
7085d692b7
Reverting managed-by-setup annotation
...
This ended up causing far more problems than it was worth, especially
given that it just attempted to provide backwards compatibility with
the alpha release.
2019-11-15 11:50:58 -08:00
Kubernetes Prow Robot
f16bfb069a
Merge pull request #85346 from andrewsykim/service-topology-validtaion
...
service topology: remove redundant API validation for local external traffic policy
2019-11-15 11:32:31 -08:00
David Zhu
41c65f4740
Jump out of spec translation early if the spec is not migratable. Unit tests work after all!
2019-11-15 11:23:32 -08:00
David Zhu
6e716af89e
Add CSINodes to AttachDetachControllerRecovery test
2019-11-15 11:23:32 -08:00
David Zhu
86f20db7d0
Panic on error when creating fake volume host, add a TODO to clean up later
2019-11-15 11:23:32 -08:00
David Zhu
1a47bf54e2
De-race some CSI unit tests that were initializing the plugin manager…ger (and plugins) twice. Set some const variables earlier to support node info manager initialization and wait for initialization to complete before finishing plugin setup.
2019-11-15 11:23:32 -08:00
David Zhu
d66ca2dc11
Flip CSIMigration and CSIMigrationGCE to Beta
2019-11-15 11:22:35 -08:00
Kubernetes Prow Robot
4c50ee993c
Merge pull request #85339 from mm4tt/endpointslice_cache
...
Increase cache size for EndpointSlices.
2019-11-15 10:10:50 -08:00
Kubernetes Prow Robot
45e0080fd5
Merge pull request #85305 from codenrhoden/remove-mount-pkg
...
Remove pkg/util/mount (moved out of tree)
2019-11-15 10:10:38 -08:00
Kubernetes Prow Robot
7a5929da02
Merge pull request #83838 from RainbowMango/pr_hide_scheduler_deprecated_metrics
...
Turn off scheduler metrics that have been deprecated
2019-11-15 07:59:15 -08:00
Travis Rhoden
0c5c3d8bb9
Remove pkg/util/mount (moved out of tree)
...
This patch removes pkg/util/mount completely, and replaces it with the
mount package now located at k8s.io/utils/mount. The code found at
k8s.io/utils/mount was moved there from pkg/util/mount, so the code is
identical, just no longer in-tree to k/k.
2019-11-15 08:29:12 -07:00
Andrew Sy Kim
aaa91ef412
service topology: remove redundant API validation for local external traffic policy
...
Signed-off-by: Andrew Sy Kim <kiman@vmware.com>
2019-11-15 08:57:17 -05:00
Andrew Sy Kim
884582d892
proxier: improve node topology event handler logic
...
Signed-off-by: Andrew Sy Kim <kiman@vmware.com>
2019-11-15 08:53:56 -05:00
Kubernetes Prow Robot
d9be37e926
Merge pull request #72046 from m1093782566/service-topology-api
...
Service Topology implementation
2019-11-15 02:57:42 -08:00
Matt Matejczyk
44452995d6
Increase cache size for endpointslices.
...
It should match what we have for endpoints as endpointslices is
replacing them and # updates of endpointslices should be roughly the
same as # updates of endpoints.
Otherwise, kube-proxy may start loosing watches for endpointslices (we believe this is
what currently happens in scale tests, will create an issue for that
soon).
2019-11-15 11:25:07 +01:00
Kubernetes Prow Robot
ded6ee953c
Merge pull request #79993 from aramase/controller-manager-multiple-cidr
...
Allow multiple node cidr masks in kube-controller-manager
2019-11-14 23:23:42 -08:00
Roc Chan
31d623b4d7
Autogenerated files
2019-11-15 14:37:44 +08:00
Kubernetes Prow Robot
4e45328e65
Merge pull request #83123 from aramase/dualstack-downward-api
...
Dualstack downward api
2019-11-14 22:13:42 -08:00
Cheng Pan
2d13b97ef3
Flip CSIMigrationAWS flag to be beta and off by default
2019-11-15 05:40:34 +00:00
Roc Chan
80c6524cd0
kube-proxy: sync rules when current node labels change detected
2019-11-15 13:36:43 +08:00
Roc Chan
c9cf3f5b72
Service Topology implementation
...
* Implement Service Topology for ipvs and iptables proxier
* Add test files
* API validation
2019-11-15 13:36:43 +08:00
m1093782566
cdaeabfb46
Add API for feature gate ServiceTopology
2019-11-15 13:36:43 +08:00
Kubernetes Prow Robot
3202bc1044
Merge pull request #83896 from mars1024/modify/cni_log
...
modify error output in cniNetworkPlugin
2019-11-14 20:52:02 -08:00
Kubernetes Prow Robot
372ebd24f5
Merge pull request #83098 from ddebroy/disable-intree
...
CSI Migration phase 2: disable probing of in-tree plugins
2019-11-14 20:51:42 -08:00
Anish Ramasekar
796faba4ac
Allow multiple node cidr masks in cm
...
update tests
add comment
amend var name
update comment
add check for empty slice
fix tests
fix mask size in test
review feedback
add ipv4 and ipv6 flag for mask sizes
add to violation exception list
remove import alias
run update-openapi-spec
review feedback
run update-bazel
review feedback
review feedback
2019-11-14 20:04:31 -08:00
chao zheng
259cc951ff
add ut for scheduler framework
2019-11-14 19:39:21 -08:00
YAMAMOTO Takashi
361cd7212e
Fix a comment typo in legacyNodeRoleBehaviorFeature
2019-11-15 11:30:34 +09:00
Masaki Kimura
4578c6c8ce
Separate staging/publish and unstaging/unpublish logics for block
2019-11-15 01:55:20 +00:00
Masaki Kimura
7caf731773
Change publish path for CSI block volume per pod
...
This change is to allow CSI driver to publish the same volume for multipe pods on the same node.
2019-11-15 01:55:15 +00:00
Kubernetes Prow Robot
97d45fe3c8
Merge pull request #85309 from liggitt/cs-table-handler
...
Avoid constructing table printer on every componentstatus request
2019-11-14 17:51:31 -08:00
Kubernetes Prow Robot
ff0a1d86d5
Merge pull request #85298 from liggitt/scheduler-csi-v1
...
Use CSINodes v1 API in scheduler
2019-11-14 17:51:20 -08:00
Kubernetes Prow Robot
9d0a32caf8
Merge pull request #85260 from MikeSpreitzer/reqmgmt-rename
...
Renamed FeatureGate RequestManagement to APIPriorityAndFairness
2019-11-14 17:51:10 -08:00
Kubernetes Prow Robot
e24f5ab4e4
Merge pull request #84747 from mkimuram/refactor-mapper
...
Refactor mapper/unmapper of block volume
2019-11-14 17:50:15 -08:00
Kubernetes Prow Robot
19b4017b5d
Merge pull request #84424 from mikedanese/expcache
...
Add an expiring cache for the caching token authenticator
2019-11-14 17:50:06 -08:00
Kubernetes Prow Robot
e434d2dbab
Merge pull request #84295 from aojea/iptableslogs
...
Improve iptables logging
2019-11-14 17:49:51 -08:00
Deep Debroy
129f15328b
Disable in-tree plugins migrated to CSI
...
Signed-off-by: Deep Debroy <ddebroy@docker.com>
2019-11-14 17:28:21 -08:00
Kubernetes Prow Robot
30e6238795
Merge pull request #85147 from yutedz/devmgr-rm-contents
...
Continue removing file in ManagerImpl#removeContents
2019-11-14 16:38:28 -08:00
Kubernetes Prow Robot
99e18f5ae9
Merge pull request #84900 from MikeSpreitzer/add-namespace-to-rule
...
Enable Priority and Fairness to discriminate on target namespace
2019-11-14 16:38:18 -08:00
Kubernetes Prow Robot
6c5fb3ee60
Merge pull request #83491 from dcbw/winship-iptables-owner
...
pkg/util/iptables: add Dan Winship to approvers
2019-11-14 16:37:26 -08:00
Masaki Kimura
a275026ad4
Split CustomBlockVolumeMapper and CustomBlockVolumeUnmapper
...
- Move SetUpDevice to BlockVolumeStager
- Move MapPodDevice to BlockVolumePublisher
- Move TearDownDevice to BlockVolumeUnstager
- Move UnmapPodDevice to BlockVolumeUnpublisher
- Implement BlockVolumePublisher only in local and csi plugin
- Implement BlockVolumeUnstager only in fc, iscsi, rbd, and csi plugin
- Implement BlockVolumeStager and BlockVolumeUnpublisher only in csi plugin
2019-11-14 22:01:19 +00:00
Masaki Kimura
f363a03f0b
Refactor BlockVolumeMapper and BlockVolumeUnmapper interface
...
- Rename MapDevice to MapPodDevice in BlockVolumeMapper
- Add UnmapPodDevice in BlockVolumeUnmapper (This will be used by csi driver later)
- Add CustomBlockVolumeMapper and CustomBlockVolumeUnmapper interface
- Move SetUpDevice and MapPodDevice to CustomBlockVolumeMapper
- Move TearDownDevice and UnmapPodDevice to CustomBlockVolumeUnmapper
- Implement CustomBlockVolumeMapper only in local and csi plugin
- Implement CustomBlockVolumeUnmapper only in fc, iscsi, rbd, and csi plugin
- Change MapPodDevice to return path and SetUpDevice not to return path
2019-11-14 22:01:11 +00:00
Mike Danese
3f194d5b41
migrate token cache to cache.Expiring
2019-11-14 13:50:15 -08:00
Kubernetes Prow Robot
27067540ff
Merge pull request #85246 from robscott/endpointslice-dualstack-proxy
...
Updating kube-proxy to support new EndpointSlice address types
2019-11-14 13:31:58 -08:00
Kubernetes Prow Robot
bfb99d809a
Merge pull request #85117 from hwdef/fix-staticcheck10
...
pkg/kubeapiserver: fix staticcheck warning
2019-11-14 13:31:15 -08:00
Kubernetes Prow Robot
acfc88d66e
Merge pull request #84752 from seans3/json_yaml_printers
...
Move json,yaml,jsonpath printers to correct locations
2019-11-14 13:31:04 -08:00
Kubernetes Prow Robot
5c772f5933
Merge pull request #84674 from hwdef/fix-staticcheck4
...
pkg/client: fix staticcheck warning
2019-11-14 13:30:45 -08:00
Kubernetes Prow Robot
e03d6e2311
Merge pull request #84660 from mkimuram/refactor-block-lock
...
Refactor block volume's descriptor lock logic
2019-11-14 13:30:30 -08:00
Jordan Liggitt
114e71b9de
Avoid constructing table printer on every componentstatus request
2019-11-14 16:30:12 -05:00
Kubernetes Prow Robot
9b75e36436
Merge pull request #85294 from ahg-g/ahg-15k
...
Rename PluginConfigArgs to AlgorithmConfigArgs
2019-11-14 11:20:11 -08:00
Kubernetes Prow Robot
547fdcc164
Merge pull request #85174 from zhouya0/add_table_convertor_componentstatus
...
add table convertor to componentstatus
2019-11-14 11:20:01 -08:00
Kubernetes Prow Robot
ba9f7419f9
Merge pull request #84732 from khenidak/fix-disable-dualstack
...
Fix a CM panic when ipam tries to lock an out of range pre existing cidr
2019-11-14 11:19:35 -08:00
Jordan Liggitt
7eb4838a61
Use CSINodes v1 API in scheduler
2019-11-14 13:40:50 -05:00
Kubernetes Prow Robot
78d2e52dee
Merge pull request #84859 from denkensk/move-volumebind-behind-permit
...
Move pod bindVolumes behind RunPermitPlugins
2019-11-14 10:05:48 -08:00
Kubernetes Prow Robot
979688b5cd
Merge pull request #84335 from mrkm4ntr/fix-node-evaluation
...
Add unit test to catch scheduler's node order evaluation regressions
2019-11-14 10:05:35 -08:00
Abdullah Gharaibeh
05606bb6e4
rename PluginConfigArgs to AlgorithmConfigArgs
2019-11-14 11:30:59 -05:00
Masaki Kimura
560d9c56eb
Change mount.NewOSExec to utilexec.New
2019-11-14 15:58:27 +00:00
Masaki Kimura
8a09460c2f
Change getDeviceMajorMinor to use unix.Stat
2019-11-14 15:58:27 +00:00
Masaki Kimura
aee875a855
Fix error messages in operation_generator.go
2019-11-14 15:58:27 +00:00
Masaki Kimura
a2cbc028f4
Remove remaining empty file in unmapBindMountDevice
2019-11-14 15:58:27 +00:00
Masaki Kimura
dd945424e1
Rename IsBindMountExist to IsDeviceBindMountExist
2019-11-14 15:58:26 +00:00
Masaki Kimura
bee6514d79
Remove klog for output error instead return err with context
2019-11-14 15:58:26 +00:00
Masaki Kimura
7abb704e7b
Improve comments for volume path hanlder and volume.go
2019-11-14 15:58:26 +00:00
Masaki Kimura
5a351e3014
Check and return error first in IsSymlinkExist and IsBindMountExist
2019-11-14 15:58:26 +00:00
Masaki Kimura
8a159d7253
Move MapBlockVolume call to operation_generator and add UnmapBlockVolume
2019-11-14 15:58:26 +00:00
Masaki Kimura
68be3947b8
Make descriptor lock per pod and release it per pod
...
This change is needed to avoid unmapVolumeFunc for one pod blocked,
when the lock for the same volume is taken for another pod.
2019-11-14 15:58:26 +00:00
Masaki Kimura
2ecdc5e8d1
Change globalMapPath to bind mount from symlink
...
This change is needed to make descriptor lock per pod, in the next commit.
If losetup is called for symlink, path in the output for losetup is resolved,
as a result, we can't distinguish which path the lock is taken.
2019-11-14 15:58:26 +00:00
zhouya0
7302a98560
add table convertor to componentstatus
2019-11-14 17:31:37 +08:00
Mike Spreitzer
76d090e30f
Renamed FeatureGate RequestManagement to APIPriorityAndFairness
...
The old name is too broad, we wanted a name that is more specific to
the actual feature.
This is an alpha gate, and no release has yet associated any
functionality with this gate.
2019-11-14 01:34:59 -05:00
MikeSpreitzer
1c60949dfd
updated generated files
2019-11-14 00:53:02 -05:00
Mike Spreitzer
bb69b93b20
applied gofmt
2019-11-14 00:53:02 -05:00
Mike Spreitzer
a912bd8488
Identify cluster scope by a boolean field rather than a special namespace
2019-11-14 00:53:02 -05:00
Mike Spreitzer
3b77bc8054
Enabled discrimination on target namespace
...
Generalized ResourcePolicyRule in API Priority and Fairness to be able
to discriminate on the target namespace (if any) specified in the
request.
2019-11-14 00:53:02 -05:00
Kubernetes Prow Robot
42273a4dbf
Merge pull request #84472 from gab-satchi/windows-build-label
...
Adds Windows build information as a label on the node
2019-11-13 21:46:19 -08:00
Kubernetes Prow Robot
1ae9713f7f
Merge pull request #83839 from RainbowMango/pr_hide_proxy_deprecated_metrics
...
Turn off proxy metrics that have been deprecated
2019-11-13 21:46:11 -08:00
Kubernetes Prow Robot
5e30d32d2c
Merge pull request #83394 from bertinatto/convert_pv_no_affinity
...
Convert existing PVs to use volume topology in VolumeBinderPredicate
2019-11-13 21:45:56 -08:00
Kubernetes Prow Robot
cb7cd5d7c6
Merge pull request #82031 from codenrhoden/mount-comments
...
Additional mount comments
2019-11-13 21:45:34 -08:00
Rob Scott
2a021d02c9
Updating kube-proxy to support new EndpointSlice address types
...
This includes IPv4 and IPv6 address types and IPVS dual stack support.
Importantly this ensures that EndpointSlices with a FQDN address type
are not processed by kube-proxy.
2019-11-13 19:50:41 -08:00
hwdef
b3377e61de
pkg/kubeapiserver: fix staticcheck warning
2019-11-14 11:24:22 +08:00
hwdef
82b9cf1890
pkg/client: fix staticcheck warning
2019-11-14 10:08:16 +08:00
RainbowMango
d9b12b131a
Hide scheduler metrics that have been deprecated in 1.14
2019-11-14 10:02:18 +08:00
Kubernetes Prow Robot
fa1ca34550
Merge pull request #85236 from liu-cong/metrics-bucket
...
Update bucket for scheduler framework latency histograms.
2019-11-13 17:29:17 -08:00
Kubernetes Prow Robot
565566f4b2
Merge pull request #85153 from codenrhoden/mount-no-exec-int
...
Retire mount.Exec for k8s.io/utils/exec
2019-11-13 17:28:32 -08:00
Kubernetes Prow Robot
072cf5bd58
Merge pull request #85023 from MrHohn/svc-lb-ga
...
Promote service load balancer finalizer to GA
2019-11-13 17:28:21 -08:00
Kubernetes Prow Robot
71d563b831
Merge pull request #84771 from MikeSpreitzer/refactor-priority-config
...
Refactored PriorityLevelConfiguration
2019-11-13 17:28:06 -08:00
Kubernetes Prow Robot
64f4be5b32
Merge pull request #84390 from robscott/endpointslice-beta
...
Promoting EndpointSlices to beta
2019-11-13 17:27:50 -08:00
Kubernetes Prow Robot
d3593c07de
Merge pull request #83057 from bclau/windows/containerd
...
Windows: Fixes termination-file mounting support for containerd
2019-11-13 17:27:36 -08:00
Kubernetes Prow Robot
e9ce31bcb3
Merge pull request #85219 from mm4tt/lease_cache_size
...
Increase cache size for leases
2019-11-13 14:52:00 -08:00
Kubernetes Prow Robot
d85103b185
Merge pull request #85217 from kaoskater08/kaoskater08/fix-golint-pkg-apis-extensions
...
fixed golint errors in pkg/apis/extensions register.go and types.go
2019-11-13 14:51:46 -08:00
Rob Scott
a7e589a8c6
Promoting EndpointSlices to beta
2019-11-13 14:20:19 -08:00
Cong Liu
8995c1e030
Update bucket for scheduler framework latency histograms.
2019-11-13 16:35:59 -05:00
Travis Rhoden
367f879131
Retire mount.Exec for k8s.io/utils/exec
...
This patch removes mount.Exec entirely and instead uses the common
utility from k8s.io/utils/exec.
The fake exec implementation found in k8s.io/utils/exec differs a bit
than mount.Exec, with the ability to pre-script expected calls to
Command.CombinedOutput(), so tests that previously relied on a callback
mechanism to produce specific output have been updated to use that
mechanism.
2019-11-13 14:09:57 -07:00
Kubernetes Prow Robot
209c025144
Merge pull request #85157 from alculquicondor/refactor/selector
...
Store topology spread constraints in metadata with labels.Selector
2019-11-13 13:04:35 -08:00
Kubernetes Prow Robot
7d1580270a
Merge pull request #85151 from hypnoglow/scheduler-default-algo-source
...
scheduler: make algorithm source an option
2019-11-13 13:04:09 -08:00
Kubernetes Prow Robot
a08b09d52f
Merge pull request #84279 from matthyx/kuberuntime-startupprobe
...
Add startupProbe result handling to kuberuntime
2019-11-13 13:01:53 -08:00
Kubernetes Prow Robot
b32a3d9ca4
Merge pull request #82690 from draveness/feature/graduate-ResourceQuotaScopeSelectors-to-ga
...
feat: graduate ResourceQuotaScopeSelectors to GA - part2
2019-11-13 13:01:25 -08:00
Kubernetes Prow Robot
e0c483b889
Merge pull request #85150 from ahg-g/ahg-informer
...
Pass InformerFactory/SharedLister instead of individual informers/listers in scheduler config logic
2019-11-13 09:28:23 -08:00
Kubernetes Prow Robot
6eb2f25247
Merge pull request #85075 from hwdef/fix-staticcheck9
...
pkg/credentialprovider: fix staticcheck warning
2019-11-13 09:27:18 -08:00
Kubernetes Prow Robot
43ccfced1d
Merge pull request #84998 from wojtek-t/fix_owner_refs
...
Ensure that Node lease has OwnerReference set
2019-11-13 09:26:59 -08:00
Kubernetes Prow Robot
c5609071d8
Merge pull request #84971 from robscott/endpointslice-iptypes
...
Splitting IP address type into IPv4 and IPv6 for EndpointSlices
2019-11-13 09:26:36 -08:00
Kubernetes Prow Robot
5689961ed3
Merge pull request #84649 from benmoss/windows_network_not_initialized
...
Skip GetPodNetworkStatus when CNI not yet initialized
2019-11-13 09:25:59 -08:00
Kubernetes Prow Robot
c10d29ba88
Merge pull request #84356 from verb/pid-ga
...
Promote PodProcessNamespaceSharing feature to GA
2019-11-13 09:25:42 -08:00
Mike Spreitzer
f9bc2bcf62
Refactored PriorityLevelConfiguration
...
.. so that concurrency limitation can be done without queuing
(like the existing max-in-flight filter does).
2019-11-13 16:05:52 +00:00
Matt Matejczyk
68a66f454d
Increase cache size for leases
...
The default size (100) is not enough for large clusters and results in
unnecessary restarts of kube-controller-manager watcher for leases, see http://perf-dash.k8s.io/#/?jobname=gce-5000Nodes&metriccategoryname=APIServer&metricname=LoadRequestCount&Resource=leases&Scope=cluster&Subresource=&Verb=LIST
This PR will make it match what we have for nodes.
2019-11-13 16:23:12 +01:00
Aldo Culquicondor
e3bdb4b20b
Store topology spread constraints in metadata with labels.Selector
...
Signed-off-by: Aldo Culquicondor <acondor@google.com>
2019-11-13 10:10:08 -05:00
Eddie Hale
566484366e
fixed golint errors in pkg/apis/extensions register.go and types.go
2019-11-13 08:48:42 -06:00
Ted Yu
fb046f7787
Continue removing file in ManagerImpl#removeContents
2019-11-13 06:00:34 -08:00
Fabio Bertinatto
bbfc6ef450
Convert volume binder to use CSINode GA
2019-11-13 14:01:01 +01:00
Fabio Bertinatto
7cba40fb09
Use CSI translation lib in VolumeBinderPredicate
2019-11-13 14:01:01 +01:00
RainbowMango
9f013cb34f
Hide proxy metrics that have been deprecated in 1.14
2019-11-13 19:31:14 +08:00
RainbowMango
30bf1f47dd
Hide kubelet metrics that have been deprecated in 1.14
2019-11-13 19:17:38 +08:00
Claudiu Belu
d4d7f58362
Windows: Fixes termination-file mounting for containerd
...
If Containerd is used on Windows, then we can also mount individual
files into containers (e.g.: termination-log files), which was not
possible with Docker.
Checks if the container runtime is containerd, and if it is, then also
mount the termination-log file.
2019-11-12 23:33:55 -08:00
Igor Zibarev
6350095d3c
scheduler: make algorithm source an option
...
Changes scheduler.New so that algorithm source is moved from the
parameter to an option. The default algorithm source is source with the
DefaultProvider.
2019-11-13 10:22:29 +03:00
Matthias Bertschy
66595d54a0
Add startupProbe result handling to kuberuntime
2019-11-13 08:12:54 +01:00
draveness
5cb92260a6
feat: graduate ResourceQuotaScopeSelectors to GA
2019-11-13 14:07:22 +08:00
Chin-Ya Huang
92c7e8e802
Fix golint failures
...
* Remove pkg/registry/apps/replicaset
Signed-off-by: Chin-Ya Huang <chin-ya.huang@suse.com>
2019-11-13 11:00:12 +08:00
root
e9edfbc539
modify dockerID to containerID
2019-11-13 10:43:55 +08:00
Abdullah Gharaibeh
acc66ede1a
Pass InformerFactory instead of indivisual informers in scheduler configuration logic
2019-11-12 19:38:27 -05:00
Zihong Zheng
0833e8840e
Amend service controller code/test regarding finalizer GA
2019-11-12 15:04:07 -08:00
Zihong Zheng
87e292c959
Promote service load balancer finalizer feature gate to GA
2019-11-12 14:59:46 -08:00
Gab Satch
f8e90eb5b0
Replaces modifying node object with returning a map of labels
...
- Adds label to update flow so can be picked up by an existing node
2019-11-12 16:50:43 -05:00
Kubernetes Prow Robot
ce11622bb6
Merge pull request #84522 from liu-cong/plugin
...
Add scheduler plugin execution duration metric.
2019-11-12 13:50:11 -08:00
Kubernetes Prow Robot
055daafe23
Merge pull request #85139 from ahg-g/ahg-snapshot2
...
Updated NewSnapshot interface to accept a NodeInfoMap
2019-11-12 11:52:10 -08:00
Kubernetes Prow Robot
ee9020c8bc
Merge pull request #85106 from alculquicondor/refactor/single_selector
...
Merging selectors used for spreading into one
2019-11-12 11:51:46 -08:00
Kubernetes Prow Robot
ed10b5b17f
Merge pull request #85047 from yutedz/dev-mgr-err-handling
...
Handle error return from allocatePodResources
2019-11-12 11:51:27 -08:00
Kubernetes Prow Robot
f61fbca757
Merge pull request #84924 from njuicsgz/master
...
proxy/ipvs: only get local addresses once per sync
2019-11-12 11:51:16 -08:00
Kubernetes Prow Robot
3eff237357
Merge pull request #84882 from marosset/run-as-username-beta
...
Moving WindowsRunAsUserName to beta
2019-11-12 11:51:01 -08:00
Kubernetes Prow Robot
c580a12c8e
Merge pull request #83568 from bertinatto/volume_limits_ga
...
Promote volume limits to GA
2019-11-12 11:50:22 -08:00
Kubernetes Prow Robot
fb87f72b88
Merge pull request #84862 from yutedz/master-subset-check
...
Check that endpoint has subset before accessing first subset
2019-11-12 10:23:44 -08:00
Kubernetes Prow Robot
94efa988f4
Merge pull request #84813 from deads2k/admission-feature-gates
...
remove global variable dependency from admission plugins
2019-11-12 10:23:14 -08:00
Cong Liu
af6a8160c3
Add scheduler plugin execution duration metric.
...
Address comments
Sample metrics
Use rand.Intn and some cleanup
2019-11-12 13:00:20 -05:00
Kubernetes Prow Robot
402e551ca2
Merge pull request #85135 from wojtek-t/delete_unnecessary_conversions_1
...
Eliminate couple unnecessary conversions
2019-11-12 09:07:01 -08:00
Kubernetes Prow Robot
ed4d515f0e
Merge pull request #85049 from ahmad-diaa/make-configurator-create-return-sched
...
Change Configurator.Create to Return a Scheduler
2019-11-12 09:06:36 -08:00
Rob Scott
0fa9981e01
Splitting IP address type into IPv4 and IPv6 for EndpointSlices
2019-11-12 09:03:53 -08:00
Abdullah Gharaibeh
902cf48cd3
Updated NewSnapshot interface to accept a NodeInfoMap instead of lists of nodes and pods
2019-11-12 11:14:17 -05:00
Aldo Culquicondor
c35fe2c801
Merging selectors for spreading into one
...
Signed-off-by: Aldo Culquicondor <acondor@google.com>
2019-11-12 11:01:42 -05:00
Kubernetes Prow Robot
bcb171b375
Merge pull request #85059 from chiehting/registry/golint
...
Fix golint issues in pkg/registry/core/service/storage
2019-11-12 06:04:05 -08:00
wojtekt
067d173266
Eliminate couple unnecessary conversions
2019-11-12 15:00:09 +01:00
Kubernetes Prow Robot
35de7a2537
Merge pull request #84957 from ZP-AlwaysWin/dev-1105-1
...
Remove unnecessary judgment
2019-11-12 04:48:43 -08:00
Kubernetes Prow Robot
681d22428b
Merge pull request #84768 from liggitt/delegated-authnz-v1
...
switch delegated authnz to v1 APIs
2019-11-12 04:48:35 -08:00
Kubernetes Prow Robot
897ce3073c
Merge pull request #84533 from davidz627/fix/deprecatedPath
...
Remove plugin watching of deprecated directory and CSI v0 support in accordance with deprecation policy
2019-11-12 04:48:20 -08:00
Gao Zheng
6b36a60c75
kube-proxy/ipvs get local addr just once per sync
2019-11-12 19:40:21 +08:00
Kubernetes Prow Robot
5dc87d2919
Merge pull request #83965 from robscott/endpointslice-managed-by
...
Adding new label to indicate what is managing an EndpointSlice
2019-11-12 03:08:07 -08:00
Fabio Bertinatto
a59abc3cc3
Convert scheduler to use CSINode GA
2019-11-12 09:43:54 +01:00
Fabio Bertinatto
affcd0128b
Promote volume limits to GA
2019-11-12 09:43:53 +01:00
wojtekt
07200a0764
Ensure that Node lease has OwnerReference set
2019-11-12 09:11:59 +01:00
Kubernetes Prow Robot
dff236e3b2
Merge pull request #82078 from SeongJuMoon/fix/storage-wrong-typo
...
fix wrong typo stoageMap to storageMap
2019-11-11 23:14:06 -08:00
Kubernetes Prow Robot
805eecf692
Merge pull request #80058 from xing-yang/snapshot_beta
...
Enable VolumeSnapshotDataSource Feature Gate and update e2e tests for VolumeSnapshot CRD v1beta1
2019-11-11 20:06:07 -08:00
Kubernetes Prow Robot
7d1f9b440e
Merge pull request #83815 from howardjohn/appprotocol
...
Add appProtocol to EndpointSlice.Port
2019-11-11 17:48:06 -08:00
ZP-AlwaysWin
f812530e42
Remove unnecessary judgment
2019-11-12 09:31:42 +08:00
Kubernetes Prow Robot
01e014c7d6
Merge pull request #85012 from alculquicondor/feat/predicate_factory
...
Add MetadataProducerFactory for predicates
2019-11-11 14:46:36 -08:00
Jordan Liggitt
d54a70db5c
Switch kubelet/aggregated API servers to use v1 subjectaccessreviews
2019-11-11 17:19:11 -05:00
Jordan Liggitt
5ef4fe959a
Switch kubelet/aggregated API servers to use v1 tokenreviews
2019-11-11 17:19:10 -05:00
Kubernetes Prow Robot
709a0c4f7b
Merge pull request #85067 from takanattie/fix_typo
...
Fix a typo in pkg/controller
2019-11-11 12:56:48 -08:00
Kubernetes Prow Robot
bff9a7774c
Merge pull request #84639 from SataQiu/clean-scheduler-20191101
...
scheduler: improve some comments and validation messages
2019-11-11 12:56:04 -08:00
David Zhu
802fe12803
Remove plugin watching of deprecated directory {kubelet_root_dir}/plugins and support for CSI V0 in accordance with deprecation announcement in https://v1-13.docs.kubernetes.io/docs/setup/release/notes/
2019-11-11 11:42:58 -08:00
marosset
6d4aea60cd
Moving WindowsRunAsUserName to beta
2019-11-11 19:27:19 +00:00
Ted Yu
63aa70f78b
Check that endpoint has subset before accessing first subset
2019-11-11 10:55:16 -08:00
Kubernetes Prow Robot
268663c9e3
Merge pull request #84996 from alculquicondor/cleanup/rm_factory
...
Remove leftover factory directory
2019-11-11 10:54:04 -08:00
Ahmad Diaa
7156d4532e
remove factory.Config struct and NewFromConfig
2019-11-11 19:27:53 +01:00
Ahmad Diaa
7b8e5fb4f5
make Configurator.Create return a Scheduler
2019-11-11 19:27:53 +01:00
Aldo Culquicondor
6a98c93f3c
Add MetadataProducerFactory for predicates
...
Signed-off-by: Aldo Culquicondor <acondor@google.com>
2019-11-11 11:27:44 -05:00
Kubernetes Prow Robot
b2fb0f77ad
Merge pull request #82572 from tnozicka/fix-rs-expectations
...
Fix RS expectations for recreate case
2019-11-11 05:49:42 -08:00
Tomas Nozicka
ce52643f12
Update Bazel
2019-11-11 09:11:43 +01:00
Tomas Nozicka
6754b93f6b
Fix RS informer handlers and handling expectations on delete
2019-11-11 09:11:43 +01:00
Kubernetes Prow Robot
c28921f248
Merge pull request #84692 from smarterclayton/protocol_errors
...
Fix watch negotiation when using a non-default mime type in the client
2019-11-10 21:41:56 -08:00
Kubernetes Prow Robot
ec86baf00b
Merge pull request #84987 from RainbowMango/pr_migrate_custom_collector_kubelet_part2
...
migrate kubelet custom metrics to stability framework part 2
2019-11-10 19:44:04 -08:00
Kubernetes Prow Robot
b3dde20411
Merge pull request #84907 from RainbowMango/pr_migrate_custom_collector_kubelet
...
migrate kubelet custom metrics to stability framework part 1
2019-11-10 19:43:56 -08:00
Kubernetes Prow Robot
9646bd9736
Merge pull request #83664 from RainbowMango/pr_refactor_kubelet_ut_with_metrics_testutil
...
Refactor kubelet ut with metrics testutil
2019-11-10 19:43:42 -08:00
Alex Wang
c9fda7aac0
move bindVolumes behind RunPermitPlugins
2019-11-11 11:30:01 +08:00
Roy Hvaara
896f84b652
Fix golint issues in pkg/apis/batch/validation
2019-11-11 04:03:34 +01:00
Xing Yang
3324722e07
VolumeSnapshot CRD v1beta1: Enable VolumeSnapshotDataSource feature gate and update e2e tests
2019-11-11 02:34:24 +00:00
Clayton Coleman
3b780c64b8
Always negotiate a decoder using ClientNegotiator
...
This commit performs two refactors and fixes a bug.
Refactor 1 changes the signature of Request to take a RESTClient, which
removes the extra copy of everything on RESTClient from Request. A pair
of optional constructors are added for testing. The major functional
change is that Request no longer has the shim HTTPClient interface and
so some test cases change slightly because we are now going through
http.Client code paths instead of direct to our test stubs.
Refactor 2 changes the signature of RESTClient to take a
ClientContentConfig instead of ContentConfig - the primary difference
being that ClientContentConfig uses ClientNegotiator instead of
NegotiatedSerializer and the old Serializers type. We also collapse
some redundancies (like the rate limiter can be created outside the
constructor).
The bug fix is to negotiate the streaming content type on a Watch()
like we do for requests. We stop caching the decoder and simply
resolve it on the request. We also clean up the dynamic client
and remove the extra WatchSpecificVersions() method by providing
a properly wrapped dynamic client.
2019-11-10 21:30:36 -05:00
hwdef
170eadc3d2
pkg/credentialprovider: fix staticcheck warning
2019-11-11 09:46:52 +08:00
Kubernetes Prow Robot
35cfd327c8
Merge pull request #84243 from Dingshujie/fix-golint
...
Fix golint errors in pkg/apis/apps
2019-11-10 16:29:54 -08:00
Kubernetes Prow Robot
ebbe4baf13
Merge pull request #83914 from guineveresaenger/ato-demo
...
Removes pkg/registry/core/secret/storage from golint failures
2019-11-10 16:29:41 -08:00
Kubernetes Prow Robot
82600c2b0e
Merge pull request #84948 from zouyee/PriorityFunction
...
clean up PriorityFunction
2019-11-10 09:39:40 -08:00
Takashi Natsume
e5ad39fbe0
Fix a typo in pkg/controller
2019-11-10 11:24:10 +00:00
chiehting
193f38beae
Fix golint issues in pkg/registry/core/service/storage
2019-11-10 15:34:51 +08:00
Kubernetes Prow Robot
0155d18fbc
Merge pull request #84485 from tallclair/mirror-owner
...
Mirror owner
2019-11-09 20:19:39 -08:00
Ted Yu
db0f616974
Handle error return from allocatePodResources
2019-11-09 16:25:15 -08:00
Kubernetes Prow Robot
a18303dfa4
Merge pull request #85042 from hvaara/fix-golint-pkg-apis-policy
...
Fix golint issues in pkg/apis/policy
2019-11-09 15:29:58 -08:00
Kubernetes Prow Robot
80b25a766a
Merge pull request #85037 from hvaara/fix-golint-pkg-apis-authorization
...
Fix golint issues in pkg/apis/authorization
2019-11-09 15:29:48 -08:00
Roy Hvaara
cfc34712c2
Fix golint issues in pkg/registry/.../storage
2019-11-10 00:22:51 +01:00
Roy Hvaara
cfc596b302
Fix golint issues in pkg/apis/autoscaling/validation ( #85041 )
...
* Fix golint issues in pkg/apis/autoscaling/validation
* Fix spelling issue in field of Error
2019-11-09 14:03:48 -08:00
Roy Hvaara
10c8508acd
Fix golint issues in pkg/apis/policy
2019-11-09 21:15:35 +01:00
Kubernetes Prow Robot
1ca74c7991
Merge pull request #85030 from ahg-g/ahg-nodestoscore
...
Set default percentageOfNodesToScore in kube-scheduler back to "adaptive"
2019-11-09 11:11:39 -08:00
Roy Hvaara
8d3c74aebc
Fix golint issues in pkg/apis/authorization
2019-11-09 17:45:37 +01:00
Abdullah Gharaibeh
9fb380ceff
set default percentageOfNodesToScore in kube-scheduler back to 0 (maning adaptive)
2019-11-09 06:34:06 -05:00
Roy Hvaara
e55fc5656c
Fix golint issues in pkg/util/sysctl/testing
2019-11-09 12:32:37 +01:00
Kubernetes Prow Robot
36acfecd4b
Merge pull request #84973 from draveness/feature/inter-pod-affinity-score
...
feat(scheduler): convert InterPodAffinity to score plugin
2019-11-09 02:43:40 -08:00
Kubernetes Prow Robot
36362cc149
Merge pull request #84673 from hwdef/fix-staticcheck3
...
pkg/apis: fix staticcheck warning
2019-11-09 01:29:40 -08:00
shibataka000
b7122770f8
Fix bug about unintentional scale out during updating deployment.
...
During rolling update with maxSurge=1 and maxUnavailable=0,
len(metrics) is greater than currentReplcas
and it may cause unintentional scale out.
2019-11-09 06:24:31 +00:00
Kubernetes Prow Robot
49a9b6cadf
Merge pull request #84727 from danwinship/ipv6-bind
...
fix apiserver to advertise IPv6 endpoints if bound to IPv6
2019-11-08 18:44:24 -08:00
Kubernetes Prow Robot
b15dfd778a
Merge pull request #84708 from yue9944882/feat/flowcontrol-storage
...
Feature: Flowcontrol rest storage implementation
2019-11-08 18:44:09 -08:00
Kubernetes Prow Robot
92c4d68a5b
Merge pull request #84331 from zouyee/cadprocess
...
Enable cAdvisor ProcessMetrics collecting
2019-11-08 18:43:40 -08:00
Rob Scott
6b8b2ff975
Adding new label to indicate what is managing an EndpointSlice
...
This adds a new Label to EndpointSlices that will ensure that multiple
controllers or entities can manage subsets of EndpointSlices. This
label provides a way to indicate the controller or entity responsible
for managing an EndpointSlice.
To provide a seamless upgrade from the alpha release of EndpointSlices
that did not support this label, a temporary annotation has been added
on Services to indicate that this label has been initially set on
EndpointSlices. That annotation will be set automatically by the
EndpointSlice controller with this commit once appropriate Labels have
been added on the corresponding EndpointSlices.
2019-11-08 15:34:44 -08:00
Kubernetes Prow Robot
9cf309ed59
Merge pull request #82049 from andrewsykim/ga-node-instance-type-label
...
Promote Node Instance Type Label to GA
2019-11-08 13:47:58 -08:00
Kubernetes Prow Robot
8b123b1f4f
Merge pull request #81423 from codenrhoden/mount-testing-pkg
...
Refactor mount fakes
2019-11-08 12:24:52 -08:00
Shintaro Murakami
4857fc05f8
Add unit test to catch scheduler's node order evaluation regressions
2019-11-09 03:36:46 +09:00
Khaled Henidak(Kal)
2de6b2e52c
unit tests
2019-11-08 18:29:08 +00:00
Khaled Henidak(Kal)
e07402f7dc
fix a panic when ipam tries to allocate an out of range pre-existing cidr
2019-11-08 18:29:08 +00:00
Kubernetes Prow Robot
bef8d426f2
Merge pull request #84989 from wojtek-t/autogenerate_v2beta2_conversion
...
Autogenerate autoscaling/v2beta2 conversions
2019-11-08 10:13:01 -08:00
David Eads
675c2fb924
add featuregate inspection as admission plugin initializer
2019-11-08 13:07:40 -05:00
Tim Allclair
dca464d80a
Add error detail
2019-11-08 09:59:04 -08:00
John Howard
d00794ca60
Add appProtocol to EndpointSlice.Port
2019-11-08 09:22:50 -08:00
Bernat Moix
fc8ea98890
kubelet: rename HTTPGetter interface
2019-11-08 18:18:59 +01:00
Kubernetes Prow Robot
ff4718ea15
Merge pull request #84983 from krzysied/docker_fake_client_fix3
...
Fixing docker fake client - InspectExec
2019-11-08 09:00:50 -08:00
Kubernetes Prow Robot
f0184f0921
Merge pull request #84933 from krzysied/node_controller_v_level
...
Bumping up log level for not updated node
2019-11-08 09:00:40 -08:00
Kubernetes Prow Robot
ae15368355
Merge pull request #84351 from wojtek-t/promote_node_lease_to_GA
...
Promote node lease to GA
2019-11-08 09:00:15 -08:00
Aldo Culquicondor
efe9392d0b
Remove leftover factory directory
...
Signed-off-by: Aldo Culquicondor <acondor@google.com>
2019-11-08 11:45:36 -05:00
Andrew Sy Kim
094b614934
scheduler: max attachable volume predicate should also check stable instance-type label
...
Signed-off-by: Andrew Sy Kim <kiman@vmware.com>
2019-11-08 10:52:12 -05:00
Andrew Sy Kim
55e40b8dc1
cloud node controller: apply stable instance-type label with backfill to existing nodes
...
Signed-off-by: Andrew Sy Kim <kiman@vmware.com>
2019-11-08 10:50:52 -05:00
Andrew Sy Kim
17d8928dc9
kubelet: add unit tests for backfilling stable os/arch/zone/region/instance-type labels
...
Signed-off-by: Andrew Sy Kim <kiman@vmware.com>
2019-11-08 10:43:50 -05:00
Andrew Sy Kim
7ddedf5034
kubelet: apply both beta and stable instance-type label
...
Signed-off-by: Andrew Sy Kim <kiman@vmware.com>
2019-11-08 10:29:45 -05:00
Travis Rhoden
1fd8921546
Move mount/fake.go to mount/fake_mount.go
...
This patch moves fake.go to mount_fake.go, and follows to principle of
always returning a discrete type rather than an Interface. All callers
of "FakeMounter" are changed to instead use "NewFakeMounter()". The
FakeMounter "Log" struct member is changed to not be exported, and
instead only access through a new "GetLog()" method.
2019-11-08 08:07:41 -07:00
Travis Rhoden
47dc1d6af1
move exec files back
2019-11-08 08:04:33 -07:00
Travis Rhoden
1f651f5072
copy exec file to preserve history
2019-11-08 08:04:32 -07:00
wojtekt
90c9bad944
Autogenerated
2019-11-08 14:44:05 +01:00
wojtekt
8def73aac8
Correctly autogenerate conversions for autoscaling v2beta2
2019-11-08 14:42:16 +01:00
RainbowMango
159f56bf9b
Deal with auto-generated files.
...
Update bazel by hack/update-bazel.sh
2019-11-08 20:21:48 +08:00
RainbowMango
2e8dcf7809
Migrate custom collector and mark metrics with ALPHA.
2019-11-08 20:19:37 +08:00
Krzysztof Siedlecki
d46daf891c
fixing docker fake client InspectExec
2019-11-08 12:43:16 +01:00
Kubernetes Prow Robot
557275f1d1
Merge pull request #84299 from cwdsuzhou/Octo/add_policy_to_describe
...
Add reclaim policy to kubectl get storage class result
2019-11-08 03:34:14 -08:00
Kubernetes Prow Robot
59aa8fd99e
Merge pull request #82698 from janario/fix/umount-subpath-warns
...
Unmount subpath should only scan the first level of files/directories
2019-11-08 02:16:14 -08:00
Kubernetes Prow Robot
d366d2eaa3
Merge pull request #84896 from RainbowMango/pr_migrate_custom_collector_scheduler
...
Migrate custom collector for kube-scheduler
2019-11-08 01:04:14 -08:00
Kubernetes Prow Robot
3a897ad2f5
Merge pull request #84738 from liu-cong/service_affinity
...
Aggregate mulitple ServiceAffinity custom priorities to a single score plugin.
2019-11-07 23:52:44 -08:00
draveness
715068312a
feat(scheduler): convert InterPodAffinity to score plugin
2019-11-08 15:37:33 +08:00
hwdef
6c6fd9c575
pkg/apis: fix staticcheck warning
2019-11-08 14:49:39 +08:00
yue9944882
bbd2e6b48b
typo list-type s/associative/map/
2019-11-08 14:27:14 +08:00
yue9944882
3d1b5d0e9a
flowcontrol rest storage implementation
2019-11-08 14:27:14 +08:00
Kubernetes Prow Robot
7b7aa58881
Merge pull request #84952 from draveness/fix/topology-spread-node-score
...
fix: return NodeScore in even pods spread priority
2019-11-07 22:01:01 -08:00
Kubernetes Prow Robot
3ee195f0e9
Merge pull request #81431 from andrewsykim/ga-node-topology
...
Promote Node Zone/Region Topology Labels to GA
2019-11-07 22:00:20 -08:00
zouyee
3512fde8c5
clean up PriorityFunction
...
Signed-off-by: Zou Nengren <zouyee1989@gmail.com>
2019-11-08 12:33:21 +08:00
Cong Liu
e438970730
Aggregate mulitple NodePreference custom priorities to a single score plugin.
2019-11-07 22:04:38 -05:00
Andrew Sy Kim
349749644f
test/e2e: check both beta and zone label for getting cluster zone
...
Signed-off-by: Andrew Sy Kim <kiman@vmware.com>
2019-11-07 21:22:05 -05:00
Andrew Sy Kim
07229d6c51
pkg/util/node: update GetZoneKey to check both beta and GA labels
...
Signed-off-by: Andrew Sy Kim <kiman@vmware.com>
2019-11-07 21:22:04 -05:00
Andrew Sy Kim
4c194d52da
kubelet: set both deprecated Beta and GA labels for zone/region topology from the cloud provider
...
Signed-off-by: Andrew Sy Kim <kiman@vmware.com>
2019-11-07 21:22:04 -05:00
Kubernetes Prow Robot
715b6afc95
Merge pull request #84711 from chendotjs/kubelet-fixip
...
Refactor: use existing function to simplify check for IPv6 in kubelet
2019-11-07 17:38:50 -08:00
Kubernetes Prow Robot
ed19c74f39
Merge pull request #84207 from robscott/endpointslice-hostname
...
Setting Hostname from Pods on EndpointSlice to match Endpoints behavior.
2019-11-07 17:38:19 -08:00
RainbowMango
e4a128a4f7
Deal with auto-generated files.
...
Update bazel by hack/update-bazel.sh
2019-11-08 09:16:57 +08:00
RainbowMango
ee4394a306
Migrate custom collector for kubelet
2019-11-08 09:16:57 +08:00
Andrew Sy Kim
3032c81187
node controller: set both deprecated Beta and GA labels for Zone/Region topology
...
Signed-off-by: Andrew Sy Kim <kiman@vmware.com>
2019-11-07 20:08:11 -05:00
draveness
b1e52d1fc2
fix: return NodeScore in even pods spread priority
2019-11-08 08:54:55 +08:00
Kubernetes Prow Robot
bae8f56bb1
Merge pull request #84865 from deads2k/feature-gate-fail
...
panic in featuregate if a requested feature is unknown
2019-11-07 16:20:34 -08:00
Kubernetes Prow Robot
62f66ea2f5
Merge pull request #84905 from draveness/feature/remove-deprecated-priority-register
...
feat(scheduler): remove deprecated pattern in scheduler priority
2019-11-07 13:28:34 -08:00
Kubernetes Prow Robot
f7d0e9b3f1
Merge pull request #84393 from wuyafang/remove_promhttp_from_kubelet
...
remove reference to promhttp in kubelet
2019-11-07 13:27:42 -08:00
Rob Scott
0c7548f020
Setting Hostname from Pods on EndpointSlice to match Endpoints behavior.
...
This was an oversight in the initial EndpointSlice release. This update
will ensure that Endpoints and EndpointSlices use the same logic to set
the Hostname attribute.
2019-11-07 13:22:54 -08:00
David Eads
7d897d5f77
make azure fail if feature gates are not registered
2019-11-07 12:42:09 -05:00
Kubernetes Prow Robot
f7c3fa8324
Merge pull request #84860 from wojtek-t/remove_conversion_funcs_4
...
Eliminate couple default conversions
2019-11-07 09:05:30 -08:00
Kubernetes Prow Robot
06a7e9a1f3
Merge pull request #84763 from hwdef/fix-staticcheck6
...
pkg/controller: fix staticcheck warning
2019-11-07 09:05:17 -08:00
Kubernetes Prow Robot
a82092442f
Merge pull request #84635 from danielqsj/CheckServiceAffinity
...
Migrate CheckServiceAffinity custom predicate to Filter plugin
2019-11-07 09:04:39 -08:00
Kubernetes Prow Robot
d22e04c181
Merge pull request #84337 from hex108/cancel_context
...
Cancel context when RunPermitPlugins finishes
2019-11-07 09:04:10 -08:00
Kubernetes Prow Robot
a5fe905be4
Merge pull request #82705 from deads2k/agg-authn-publish
...
use controller to publish cluster authentication info
2019-11-07 09:03:10 -08:00
Krzysztof Siedlecki
4e63b9a032
bumping up log level for not updated node
2019-11-07 17:59:26 +01:00
Kubernetes Prow Robot
8841624982
Merge pull request #81167 from krzysied/node_controller_list
...
Avoid listing pods in NodeLifecycleController
2019-11-07 07:53:10 -08:00
caiweidong
1488e1e6ef
Add reclaimPolicy,volumeBindMode,allowVolumeExpandsion to kubectl get storage class
2019-11-07 23:06:03 +08:00
draveness
3bb88356f4
feat(scheduler): remove deprecated pattern in scheduler priority
2019-11-07 22:43:07 +08:00
mattjmcnaughton
d30319711e
Fix golint failures for pkg/kubelet/config/...
...
Address the final golint failure by adding a comment explaining our
blank import.
2019-11-07 09:36:22 -05:00
danielqsj
c0bbc4ce82
Migrate CheckServiceAffinity custom predicate to Filter plugin
2019-11-07 21:46:22 +08:00
clarklee92
0649f4064e
Variables collides with imported package name
...
Such declarations will make using the package exported identifiers impossible after the declaration or create confusion when reading the code.
Signed-off-by: clarklee92 <clarklee1992@hotmail.com>
2019-11-07 21:44:22 +08:00
mrobson
e401ee9158
Errors from cgroup destroy and pid kills are swallowed. Log a warning when that happens.
2019-11-07 07:47:57 -05:00
Kubernetes Prow Robot
916776c394
Merge pull request #84873 from ahg-g/ahg-equal
...
delete EqualPriority priority function, and make registering it a no op
2019-11-07 04:36:58 -08:00
Kubernetes Prow Robot
05fea1e437
Merge pull request #84834 from ahg-g/ahg-fwk
...
Remove Framework dependency on nodeinfo snapshot
2019-11-07 04:36:29 -08:00
Kubernetes Prow Robot
1183771545
Merge pull request #84748 from hvaara/fix-golint-controller-volume-persistentvolume-options
...
Fix golint issues in pkg/controller/volume/persistentvolume/options
2019-11-07 04:35:53 -08:00
Kubernetes Prow Robot
204fc6bd28
Merge pull request #84669 from draveness/feature/interpod-affinity-with-map-reduce-pattern
...
feat: update interpod affinity priority with map reduce pattern
2019-11-07 04:35:40 -08:00
Kubernetes Prow Robot
ca836256c4
Merge pull request #84573 from robscott/endpointslice-publishnotready
...
Updating EndpointSlices to use PublishNotReadyAddresses from Services.
2019-11-07 04:35:10 -08:00
Krzysztof Siedlecki
9406e5bf2a
adding pods lister
2019-11-07 12:02:21 +01:00
Janario Oliveira
c9e97151b3
Changed unmount function for subpath with dirs
2019-11-07 10:05:26 +01:00
Janario Oliveira
cb0ab22b2e
Added test case for subpath mount with file
2019-11-07 10:05:26 +01:00
Janario Oliveira
2ca213579d
Renamed function
2019-11-07 10:05:26 +01:00
Janario Oliveira
439ce51441
Changed test case to use filepath.Walk
2019-11-07 10:05:26 +01:00
Janario Oliveira
67ec00d6b8
Unmount subpath should only scan the first level dir
2019-11-07 10:05:26 +01:00
hwdef
38256df718
pkg/controller: fix staticcheck warning
2019-11-07 16:46:47 +08:00
Kubernetes Prow Robot
73b2c82b28
Merge pull request #83592 from jianzzha/opt-reserved-cpus
...
added --reserved-cpus kubelet command option
2019-11-06 22:14:42 -08:00
Kubernetes Prow Robot
24fb2c1afd
Merge pull request #84280 from gongguan/service_selector_cache
...
add service selector cache in endpoint and endpointSlice controller
2019-11-06 18:47:00 -08:00
RainbowMango
09dc221d7b
Deal with auto-generated files.
...
Update bazel by hack/update-bazel.sh
2019-11-07 10:30:12 +08:00
RainbowMango
9efabe8124
Migrate custom collector to stablility framework
2019-11-07 10:26:27 +08:00
Kubernetes Prow Robot
695c3061dd
Merge pull request #82809 from liggitt/go-1.13-no-modules
...
update to use go1.13.4
2019-11-06 17:02:43 -08:00
draveness
652baf1860
feat: update interpod affinity priority with map reduce pattern
2019-11-07 08:52:37 +08:00
Kubernetes Prow Robot
9a85b019eb
Merge pull request #84706 from yue9944882/feat/add-partial-non-resource-url-validation
...
Feature: Validates partial path for flow-schema's non-resource-url rules
2019-11-06 15:34:17 -08:00
Kubernetes Prow Robot
08e5781b41
Merge pull request #84525 from klueska/upstream-fix-hint-generation-after-kubelet-restart
...
Fix bug in TopologyManager hint generation after kubelet restart
2019-11-06 15:33:50 -08:00
Jordan Liggitt
297570e06a
hack/update-vendor.sh
2019-11-06 17:42:34 -05:00
Kubernetes Prow Robot
46472773cb
Merge pull request #84836 from yuxiaobo96/k8s-checks
...
Correct spelling mistakes
2019-11-06 12:21:11 -08:00
Kubernetes Prow Robot
43b102a83c
Merge pull request #84807 from clarklee92/ModifyTheStatusCode
...
Modify the status code number to HTTP status semantics
2019-11-06 12:20:46 -08:00
Kubernetes Prow Robot
6ca4854ddf
Merge pull request #84774 from mm4tt/kubemark_owners
...
Add sig-scalability-approvers/reviewers as kubemark approvers/reviewers
2019-11-06 12:20:22 -08:00
Kubernetes Prow Robot
b09b962d96
Merge pull request #84746 from Huang-Wei/move-sched-constrants
...
Move out const strings in pkg/scheduler/api/well_known_labels.go
2019-11-06 12:20:06 -08:00
Kubernetes Prow Robot
64be5ae5f1
Merge pull request #84713 from sttts/sttts-crd-defaulting-ga
...
Promote CRD defaulting to GA
2019-11-06 12:19:53 -08:00
Abdullah Gharaibeh
f3453a1842
delete EqualPriority priority function, and make registering it a no op
2019-11-06 13:59:32 -05:00
Rob Scott
ff3cbdb0ad
Updating EndpointSlices to use PublishNotReadyAddresses from Services.
...
The Service spec includes a PublishNotReadyAddresses field which has
been used by Endpoints to report all matching resources ready. This may
or may not have been the initial purpose of the field, but given the
desire to provide backwards compatibility with the Endpoints API here,
it seems to make sense to continue to provide the same functionality.
2019-11-06 09:11:31 -08:00
Dan Winship
afa0b808f8
Fix apiserver to advertise IPv6 endpoints if bound to IPv6
...
Also rename utilnet.ChooseBindAddress() to ResolveBindAddress(), to
better describe its functionality.
2019-11-06 11:31:43 -05:00
Kubernetes Prow Robot
1c974109b6
Merge pull request #84517 from arghya88/docs-patch
...
Fix typo in admission webhook
2019-11-06 07:19:52 -08:00
David Eads
e08fe4400e
remove clusterauthentinfo configmap if it is too large
2019-11-06 10:17:19 -05:00
David Eads
be8af0de1b
remove exist client hooks
2019-11-06 10:17:19 -05:00
David Eads
7351c86860
publish cluster authentication trust via controller
2019-11-06 10:17:19 -05:00
Kevin Klues
4d4d4bdd61
Ensure devicemanager TopologyHints are regenerated after kubelet restart
...
This patch also includes test to make sure the newly added logic works
as expected.
2019-11-06 15:01:34 +00:00
yue9944882
da612a365d
validates non-resoruce-url
2019-11-06 21:58:20 +08:00
Abdullah Gharaibeh
6b4bd87ba3
Remove Framework dependency on nodeinfo snapshot
2019-11-06 08:37:57 -05:00
Dr. Stefan Schimanski
c56f07672b
apiextensions-apiserver: promote defaulting to GA
2019-11-06 14:16:37 +01:00
wojtekt
ccded14941
Eliminate some default conversions
2019-11-06 14:08:15 +01:00
Kubernetes Prow Robot
a89265b441
Merge pull request #84845 from draveness/feature/selector-spread-as-score-plugin
...
feat: convert selector spread priority to score plugin
2019-11-06 05:02:00 -08:00
Jianzhu Zhang
89dfd24483
added --reserved-cpus kubelet command option
2019-11-06 07:33:52 -05:00
yuxiaobo
81e9f21f83
Correct spelling mistakes
...
Signed-off-by: yuxiaobo <yuxiaobogo@163.com>
2019-11-06 20:25:19 +08:00
bingshen.wbs
47642a0bad
fix kubelet failed to start on setting hugetlb limits in non-exist cgroup dir
...
cause by kubelet startup be interrupted on setting list of cgroups
In the 'cgroupManagerImpl.Exists' not check&recreate the hugetlb cgroup dir. Then setting the limits in non-exist cgroup dir will cause kubelet start failed.
Signed-off-by: bingshen.wbs <bingshen.wbs@alibaba-inc.com>
2019-11-06 16:39:55 +08:00
Matt Matejczyk
14e731924a
Add sig-scalability-approvers/reviewers as kubemark approvers/reviewers
2019-11-06 08:51:49 +01:00
draveness
089e85e098
feat: convert selector spread priority to score plugin
2019-11-06 15:48:29 +08:00
Alex Wang
e85ebccb57
enable profiling by default in the scheduler
2019-11-06 15:25:35 +08:00
Kubernetes Prow Robot
f35a92ccf8
Merge pull request #84824 from ahg-g/ahg-nodes-with-affinity-pods
...
Tracking nodes with pods with affinity
2019-11-05 22:19:41 -08:00
Kubernetes Prow Robot
3d0f737cd9
Merge pull request #84816 from liu-cong/nodelabel
...
Aggregate mulitple NodePreference custom priorities to a single score plugin.
2019-11-05 22:19:30 -08:00
Kubernetes Prow Robot
2aeacf025b
Merge pull request #84723 from hypnoglow/fix-golint-kubeapiserver
...
Fix golint issues in pkg/kubeapiserver
2019-11-05 22:18:20 -08:00
Kubernetes Prow Robot
3c4ae1c89a
Merge pull request #84606 from alculquicondor/test/priorities
...
Add benchmark test to compare EvenPodsSpreadPriority and SelectorSpreadingPriority
2019-11-05 22:18:10 -08:00
Kubernetes Prow Robot
042b17ef19
Merge pull request #83619 from damemi/cc-nilable
...
Change Scheduler ComponentConfig fields to nilable pointers
2019-11-05 22:17:13 -08:00
Wei Huang
019d7497a5
bazel files
2019-11-05 20:57:21 -08:00
Wei Huang
dd74205bcf
Move out const strings in pkg/scheduler/api/well_known_labels.go
2019-11-05 20:56:21 -08:00
Kubernetes Prow Robot
0c0408c790
Merge pull request #76407 from yanghaichao12/dev0411
...
change directory permissions from 0755 to 0750
2019-11-05 19:30:59 -08:00
louisgong
2133f9e9ff
add service selector cache in endpoint controller and endpointSlice controller
2019-11-06 10:55:26 +08:00
Abdullah Gharaibeh
c33f217a5d
tracking nodes with pod with affinity
2019-11-05 20:02:33 -05:00
Kubernetes Prow Robot
83b991a9c6
Merge pull request #84578 from denkensk/add-event-deleteandreject-podinwaiting
...
Update the event handler for deleting pods to reject the waiting pod
2019-11-05 15:31:18 -08:00
Kubernetes Prow Robot
0c32aa8910
Merge pull request #83257 from robscott/endpointslice-metrics
...
Adding initial EndpointSlice metrics.
2019-11-05 15:30:31 -08:00
Ryan Phillips
8e50c55e6b
kubelet: add certificate rotation error metric
2019-11-05 16:51:40 -06:00
Mike Dame
9e2591f867
Change scheduler ComponentConfig fields to nilable
...
As part of graduating the scheduler's component config to beta, we require configurable fields to be nilable pointers (see https://github.com/kubernetes/kubernetes/issues/78109 ). This enables the ability to distinguish between default and unset values. We are only applying this change to external types, and reacting in our defaulting logic. This also reverts existing internal component config fields which were pointers to be non-pointers, for consistency.
2019-11-05 17:06:06 -05:00
Cong Liu
97d641b129
Aggregate mulitple NodePreference custom priorities to a single score plugin.
2019-11-05 16:25:19 -05:00
Kubernetes Prow Robot
75aca1fe03
Merge pull request #84795 from ahg-g/ahg-custom
...
Convert multiple node label predicates to be a single filter plugin
2019-11-05 11:45:11 -08:00
Igor Zibarev
03dfa1a641
Fix golint issues in pkg/kubeapiserver
2019-11-05 22:25:32 +03:00
clarklee92
f86f5ee14e
Modify the status code number to HTTP status semantics
...
Signed-off-by: clarklee92 <clarklee1992@hotmail.com>
2019-11-06 01:18:37 +08:00
Kubernetes Prow Robot
b01ac96bd4
Merge pull request #84770 from mikedanese/uuid
...
remove github.com/pborman/uuid
2019-11-05 08:47:05 -08:00
Kubernetes Prow Robot
a9fb448723
Merge pull request #84670 from wojtek-t/remove_conversion_funcs_3
...
Autogenerate missing conversions for corev1 options types
2019-11-05 08:46:53 -08:00
Kubernetes Prow Robot
0685cf29ac
Merge pull request #84111 from FayerZhang/master
...
fix golint failures of kubernetes/pkg/security/apparmor
2019-11-05 08:46:39 -08:00
Kevin Klues
9dc116eb08
Ensure CPUManager TopologyHints are regenerated after kubelet restart
...
This patch also includes test to make sure the newly added logic works
as expected.
2019-11-05 15:48:51 +00:00
Abdullah Gharaibeh
134baa50b9
Convert multiple node label predicates to be a single filter plugin.
2019-11-05 10:34:51 -05:00
Kubernetes Prow Robot
de56c90540
Merge pull request #84785 from ahg-g/ahg-predicatemeta
...
expose PredicateMetadataProducer in generic scheduler
2019-11-05 06:28:54 -08:00
Kubernetes Prow Robot
268e331c70
Merge pull request #84527 from robscott/endpoint-util-owners
...
Adding owners file for Endpoint controller utils
2019-11-05 06:28:39 -08:00
Alex Wang
83dce763ec
add event to remove and reject waitingpods
2019-11-05 22:04:44 +08:00
Kevin Klues
a338c8f7fd
Add some more comments to GetTopologyHints() in the devicemanager
2019-11-05 13:06:23 +00:00
Kevin Klues
58f3554ebe
Sync all CPU and device state before generating TopologyHints for them
...
This ensures that we have the most up-to-date state when generating
topology hints for a container. Without this, it's possible that some
resources will be seen as allocated, when they are actually free.
2019-11-05 13:00:20 +00:00
Kevin Klues
d9adf20360
Abstract removeStaleState from reconcileState in CPUManager
...
This will become especially important as we move to a model where
exclusive CPUs are assigned at pod admission time rather than at pod
creation time.
Having this function will allow us to do garbage collection on these
CPUs anytime we are about to allocate CPUs to a new set of containers,
in addition to reclaiming state periodically in the reconcileState()
loop.
2019-11-05 12:45:11 +00:00
feifei.zhang@huawei.com
fdce8ef960
fix golint failures of pkg/security/apparmor
2019-11-05 18:56:15 +08:00
Abdullah Gharaibeh
f8ae5cdaf8
expose PredicateMetadataProducer in generic scheduler
2019-11-05 05:17:47 -05:00
Bruce Ma
fe50e904eb
restrict max string length in log
...
Signed-off-by: Bruce Ma <brucema19901024@gmail.com>
2019-11-05 18:09:55 +08:00
wojtekt
ffad401b4e
Promote NodeLease feature to GA
2019-11-05 09:01:12 +01:00
Kubernetes Prow Robot
1488460cd2
Merge pull request #84605 from andyzhangx/byok
...
add azure disk encryption(SSE+CMK) support
2019-11-04 23:16:52 -08:00
Mike Danese
a4ca9e6c93
migrate callers to g/g/uuid
2019-11-04 23:15:29 -08:00
Kubernetes Prow Robot
590cbef0f6
Merge pull request #84721 from klueska/pr/81586-klueska
...
Base Infrastructure for adding Merge() API to TopologyManager Policies
2019-11-04 19:40:54 -08:00
Kubernetes Prow Robot
aaa5707896
Merge pull request #84677 from mikedanese/cfssl
...
remove cfssl dependencies
2019-11-04 15:28:53 -08:00
Kubernetes Prow Robot
8ff16f35f8
Merge pull request #84007 from wojtek-t/reduce_node_update_frequency
...
Reduce node update frequency
2019-11-04 15:28:43 -08:00
Kubernetes Prow Robot
1d1385af91
Merge pull request #83474 from msau42/topology-ga
...
CSI Topology ga
2019-11-04 15:28:27 -08:00
Sean Sullivan
05bb51df9d
Move json,yaml,jsonpath printers to correct locations
2019-11-04 15:18:53 -08:00
Kubernetes Prow Robot
077f825c58
Merge pull request #84646 from liu-cong/validation
...
Validate custom priority policy config.
2019-11-04 13:44:37 -08:00
Kubernetes Prow Robot
e948a67292
Merge pull request #84415 from langyenan/fix-evict-admit
...
reject pods when under disk pressure
2019-11-04 13:44:24 -08:00
Ashley Kasim
7d4f555449
correctly handle resetting cpuacct in a live container
2019-11-04 13:06:43 -08:00
Roy Hvaara
dffcf7c8cd
Fix golint issues in pkg/controller/volume/persistentvolume/options
2019-11-04 21:45:21 +01:00
Mike Danese
6a004d0c18
support URI SANs in local signer
2019-11-04 10:56:06 -08:00
Mike Danese
fe51712288
refactor into seperate authority package
2019-11-04 10:56:06 -08:00
Mike Danese
4bd2c3998f
don't use cfssl in signer
2019-11-04 10:56:06 -08:00
Kubernetes Prow Robot
0ed6635173
Merge pull request #84534 from sambdavidson/serverRotMetric
...
Add a kubelet serving cert age metric
2019-11-04 10:31:42 -08:00
Aldo Culquicondor
75d5227225
Add benchmark test to compare EvenPodsSpreadPriority and SelectorSpreadPriority
...
Signed-off-by: Aldo Culquicondor <acondor@google.com>
2019-11-04 13:29:17 -05:00
Travis Rhoden
d3d630281c
Additional mount comments
...
Add extra comments to clarify behavior.
2019-11-04 11:01:30 -07:00
Kevin Klues
b5f52e6072
Modularize TopologyManager policy Merge() tests
...
These changes make it so that a set of common test cases can be used for
all merge strategies, with specific test cases being able to be
specified on a policy-by-policy basis.
2019-11-04 18:43:07 +01:00
Kevin Klues
7ea1fc9be4
Move TopologyManager TestPolicyMerge() to shared test file
2019-11-04 18:43:07 +01:00
Kevin Klues
d7d7bfcda0
Abstract TopologyManager Policy Merge() tests into their own function
2019-11-04 18:43:07 +01:00
Adrian Chiris
dee22d1fbc
Fix comments in TopologyManager
2019-11-04 18:43:07 +01:00
Adrian Chiris
5f7db54d3c
Move function from top-level TopologyManager to best-effort policy
...
This is in preparation for removing the special-case of the
SingleNumaNode policy in mergeProvidersHints() in favor of a custom
merging strategy with much less overhead.
2019-11-04 18:43:07 +01:00
Adrian Chiris
d95464645c
Add Merge() API to TopologyManager Policy abstraction
...
This abstraction moves the responsibility of merging topology hints to
the individual policies themselves. As part of this, it removes the
CanAdmitPodResult() API from the policy abstraction, and rolls it into a
second return value from Merge()
2019-11-04 18:43:07 +01:00
Adrian Chiris
78d7856288
Globalize a few TopologyManager functions
...
This is in preparation for a larger refactoring effort that will add a
'Merge()' API to the TopologyManager policy API.
2019-11-04 18:43:07 +01:00
Adrian Chiris
e72847676f
Pass a list of NUMA nodes to the various TopologyManager policies
...
This is in preparation for a larger refactoring effort that will add a
'Merge()' API to the TopologyManager policy API.
2019-11-04 18:43:07 +01:00
Adrian Chiris
6fd8a6eb69
Make restricted TopologyManager policy inherit from best-effort policy
...
These policies only differ on whether they admit the pod or not when a
TopologyHint is preferred or not. As such, the restricted policy should
simply inherit whatever it can from the best effort policy and only
overwrite what is necessary.
This does not matter for now, but will become important when we add a
new 'Merge()' abstraction to a Policy later on.
2019-11-04 18:43:07 +01:00
Adrian Chiris
3391daeb00
Break TopologyManager.calculateAffinity() into more modular functions
...
This modularization is in preparation for a larger refactoring effort
that will add a 'Merge()' API to the TopologyManager policy API.
2019-11-04 18:43:07 +01:00
Adrian Chiris
b17706b149
Added LessThan() and IsEqual() methods for TopologyHints
2019-11-04 18:43:07 +01:00
Cong Liu
b19f478b57
Validate custom priority policy config.
...
- Do not validate redeclartion of custom predicates.
- Validate no duplicate declaration of RequestedToCapacityRatio
- Validate the weights across multiple declarations of LabelPreference/ServiceAntiAffinity are the same.
2019-11-04 11:13:43 -05:00
Kubernetes Prow Robot
6a19261e96
Merge pull request #84123 from smarterclayton/terminating_cause
...
Handle namespace deletion more gracefully in built-in controllers
2019-11-04 07:55:41 -08:00
chendotjs
5381c9afe1
simplify check for IPv6 in kubelet.
2019-11-04 22:01:51 +08:00
yanghaichao12
5cbafba457
change directory permissions from 0755 to 0750
2019-11-04 17:04:37 +08:00
Kubernetes Prow Robot
08410cbf06
Merge pull request #84365 from codenrhoden/rm-mount-container
...
Remove Alpha feature MountContainers
2019-11-03 21:29:41 -08:00
Kubernetes Prow Robot
5e33f3db5f
Merge pull request #84445 from krzysied/node_controller_retry_fix
...
NodeLifecycleController - MarkPodsNotReady retry fix
2019-11-03 20:15:40 -08:00
Kubernetes Prow Robot
b55440dcf8
Merge pull request #84637 from zhipengzuo/master
...
fix log and note :cidr mask size must be <= node mask
2019-11-03 18:53:40 -08:00
Kubernetes Prow Robot
2b3540068b
Merge pull request #84422 from aojea/kubemarkdrop
...
kube-proxy: ensure KUBE-MARK-DROP exists
2019-11-03 13:41:39 -08:00
Kubernetes Prow Robot
afedb845f6
Merge pull request #84487 from zxl381/IFP_Err
...
Fix a data race in registrytest
2019-11-03 11:37:39 -08:00
Kubernetes Prow Robot
d8ab3f26e7
Merge pull request #84323 from draveness/feature/remove-suspended-daemon-pods
...
feat: remove suspendedDaemonPods from daemon controller
2019-11-02 23:41:40 -07:00
wojtekt
0b4b7d95a2
Autogenerated
2019-11-02 16:33:47 +01:00
Kubernetes Prow Robot
510fb38f27
Merge pull request #83671 from yue9944882/flow-control-api-model
...
Apiserver flowcontrol api models
2019-11-01 22:49:40 -07:00
Kubernetes Prow Robot
2da4678a80
Merge pull request #83578 from Huang-Wei/sched-policy-api-refactor
...
Scheduler Policy API Refactoring
2019-11-01 19:59:39 -07:00
Kubernetes Prow Robot
235db13811
Merge pull request #84621 from seans3/print-flags-test
...
Moves test to new print_flags_test.go
2019-11-01 18:08:36 -07:00
Kubernetes Prow Robot
1da7210180
Merge pull request #84440 from lsytj0413/fix-gosimple
...
refactor(*): fix comparison to bool constant, return redundant
2019-11-01 18:08:10 -07:00
Kubernetes Prow Robot
6e0c915f43
Merge pull request #84060 from yutedz/gc-ref-diff
...
Traverse OwnerReference maps more efficiently
2019-11-01 18:07:41 -07:00
Wei Huang
703a669db3
autogen files
...
- make generated_files
- update-bazel.sh & update-vendor.sh)
2019-11-01 14:38:09 -07:00
Wei Huang
c649666b4a
manual API changes and code refactoring
...
- add Policy API to pkg/scheduler/apis/config and staging/src/k8s.io/kube-scheduler/config/v1
- dual-register Policy as apiGroup "v1" and "kubescheduler.config.k8s.io
- move/merge pkg/scheduler/api to pkg/scheduler/apis/config/...
- alias schedulerapi to pkg/scheduler/apis/config
- alias legacyapi to pkg/scheduler/api
- eliminate latest.Codec; use scheme.Codecs instead
- unit tests to verify Policy YAML with version "v1" or "kubescheduler.config.k8s.io/v1" can be loaded properly
- update api/api-rules/violation_exceptions.list
2019-11-01 14:24:36 -07:00
Samuel Davidson
3e817d17a5
Updated usage of certificate.Manager to use new rotation metric
2019-11-01 13:32:09 -07:00
Kubernetes Prow Robot
ad6f30c535
Merge pull request #84618 from seans3/printers-refactor
...
Move json/yaml printer tests to correct location
2019-11-01 12:41:07 -07:00
Hongwei Yu
65f2280a38
Optimizing some format problems ( #82983 )
...
* modify the error string
* omit redundant type bool from variable declarations
2019-11-01 10:21:25 -07:00
Sean Sullivan
7d28c0b175
Move json/yaml printer tests to correct location
2019-11-01 09:28:41 -07:00
Kubernetes Prow Robot
58323cbf4e
Merge pull request #84619 from seans3/move-printer-test
...
Move small test back to printers_test.go
2019-11-01 09:01:39 -07:00
Kubernetes Prow Robot
002dbf6a4c
Merge pull request #83777 from lmdaly/fix-single-numa-node-with-best-effort-pods
...
Fixed bug in TopologyManager with SingleNUMANode Policy
2019-11-01 04:53:23 -07:00
SataQiu
89c3673a53
scheduler: improve some comments and validation messages
2019-11-01 18:30:54 +08:00
zhipengzuo
1e0b019062
fix log and annotation :cidr mask size must be <= node mask
2019-11-01 17:26:23 +08:00
caiweidong
fd6983c70f
simplify volume zone checker
2019-11-01 13:38:25 +08:00
Kubernetes Prow Robot
ed5b038313
Merge pull request #84218 from cofyc/fix74552
...
Support local filesystem volume with block source reconstruction and add related e2e tests
2019-10-31 21:53:36 -07:00
Kubernetes Prow Robot
85575e929b
Merge pull request #83387 from danwinship/proxy-error-retry
...
If an iptables proxier sync fails, retry after iptablesSyncPeriod
2019-10-31 21:53:23 -07:00
Kubernetes Prow Robot
b1ac4cda11
Merge pull request #84253 from yutedz/kube-solve-check
...
Move CheckLimitsForResolvConf to Kubelet#syncLoop
2019-10-31 18:04:54 -07:00
Sean Sullivan
290407c7eb
Moves test to new print_flags_test.go
2019-10-31 16:04:01 -07:00
Sean Sullivan
ce85e863f5
Move small test back to printers_test.go
2019-10-31 15:42:50 -07:00
Ben Moss
ce41faa2eb
Skip GetPodNetworkStatus when CNI not yet initialized
...
Without this scheduling a pod on Windows results in a panic from
`addToNetwork` when it tries to read `NetworkConfig` and `CNIConfig` off
the nil network
2019-10-31 17:51:04 -04:00
Kubernetes Prow Robot
0ded53588a
Merge pull request #84572 from davidz627/fix/owner
...
Add davidz627 as owner of pkg/volume/csi
2019-10-31 14:18:52 -07:00
Kubernetes Prow Robot
345ca19369
Merge pull request #84262 from Huang-Wei/eps-prio-migration
...
Migrate EvenPodsSpread priority implementation as Score plugin with map/reduce style
2019-10-31 14:18:38 -07:00
Kubernetes Prow Robot
4002e4c7e7
Merge pull request #84421 from tnqn/missing-endpointslice
...
Ensure EndpointSlice exist if Endpoint is found
2019-10-31 12:34:38 -07:00
Lee Verberne
cbbe7d1bb9
Remove checks for PodShareProcessNamespace feature gate
2019-10-31 17:15:23 +00:00
Kubernetes Prow Robot
e8aad06769
Merge pull request #84589 from draveness/feature/make-prioritize-nodes-private
...
feat: make prioritizeNodes private function of genericScheduler
2019-10-31 09:11:52 -07:00
Kubernetes Prow Robot
3383d7ca66
Merge pull request #83204 from obitech/kubelet_strict_serializer
...
Enable strict serializer in kubelet
2019-10-31 09:11:37 -07:00
Krzysztof Siedlecki
3a82f50b2e
adding test for retrying MarkPodsNotReady
2019-10-31 16:56:54 +01:00
Krzysztof Siedlecki
9759a982c5
MarkPodsNotReady retry fix
2019-10-31 16:56:54 +01:00
Quan Tian
92ceb166e0
Ensure EndpointSlice exist if Endpoint is unchanged
...
The EndpointSlice for masters was not created after enabling
EndpointSlice feature on a pre-existing cluster. This was because the
Endpoint object had been created and ReconcileEndpoints would skip
creating or updating it after EndpointSlice feature is enabled.
This patch ensures EndpointSlice is consistent with Endpoints after the
reconciler reconciles Endpoints even if Endpoints is unchanged. It also
avoids an update if the desired EndpointSlice matches the existing one.
2019-10-31 07:28:38 -07:00
andyzhangx
f10d44bad2
feat: add azure disk encryption(SSE+CMK) support
2019-10-31 13:24:43 +00:00
Yecheng Fu
0fd4cbcac4
log the reconstructed device and add break
2019-10-31 21:09:13 +08:00
Kubernetes Prow Robot
00deec8719
Merge pull request #84413 from cofyc/update-mount-comments
...
cleanup: Update comments of SearchMountPoints/GetMountRefs
2019-10-31 05:39:36 -07:00
draveness
b8a353a8a6
feat: make prioritizeNodes private function of genericScheduler
2019-10-31 19:43:53 +08:00
Wei Huang
90603728fb
Migrate EvenPodsSpread Priority as Score plugin in map/reduce style
2019-10-31 00:52:37 -07:00
Kubernetes Prow Robot
17a57f99d5
Merge pull request #81344 from zouyee/cpm
...
fix cpumanager reconcileState without sourceready
2019-10-30 23:33:36 -07:00
Kubernetes Prow Robot
ecec5cb2a4
Merge pull request #84540 from seans3/kubectl-get-staging
...
Moves kubectl get subcommand to staging
2019-10-30 21:56:37 -07:00
Kubernetes Prow Robot
d0f2c7c590
Merge pull request #84481 from robscott/endpointslice-port-validation
...
Fixing EndpointSlice port validation
2019-10-30 21:55:37 -07:00
Tim Allclair
bbb939357e
Fix rebase issue
2019-10-30 17:50:13 -07:00
Kubernetes Prow Robot
a381f7cb3e
Merge pull request #83508 from damemi/scheduler-cache-metric
...
Add scheduler cache size metrics
2019-10-30 16:55:36 -07:00
David Zhu
3575720154
Add davidz627 as owner of pkg/volume/csi
2019-10-30 13:35:44 -07:00
Mike Dame
828d6622a9
Update bazel
2019-10-30 15:33:29 -04:00
Mike Dame
4735011287
Add scheduler cache size metrics
2019-10-30 15:33:29 -04:00
Rob Scott
fe54e1f386
Fixing EndpointSlice port validation
...
This updates EndpointSlice port validation to mirror the validation
already in use for Service and Endpoint ports. This is required to
ensure all valid Service ports can be mapped directly to EndpointSlice
ports.
2019-10-30 12:32:23 -07:00
Kubernetes Prow Robot
c53ac65f00
Merge pull request #84561 from rphillips/fixes/fips_tweaks
...
Change unit test fixtures to be compatible with FIPS-enabled compilers
2019-10-30 12:01:12 -07:00
Kubernetes Prow Robot
409b468734
Merge pull request #84520 from mrkm4ntr/migrate-requested-to-capacity-ratio
...
RequestedToCapacityRatio as score plugin
2019-10-30 10:32:54 -07:00
Kubernetes Prow Robot
b6bf0d6d8e
Merge pull request #84553 from ahg-g/ahg-nodeinfo
...
delete nodeinfo "getter"
2019-10-30 08:36:53 -07:00
Ryan Phillips
f87da3fdfa
fixes for tests to pass with FIPS compiler
...
* use P256 ECDSA key since P224 is not supported
* regen test certs to be 2048bits
2019-10-30 10:10:11 -05:00
Kubernetes Prow Robot
5e468a49de
Merge pull request #84478 from hvaara/fix-golint-pkg/credentialprovider/gcp
...
Fix golint issues in pkg/credentialprovider/gcp
2019-10-30 06:38:54 -07:00
Shintaro Murakami
4b72af9f00
RequestedToCapacityRatio as score plugin
2019-10-30 22:00:20 +09:00
Abdullah Gharaibeh
0a29c06ba6
delete nodeinfo lister
2019-10-30 08:59:18 -04:00
Kubernetes Prow Robot
86dbdbeb53
Merge pull request #84190 from notpad/bug/84161
...
Apply feature gates in scheduler policy api compatibility test
2019-10-30 04:10:53 -07:00
Kubernetes Prow Robot
87c60f32ff
Merge pull request #84542 from Huang-Wei/priority-meta-signature
...
Expose filteredNodes to func PriorityMetadataProducer
2019-10-30 02:30:59 -07:00
Kubernetes Prow Robot
8d8a068486
Merge pull request #83963 from damemi/duplicate-policies
...
Add Scheduler validation check for redeclared policy configs
2019-10-29 23:14:53 -07:00
Wei Huang
a4305a356c
Expose filteredNodes to func PriorityMetadataProducer
2019-10-29 18:40:47 -07:00
Kubernetes Prow Robot
a8727f0f04
Merge pull request #84449 from ahg-g/ahg-prioritymeta
...
Priorities use SharedLister interface instead of NodeInfo Map
2019-10-29 17:21:03 -07:00
Tim Allclair
9f7394ac63
Update generated files
2019-10-29 16:14:34 -07:00
Tim Allclair
f827863128
Inject owner references into mirror pods
2019-10-29 16:14:06 -07:00
Sean Sullivan
2a3f28863b
Moves kubectl get subcommand to staging
2019-10-29 15:51:00 -07:00
Kubernetes Prow Robot
f8b45a12f4
Merge pull request #84464 from wojtek-t/remove_conversion_funcs_1
...
Migrate couple manual conversions to the new AddConversionFunc() way
2019-10-29 15:39:07 -07:00
Abdullah Gharaibeh
c6baa263a3
Update priorities to use SharedLister instead of using the snapshot directly
2019-10-29 16:22:00 -04:00
Kubernetes Prow Robot
5f900f6332
Merge pull request #84389 from ahg-g/ahg-interpod
...
Predicates use SharedLister interface instead of NodeInfo Map
2019-10-29 13:06:53 -07:00
Rob Scott
40423cf18e
Adding owners file for Endpoint controller utils
2019-10-29 11:01:49 -07:00
Jun Gong
81b705960f
Cancel context to make sure all plugins are cancelled when each schedule finishes
2019-10-29 22:37:59 +08:00
Kubernetes Prow Robot
f75ef82ece
Merge pull request #84506 from hex108/run_score_plugin
...
Make sure score plugins are executed when no prioritizer configured
2019-10-29 07:08:45 -07:00
Arghya Sadhu
f6da54511f
Fix typo in admission webhook
2019-10-29 19:25:22 +05:30
Gab Satch
e852cd40f0
golint changes
2019-10-29 08:25:11 -04:00
Dan Winship
2fd42dee95
If an iptables proxier sync fails, retry after iptablesSyncPeriod
2019-10-29 07:36:00 -04:00
Dan Winship
4c5f4cb353
BoundedFrequencyRunner: add RetryAfter
2019-10-29 07:36:00 -04:00
Kubernetes Prow Robot
362e17ff9f
Merge pull request #84469 from andrewsykim/cloud-node-controller-error
...
improve error handling in cloud node controller
2019-10-29 02:44:43 -07:00
Jun Gong
b4c2b00690
Make sure score plugins are executed when no priority configured
2019-10-29 17:25:35 +08:00
yue9944882
6db3edff10
[generated] ./hack/update-all.sh
...
generated
generated
generated
rule
generated
generated
2019-10-29 12:59:17 +08:00
yue9944882
c2d081eaf9
adding validation
...
validation test
validation test
validation
adding validation for fs/pl status
validation
validation
validation
replace < with <=
validation test
2019-10-29 12:59:16 +08:00
yue9944882
38171e7fba
copy-pasted internal model w/ field-tags pruned
...
internal
internal
internal
internal
internal
2019-10-29 12:26:13 +08:00
yue9944882
7c28a4b70e
non-generated api models misc
...
rule list
rule
rule 2
2019-10-29 12:26:12 +08:00
Kubernetes Prow Robot
b8f03a12dd
Merge pull request #84294 from denkensk/remove-predicate-nodeinfo-kubelet
...
Remove predicates.NodeInfo dependency from kubelet
2019-10-28 17:48:56 -07:00
Kubernetes Prow Robot
0c88c4893f
Merge pull request #84275 from liggitt/beta-gate-runtimeclass-informers
...
Feature-gate RuntimeClass informer starts
2019-10-28 17:48:42 -07:00
Andrew Sy Kim
897b8d7476
improve error handling in cloud node controller
...
Signed-off-by: Andrew Sy Kim <kiman@vmware.com>
2019-10-28 20:23:12 -04:00
Ziheng Liu
8a6fdfd648
Fix a data race in registrytest
...
Signed-off-by: Ziheng Liu <lzhfromustc@gmail.com>
2019-10-28 19:22:06 -04:00
Kubernetes Prow Robot
a45917008f
Merge pull request #84301 from yutedz/pvc-expand-fail
...
Add event for pvc in case node expansion fails
2019-10-28 14:09:29 -07:00
Gab Satch
79dafaa760
bazel and gofmt fixes
...
Signed-off-by: Ben Moss <bmoss@pivotal.io>
2019-10-28 17:02:15 -04:00
Roy Hvaara
e40c473334
Fix golint errors in pkg/credentialprovider/gcp
2019-10-28 21:54:45 +01:00
Michelle Au
fb6dfeb718
Convert attach-detach controller to use v1.CSINode
2019-10-28 13:41:13 -07:00
Michelle Au
d27fa9d890
Kubelet creates v1.CSINode
2019-10-28 13:41:13 -07:00
Michelle Au
8f6ab81cd4
Move feature gate to GA
2019-10-28 13:41:13 -07:00
Michelle Au
9268d40539
generated files
2019-10-28 13:41:13 -07:00
Michelle Au
603a2aa8a9
Add CSINode to storage/v1
2019-10-28 13:41:13 -07:00
Ashley Kasim
4b339e6e4e
fix syntax error in test
2019-10-28 13:31:00 -07:00
Mike Dame
0f15705328
Add unit test for scheduler custom policy redeclaration validation
2019-10-28 16:26:13 -04:00
wojtekt
fc2332d843
Autogenerated
2019-10-28 21:14:20 +01:00
wojtekt
32759d33bf
Cleanup conversions
2019-10-28 21:14:20 +01:00
gab-satchi
b4ba8cf188
Adds Windows build information as a label on the node
2019-10-28 14:02:26 -04:00
Kubernetes Prow Robot
badcd4af3f
Merge pull request #84084 from wojtek-t/migrate_scheduler_to_endpoints_lease_lock
...
Migrate components to EndpointsLeases leader election lock
2019-10-28 08:43:27 -07:00
lsytj0413
948a578179
refactor(*): fix comparison to bool constant, return redundant
2019-10-28 16:41:08 +08:00
wojtekt
ce499ac286
Migrate components to EndpointsLeases leader election lock
2019-10-28 09:09:03 +01:00
Jun Gong
2a85727ec5
When schedule begins, run snapshot before prefilter plugins
2019-10-28 14:59:42 +08:00
ianlang
22d8e054bc
unit test: TestAdmitUnderNodeConditions
2019-10-28 11:37:18 +08:00
Yecheng Fu
b536395c07
Add e2e test to check for filesystem volume device mount cleanup
2019-10-28 10:35:02 +08:00
Yecheng Fu
36a54399a6
support local volume with block source reconstruction
2019-10-28 10:34:57 +08:00
Antonio Ojea
1ca0ffeaf2
kube-proxy: check KUBE-MARK-DROP
2019-10-27 18:46:51 +01:00
ianlang
372bf95a4f
reject pods when under disk pressure
2019-10-27 23:27:00 +08:00
sunxiaofei03
fdbf5ef0b8
ignore image err when docker image has been cleaned up
2019-10-27 23:02:47 +08:00
Yecheng Fu
c0788c1f21
Update GetMountRefs comments
2019-10-27 15:55:07 +08:00
Kubernetes Prow Robot
41730db3f0
Merge pull request #84297 from liu-cong/custompred
...
Convert NodeLabelPresence custom predicate to filter plugin.
2019-10-26 09:57:23 -07:00
Kubernetes Prow Robot
d379ab2697
Merge pull request #84288 from wojtek-t/cleanup_conversions_registrations
...
Cleanup conversions registrations
2019-10-25 22:53:22 -07:00
Kubernetes Prow Robot
24ae4d6718
Merge pull request #84173 from cofyc/fix83693
...
Support local volume block mode reconstruction
2019-10-25 19:23:23 -07:00
wuyafang
78d24f59dd
remove reference to promhttp in kubelet
2019-10-26 09:10:33 +08:00
Cong Liu
571cea0519
Convert NodeLabelPresence custom predicate to filter plugin.
2019-10-25 19:31:17 -04:00
notpad
f67ccbeee5
Apply feature gates in scheduler policy api compatibility test
2019-10-26 07:28:01 +08:00
Abdullah Gharaibeh
05cb382357
Update PredicateMetadataProducer to accept a scheduler SharedLister instead of nodeinfomap
2019-10-25 19:19:23 -04:00
Kubernetes Prow Robot
2a1ac8bb8c
Merge pull request #84293 from ahg-g/ahg-shared
...
Made all scheduler Node and Pod list/lookups from the snapshot
2019-10-25 15:37:27 -07:00
Kubernetes Prow Robot
c2513c8ae3
Merge pull request #82603 from robscott/endpointslice-kubectl-fix
...
Fixing EndpointSlice kubectl output
2019-10-25 13:03:39 -07:00
Abdullah Gharaibeh
8ec56aeafb
Change all scheduler's Node and Pod list/lookups to be from the snapshot rather than the cache.
2019-10-25 14:24:55 -04:00
Kubernetes Prow Robot
4ee1e7510f
Merge pull request #84328 from zouyee/renamefakelister
...
rename scheduler fake listers
2019-10-25 11:15:51 -07:00
Kubernetes Prow Robot
1732b435b3
Merge pull request #83822 from zouyee/proxy-remove
...
set config.BindAddress to IPv4 address "127.0.0.1" if not specified
2019-10-25 11:15:39 -07:00
Kubernetes Prow Robot
cb0f80efe7
Merge pull request #84321 from cduchesne/csi-detach-timeout
...
CSI: modify detach timeout to match attach timeout
2019-10-25 09:54:13 -07:00
Kubernetes Prow Robot
cbf1e2d360
Merge pull request #82794 from ingvagabund/fake-clientset-enforce-exact-much-for-get
...
Require exact match when calling Get method within fake clientset
2019-10-25 09:53:39 -07:00
Anish Ramasekar
af4d18ccf9
add status.podIPs in downward api
...
add host file write for podIPs
update tests
remove import alias
update type check
update type check
remove import alias
update open api spec
add tests
update test
add tests
address review comments
update imports
remove todo and import alias
2019-10-25 09:18:49 -07:00
Travis Rhoden
2e054a4f4c
Remove Alpha feature Mount Containers
...
The alpha feature for mount containers is unused, and is
superseded by CSI. By removing it, we can remove a lot of unnecessary
code, and also clean up the mount library even more before moving it out
of tree.
2019-10-25 09:25:13 -06:00
zouyee
a3e0ac2951
set config.BindAddress to IPv4 address "127.0.0.1" if not specified
...
Signed-off-by: Zou Nengren <zouyee1989@gmail.com>
2019-10-25 21:46:41 +08:00
Lee Verberne
ea1af57eab
Promote feature PodShareProcessNamespace to GA
2019-10-25 12:35:17 +00:00
Kubernetes Prow Robot
aebc8eae9d
Merge pull request #83713 from RainbowMango/pr_refactor_kubelet_collector_test
...
Refactor kubelet collector test
2019-10-24 22:55:38 -07:00
zouyee
b86dbb97df
rename scheduler fake listers
...
Signed-off-by: Zou Nengren <zouyee1989@gmail.com>
2019-10-25 13:09:01 +08:00
Kubernetes Prow Robot
008009e93c
Merge pull request #84273 from liggitt/beta-gate-csi-informers
...
Feature-gate CSINode and CSIDriver informer starts
2019-10-24 21:35:38 -07:00
zouyee
cc35d588a7
Enable cAdvisor ProcessMetrics collecting
...
Signed-off-by: Zou Nengren <zouyee1989@gmail.com>
2019-10-25 12:19:38 +08:00
draveness
dc437a7890
feat: remove suspendedDaemonPods from daemon controller
2019-10-25 09:16:48 +08:00
Kubernetes Prow Robot
a7cc252b12
Merge pull request #84091 from robscott/endpointslice-fqdn
...
Adding FQDN address type for EndpointSlice
2019-10-24 16:56:05 -07:00
Kubernetes Prow Robot
df8587f99f
Merge pull request #84062 from seans3/tableprinter-move
...
Removes kubectl get dependency on Kubernetes core
2019-10-24 16:55:52 -07:00
Kubernetes Prow Robot
2152e1f0d5
Merge pull request #83864 from mrbobbytables/update-misc-api-machinery-owners
...
Prune inactive owners from pkg/* misc api-machinery related OWNERS files
2019-10-24 16:55:38 -07:00
Jordan Liggitt
0e2f2dde4d
Feature-gate CSINode and CSIDriver informer starts
2019-10-24 17:44:25 -04:00
Rob Scott
d410bd28c3
Adding FQDN address type for EndpointSlice
2019-10-24 13:56:04 -07:00
Kubernetes Prow Robot
09a251ce92
Merge pull request #84274 from liggitt/beta-gate-pdb-informers
...
Feature-gate PDB informer starts
2019-10-24 11:56:34 -07:00
Kubernetes Prow Robot
b0c0155c19
Merge pull request #84192 from zouyee/removewrapper
...
Remove wrappers around storage-related listers in the predicate
2019-10-24 11:56:10 -07:00
Kubernetes Prow Robot
4fdf582687
Merge pull request #84011 from liu-cong/permit
...
Add permit_wait_duration_seconds metric for scheduler.
2019-10-24 11:55:41 -07:00
wojtekt
7b6bcdf780
Autogenerated code
2019-10-24 20:21:00 +02:00
wojtekt
d7011f1bdb
Cleanup explicitly registered functions
2019-10-24 20:21:00 +02:00
obitech
bba15d358c
Add strict deserialization for kubelet component config
...
CodecFactory is started with EnableStrict that throws an error when deserializing
a Kubelet component config that is malformed (e.g. unknown or duplicate keys).
When strict decoding a v1beta1 config fails, non-strict decoding is used and a warning is emitted.
For this, NewSchemeAndCodecs is now a variadic function that can take multiple
arguments for augmenting the returned codec factory. Strict decoding is
then explicitely enabled when decoding a kubelet config.
Additionally, decoding a RemoteConfigSource needs to be non-strict
to avoid an accidental error when it contains newer API fields that are not
yet known to the Kubelet.
DecodeKubeletConfiguration returns a wrapped error instead of a simple string
so its type can be tested.
Add unit tests for unhappy paths when loading a component config
Add keys for test cases struct fields, remove nil field initialization
Co-Authored-By: Jordan Liggitt <jordan@liggitt.net>
2019-10-24 19:37:35 +02:00
Kubernetes Prow Robot
8c1ffb59e3
Merge pull request #84083 from ZP-AlwaysWin/dev02
...
cleanup util code
2019-10-24 09:49:23 -07:00
Kubernetes Prow Robot
f6644d4366
Merge pull request #78938 from nolancon/socket-mask-unit-test
...
Clean-up and additional test cases for socket-mask unit test.
2019-10-24 09:49:12 -07:00
Ted Yu
e8bd5c7785
Add event for pvc in case node expansion fails
2019-10-24 09:11:01 -07:00
zouyee
3bfdcf56e6
Remove wrappers around storage-related listers in the predicate
...
Signed-off-by: Zou Nengren <zouyee1989@gmail.com>
2019-10-24 23:26:15 +08:00
Chris Duchesne
b4e0f1b8f8
modify detach timeout to be csiTimeout
2019-10-24 07:53:16 -07:00
Alex Wang
b1a3fb4988
change kubelte nodeInfo to nodeLister
2019-10-24 22:46:59 +08:00
Kubernetes Prow Robot
900c0cf0b6
Merge pull request #84137 from cwdsuzhou/Octo/add_success_events
...
Add an event to pvc when node expand successfully
2019-10-24 07:33:15 -07:00
Antonio Ojea
1268d1a8ff
Improve iptables logging
2019-10-24 15:52:05 +02:00
Kubernetes Prow Robot
c08161a781
Merge pull request #84268 from draveness/feature/remove-wait-for-cache-sync
...
feat: remove WaitForCacheSync from scheduler factory
2019-10-24 06:12:20 -07:00
Jan Chaloupka
d32c76fc03
Require exact match when calling Get method within fake clientset
...
`Get` method within the fake clientset returns an object that would not be normally returned when using the real clientset. Reproducer:
```go
package main
import (
v1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/client-go/kubernetes/fake"
)
func main () {
cm := &v1.ConfigMap{
ObjectMeta: metav1.ObjectMeta{Namespace: metav1.NamespaceSystem, Name: "cm"},
}
client := fake.NewSimpleClientset(cm)
obj, err := client.CoreV1().ConfigMaps("").Get("", metav1.GetOptions{})
if err != nil {
panic(err)
}
fmt.Printf("obj: %#v\n", obj)
}
```
stored under `test.go` of `github.com/kubernetes/kubernetes` (master HEAD) root directory and ran:
```sh
$ go run test.go
obj: &v1.ConfigMap{TypeMeta:v1.TypeMeta{Kind:"", APIVersion:""}, ObjectMeta:v1.ObjectMeta{Name:"cm", GenerateName:"", Namespace:"kube-system", SelfLink:"", UID:"", ResourceVersion:"", Generation:0, CreationTimestamp:v1.Time{Time:time.Time{wall:0x0, ext:0, loc:(*time.Location)(nil)}}, DeletionTimestamp:(*v1.Time)(nil), DeletionGracePeriodSeconds:(*int64)(nil), Labels:map[string]string(nil), Annotations:map[string]string(nil), OwnerReferences:[]v1.OwnerReference(nil), Finalizers:[]string(nil), ClusterName:"", ManagedFields:[]v1.ManagedFieldsEntry(nil)}, Data:map[string]string(nil), BinaryData:map[string][]uint8(nil)}
```
As you can see fake clientset with a "test" configmap is created. When getting the object through the clientset back, I intentionally set the object name to an empty string. I would expect to get an error saying config map "" was not found. However, I get "test" configmap instead.
Reason for that is inside implementation of `filterByNamespaceAndName` private function:
```go
func filterByNamespaceAndName(objs []runtime.Object, ns, name string) ([]runtime.Object, error) {
var res []runtime.Object
for _, obj := range objs {
acc, err := meta.Accessor(obj)
if err != nil {
return nil, err
}
if ns != "" && acc.GetNamespace() != ns {
continue
}
if name != "" && acc.GetName() != name {
continue
}
res = append(res, obj)
}
return res, nil
}
```
When `name` is empty, `name != "" && acc.GetName() != name` condition is false and thus `obj` is consider as a fit.
[1] https://github.com/kubernetes/client-go/blob/master/testing/fixture.go#L481-L493
2019-10-24 14:41:48 +02:00
Kubernetes Prow Robot
2c4cba8aa0
Merge pull request #82365 from jkaniuk/pod-gc
...
Pod GC controller - use node lister
2019-10-24 03:13:06 -07:00
ZP-AlwaysWin
9ca7888acc
remove the extra space added
2019-10-24 17:17:31 +08:00
Kubernetes Prow Robot
2905275a08
Merge pull request #84264 from ahg-g/ahg-antiaffinity
...
Optimize interpod affinity priority function
2019-10-24 00:47:20 -07:00
Jordan Liggitt
20b2439457
Feature-gate RuntimeClass informer starts
2019-10-24 01:18:07 -04:00
Jordan Liggitt
feac7a40f5
Feature-gate PDB informer starts
2019-10-24 01:17:39 -04:00
Kubernetes Prow Robot
5238e1c80f
Merge pull request #76362 from yue9944882/chore/follow-up-prune-internal-client-scheduling-v1-api
...
Follow-up of #71136 : Switch system priority class usage to versioned (v1) api
2019-10-23 22:03:06 -07:00
draveness
76a42fb29b
feat: remove WaitForCacheSync from scheduler factory
2019-10-24 10:19:35 +08:00
Kubernetes Prow Robot
6d4aeccfcc
Merge pull request #83709 from wojtek-t/autogenerate_decode_parameters
...
Autogenerate conversions for decoding parameters
2019-10-23 19:07:05 -07:00
Abdullah Gharaibeh
b213255bc8
interpod affinity prioritize
2019-10-23 21:03:02 -04:00
Rob Scott
724b142f07
Adding initial EndpointSlice metrics.
2019-10-23 17:33:17 -07:00
Ted Yu
ae9e93d784
Move CheckLimitsForResolvConf to Kubelet#syncLoop
2019-10-23 17:16:23 -07:00
Kubernetes Prow Robot
037751e7ad
Merge pull request #83986 from qingsenLi/k8s-191016
...
Fix Typos in pkg/kubelet/dockershim/docker_service.go
2019-10-23 15:53:50 -07:00
Kubernetes Prow Robot
ed5a3847a2
Merge pull request #83856 from mrbobbytables/update-autoscaling-owners
...
Prune inactive owners from autoscaling related OWNERS files.
2019-10-23 15:53:34 -07:00
Mike Dame
5296650c1c
Add Scheduler validation check for redeclared plugin configs
2019-10-23 17:07:55 -04:00
Abdullah Gharaibeh
373cf8c1b1
move nodeinfo/snapshot.go into its own package
2019-10-23 16:12:13 -04:00
Kubernetes Prow Robot
a90b9402c9
Merge pull request #84232 from ahg-g/ahg-tree2
...
fixed node search starting point
2019-10-23 12:52:16 -07:00
Kubernetes Prow Robot
4f63f61c36
Merge pull request #84193 from ahg-g/ahg-list
...
Separate scheduler listers into their own package
2019-10-23 12:51:30 -07:00
Kubernetes Prow Robot
748a866d56
Merge pull request #84122 from smarterclayton/delete_success
...
storage: Deleting a namespace while spec.finalizers pending should not error
2019-10-23 12:51:10 -07:00
Kubernetes Prow Robot
5d3efb06d4
Merge pull request #83865 from mrbobbytables/update-api-approvers-owners
...
Prune inactive owners from api-approver owned OWNERS files.
2019-10-23 12:50:46 -07:00
Kubernetes Prow Robot
e05b9096ae
Merge pull request #83852 from mrbobbytables/update-cloud-provider-owners
...
Prune inactive owners from cloud-provider related OWNERS files.
2019-10-23 12:50:38 -07:00
Kubernetes Prow Robot
0f1a8054f9
Merge pull request #83579 from deads2k/dynamic-cert-file-ca-bundle
...
Dynamic cert file ca bundle
2019-10-23 12:49:27 -07:00
Kubernetes Prow Robot
7dc298af42
Merge pull request #82795 from draveness/feature/remove-schedule-daemonset-pods
...
feat(scheduler): graduate ScheduleDaemonSetPods to GA
2019-10-23 12:49:12 -07:00
Kubernetes Prow Robot
65fa4c979a
Merge pull request #82152 from misterikkit/disruption
...
Fix retry logic in DisruptionController
2019-10-23 12:48:58 -07:00
Ricardo Pchevuzinske Katz
6aaae7d646
Add support for builtin modules in kube-proxy
...
Signed-off-by: Ricardo Pchevuzinske Katz <ricardo.katz@serpro.gov.br>
2019-10-23 13:59:44 -03:00
yue9944882
09cf42d67c
switch system priority class to versioned (v1) api
...
move all the helpers to scheduling v1 helpers
less explicit conversion
2019-10-24 00:51:57 +08:00
DingShujie
171b486c34
Fix golint errors in pkg/apis/apps
2019-10-23 23:32:08 +08:00
David Eads
6beb96261e
wire up a means to dynamically reload ca bundles for kube-apiserver
2019-10-23 11:01:56 -04:00
Jacek Kaniuk
39883f08bf
Pod GC controller - use node lister
2019-10-23 16:54:54 +02:00
Kubernetes Prow Robot
41a4133318
Merge pull request #83931 from cheftako/context2
...
This adds context from for cloud calls for Kubelet.
2019-10-23 06:44:21 -07:00
draveness
35d772e354
feat: graduate ScheduleDaemonSetPods to GA
2019-10-23 21:34:47 +08:00
Cong Liu
f32d735b50
Add permit_wait_duration_seconds metric for scheduler.
2019-10-23 09:01:27 -04:00
Abdullah Gharaibeh
d17cf7ddff
fixed node search starting point
2019-10-23 07:51:56 -04:00
Yecheng Fu
46b1e264dc
support local volume block mode reconstruction
2019-10-23 19:32:15 +08:00
Sean Sullivan
958d7d3b6e
Removes duplicate TabWriter. Several updates to reference the one remaining TabWriter in cli-runtime.
2019-10-22 23:45:08 -07:00
Sean Sullivan
8b2130343e
Moves tableprinter.go and tabwriter.go to cli-runtime/pkg/printers. Copies PrintOptions to cli-runtime/pkg/printers.
2019-10-22 23:45:08 -07:00
wojtekt
3be4d85ec6
Autogenerated files
2019-10-23 08:28:31 +02:00
Kubernetes Prow Robot
2adadf9218
Merge pull request #84023 from seans3/printing-tests-cleanup
...
Move GoTemplatePrinter tests to correct location
2019-10-22 23:19:32 -07:00
Kubernetes Prow Robot
0c3424f53c
Merge pull request #83535 from wgliang/cleanup/scheduler_goroutines
...
Add a metric to track number of scheduler binding and prioritizing goroutines
2019-10-22 23:18:41 -07:00
Kubernetes Prow Robot
75cd65ae0e
Merge pull request #82145 from shivi28/fix-controller-nodeipam-ipam-cidrset
...
nodeipam-controller:fix static check failures
2019-10-22 23:18:26 -07:00
Kubernetes Prow Robot
6d314f860e
Merge pull request #84156 from wawa0210/win-performance-counter
...
Fix windows performance counter error on Non-English environemnt
2019-10-22 20:10:24 -07:00
Kubernetes Prow Robot
a005925a71
Merge pull request #84048 from jsafrane/kubelet-volumemode-checks
...
Check PV volumeMode in kubelet even when block feature is off
2019-10-22 20:10:13 -07:00
Cristian Dima
da759609dc
in pkg/controller/service rename service_controller.go to controller.go
2019-10-23 01:52:19 +03:00
Cristian Dima
a18de39166
fix golint errors in pkg/controller/service
2019-10-23 01:52:19 +03:00
Abdullah Gharaibeh
d393804237
separate listers into their own package
2019-10-22 18:11:02 -04:00
Sean Sullivan
6660937139
Move template printer error test to correct location template_test.go
2019-10-22 13:07:07 -07:00
Sean Sullivan
57259fa419
Moves TestTemplatePanic to correct location of template_test.go
2019-10-22 13:07:07 -07:00
Sean Sullivan
d9ded62fb9
Moves TestTemplateStrings to correct location of template_test.go
2019-10-22 13:07:07 -07:00
Kubernetes Prow Robot
9fa1bc8003
Merge pull request #83422 from yastij/remove-ipallocator
...
remove ipallocator in favor of k/utils net package
2019-10-22 12:52:13 -07:00
Kubernetes Prow Robot
1d489b77e5
Merge pull request #84120 from smarterclayton/preempt
...
kubelet: Record preemptions similarly to evictions
2019-10-22 10:28:49 -07:00
Kubernetes Prow Robot
3c0fa84f92
Merge pull request #84075 from yutedz/replica-set-rolling
...
Extract PodPhase map outside Less func
2019-10-22 10:28:36 -07:00
Yassine TIJANI
f984b4c7a2
remove ipallocator in favor of k/utils net package
...
Signed-off-by: Yassine TIJANI <ytijani@vmware.com>
2019-10-22 18:37:13 +02:00
Dan Winship
478fadccff
BoundedFrequencyRunner: fix tests
...
The tests were using a fake timer that only ticked when the test cases
told it to, so it would only be correctly testing the
BoundedFrequencyRunner functionality if the test cases made it tick
whenever the BFR timer was supposed to expire, and didn't make it tick
at any other time. But they didn't do that. Fix it to tick
automatically at the correct times, and update the test cases
accordingly (including adding a new helper method for asserting that
the runner did nothing in cases when it's expected to have done
nothing).
Also fix two unrelated minor bugs in fakeTimer.
2019-10-22 08:17:30 -04:00
Jan Safranek
c9fc26d85e
Fix volumeMode retrieval when BlockVolume feature is off
...
API served does not need to default volumeMode to Filesystem.
2019-10-22 10:17:14 +02:00
draveness
09f333940e
feat: remove CheckNodeMemoryPressure/DiskPressure/PIDPressure/Condition predicates
2019-10-22 15:28:32 +08:00
Kubernetes Prow Robot
ffffd6b6f5
Merge pull request #84148 from gongguan/filter_plugin
...
[migration phase 1] Add filter plugin for cloud provider storage predicate
2019-10-21 21:12:19 -07:00
Kubernetes Prow Robot
4984c6f000
Merge pull request #84049 from jsafrane/block-feature-gate-checks
...
Add block feature gate checks to PV controller
2019-10-21 21:12:09 -07:00
Kubernetes Prow Robot
899ca689ad
Merge pull request #83983 from phiremande/phk-kube-dev
...
Issue 83458:Changed the return check for GetNodeInfo
2019-10-21 21:11:58 -07:00
Kubernetes Prow Robot
bbe71214a6
Merge pull request #83677 from HotelsDotCom/kube-proxy-README
...
Bugfix kube-proxy README file to list ipvs modules, closes #83676
2019-10-21 21:11:51 -07:00
Kubernetes Prow Robot
18cef954a1
Merge pull request #83591 from jingxu97/Oct/cache
...
Flush data cache during unmount device for GCE-PD in Windows
2019-10-21 21:11:36 -07:00
Ted Yu
7a4b98b896
Extract PodPhase map outside Less func
2019-10-21 14:32:20 -07:00
Kubernetes Prow Robot
b717be8269
Merge pull request #83872 from cheftako/context
...
Push context up to cloud node controller.
2019-10-21 12:38:36 -07:00
Kubernetes Prow Robot
8138e8d012
Merge pull request #83310 from SataQiu/clean-scheduler-20190930
...
scheduler: make getVolumeLimits a function instead of a method
2019-10-21 12:38:06 -07:00
Pradeep Hiremande
678b670f92
Issue 83458:Changed the return check for GetNodeInfo
2019-10-21 21:51:31 +05:30
louisgong
70ca08ec89
filter plugin for cloud provider storage predicate
2019-10-21 23:56:23 +08:00
xiaozhang
685c8f93d9
fix windows performance counter father information failed on Non-English environment
2019-10-21 19:49:13 +08:00
Guoliang Wang
9d173852c1
Add a metric to track number of scheduler prioritizing goroutines
2019-10-21 16:38:14 +08:00
Guoliang Wang
08f7b22025
Add a metric to track number of scheduler binding goroutines
2019-10-21 16:38:12 +08:00
Kubernetes Prow Robot
ac6c77c440
Merge pull request #84121 from zouyee/renamefit
...
rename FilterPlugin NodeResources
2019-10-20 20:45:37 -07:00
caiweidong
909be01bd6
Add an event to pvc when node expand successfully
2019-10-21 11:33:46 +08:00
Clayton Coleman
bd9260711f
deployment: Ignore namespace termination errors when creating replicasets
...
Instead of reporting an event or displaying an error, simply exit
when the namespace is being terminated. This reduces the amount of
controller churn on namespace shutdown. Unlike other controllers, we
drop the replica set create error very late (in the queue handleErr)
in order to avoid changing the structure of the controller
substantially.
2019-10-20 18:39:01 -04:00
Clayton Coleman
c6e34e58c5
job: Ignore namespace termination errors when creating pods or jobs
...
Instead of reporting an event or displaying an error, simply exit
when the namespace is being terminated. This reduces the amount of
controller churn on namespace shutdown. While we could technically
exit the entire processing loop early for very large jobs,
we should wait for more evidence that is an issue before changing
that logic substantially.
2019-10-20 18:39:01 -04:00
Clayton Coleman
8f74c8970b
daemonset: Ignore namespace termination errors when creating pods
...
Instead of reporting an event or displaying an error, simply exit
when the namespace is being terminated. This reduces the amount of
controller churn on namespace shutdown. While we could technically
exit the entire processing loop early for very large daemon sets,
we should wait for more evidence that is an issue before changing
that logic substantially.
2019-10-20 18:39:00 -04:00
Clayton Coleman
2e8ace82eb
replicaset: Ignore namespace termination errors when creating pods
...
Instead of reporting an event or displaying an error, simply exit
when the namespace is being terminated. This reduces the amount of
controller churn on namespace shutdown. While we could technically
exit the entire processing loop early for very large replica sets,
we should wait for more evidence that is an issue before changing
that logic substantially.
2019-10-20 18:39:00 -04:00
Clayton Coleman
dc0c21c7d7
serviceaccount: If namespace is terminating, ignore create errors
...
In some scenarios the service account and token controllers can
race with namespace deletion, causing a burst of errors as they
attempt to recreate secrets being deleted.
Instead, detect these errors and do not retry.
2019-10-20 18:39:00 -04:00
Clayton Coleman
937ef77257
endpoints: If namespace is terminating, drop item immediately
...
Avoid sending an event to the namespace that is being terminated,
since it will be rejected.
2019-10-20 18:38:59 -04:00
walter
6991069e31
Push context up to cloud node controller.
...
This adds context to the cloud node controller. It continues the propogation started in 59287. Fixes 815.
Fixed test code calls.
2019-10-20 11:20:49 -07:00
Kubernetes Prow Robot
019b662ff5
Merge pull request #84017 from ahg-g/ahg-csi
...
Remove CSINode from scheduler cache.
2019-10-20 03:17:37 -07:00
zouyee
04340eaa34
rename FilterPlugin NodeResources
...
Signed-off-by: Zou Nengren <zouyee1989@gmail.com>
2019-10-20 12:51:16 +08:00
Clayton Coleman
2ddeb94b56
storage: Deleting a namespace while spec.finalizers pending should not error
...
All objects with graceful deletion allow multiple DELETE calls in the pending
state. Namespace is the one outlier, and the error here predates graceful
deletion and finalizers. We should make this behavior consistent with other
calls and merely indicate success and return the state of the object, the
same as if there were pending metadata finalizers.
Clients that previously checked for a conflict error during delete to know
that the server is already deleting will now no longer receive an error
(as if the object were rapidly deleted). There is a small chance that some
clients have error checking for this state, but a much larger chance that
clients that want to trigger a delete of the namespace do not handle this
error case.
Discovered in an e2e test that used the framework namespace and triggered
deletion of that ns itself, and then the AfterEach step in e2e failed
because the namespace was already pending deletion.
2019-10-19 23:08:17 -04:00
Ted Yu
0d704f1ce2
Traverse OwnerReference maps more efficiently
2019-10-19 17:56:11 -07:00
Kubernetes Prow Robot
e1685b5b59
Merge pull request #84074 from zouyee/proirity
...
LeastRequestedPriority/MostRequestedPriority/BalancedResourceAllocation as Score plugins
2019-10-19 17:21:37 -07:00
Clayton Coleman
3c44e11cfa
kubelet: Record preemptions similarly to evictions
...
A preemption is a disruption event that should have a metric so that
the rate of preemption can be assessed. Nodes that are under heavy
preemption may have conflicting workloads or otherwise need attention.
A sudden burst of preemption on a cluster in steady state could
indicate pathological conditions within the scheduler or workload
controllers.
2019-10-19 19:07:37 -04:00
Kubernetes Prow Robot
9c25b16d88
Merge pull request #84099 from draveness/feature/remove-lister-wrapper
...
feat(scheduler): replace several algorithm listers with client listers
2019-10-19 08:05:37 -07:00
zouyee
bd4167d149
remove unused meta and rename lablance_allocated
...
Signed-off-by: Zou Nengren <zouyee1989@gmail.com>
2019-10-19 22:43:15 +08:00
Kubernetes Prow Robot
7e53c9d808
Merge pull request #83756 from hex108/permit
...
Refactor scheduler's framework permit API
2019-10-19 06:47:37 -07:00
zouyee
408c9da2a6
LeastRequestedPriority/MostRequestedPriority/BalancedResourceAllocation as Score plugins
...
Signed-off-by: Zou Nengren <zouyee1989@gmail.com>
2019-10-19 20:49:05 +08:00
draveness
ce33fcc311
feat: remove FakePDBLister
2019-10-19 19:10:42 +08:00
draveness
00a12c787c
feat: implement node unschedulable as a filter plugin
2019-10-19 17:29:25 +08:00
draveness
e1f86e3460
feat(scheduler): replace several algorithm listers with client listers
2019-10-19 17:26:32 +08:00
Jun Gong
38b7668bb3
Refactor scheduler's framework permit API
2019-10-19 16:22:39 +08:00
Kubernetes Prow Robot
2b79d284fd
Merge pull request #84066 from Huang-Wei/eps-migration
...
Migrate EvenPodsSpread Predicate to Filter plugin
2019-10-18 21:54:12 -07:00
Abdullah Gharaibeh
a772722660
Remove CSINode from scheduler cache.
2019-10-19 03:52:22 +00:00
Kubernetes Prow Robot
aab740ffc2
Merge pull request #82703 from draveness/feature/graduate-taint-nodes-by-condition-to-ga
...
feat: update taint nodes by condition to GA
2019-10-18 20:01:37 -07:00
draveness
1163a1d51e
feat: update taint nodes by condition to GA
2019-10-19 09:17:41 +08:00
Kubernetes Prow Robot
98fcf2e6c7
Merge pull request #84034 from mrkm4ntr/use-informer-factory
...
Use frameworkHandle to get listers
2019-10-18 15:21:57 -07:00
Kubernetes Prow Robot
70f68062ad
Merge pull request #84014 from ahg-g/ahg-tree
...
Make node tree order part of the snapshot
2019-10-18 15:21:37 -07:00
Wei Huang
64ff958e69
migrate EvenPodsSpread Predicate to Filter plugin
2019-10-18 14:18:02 -07:00
Kubernetes Prow Robot
de9a7d863d
Merge pull request #83934 from wccsama/wcc-service-dev
...
Convert error messages to use event recorder
2019-10-18 12:37:46 -07:00
Abdullah Gharaibeh
63d7733e98
create an ordered list of nodes instead of iterating over the tree
2019-10-18 12:51:46 -04:00
Shintaro Murakami
bf256bcb00
Use frameworkHandle to get listers
2019-10-19 01:29:05 +09:00
Kubernetes Prow Robot
27c679baca
Merge pull request #83982 from lichuqiang/frame_mig1
...
[migration phase 1] MatchInterPodAffinity as filter plugin
2019-10-18 09:23:58 -07:00
Kubernetes Prow Robot
422256110e
Merge pull request #84073 from draveness/feature/cleanup-framework-plugins
...
feat: several cleanups in the scheduling package
2019-10-18 04:43:57 -07:00
lichuqiang
671f7690fe
[migration phase 1] MatchInterPodAffinity as filter plugin
2019-10-18 16:26:34 +08:00
preisinger
d6431fbdfa
Bugfix kube-proxy README file to list ipvs modules
2019-10-18 09:25:28 +01:00
wccsama
18cf49e3df
Convert error messages to use event recorder
...
remove mix protocol validation
remove check nil
2019-10-18 13:30:00 +08:00
Kubernetes Prow Robot
d1a79f136b
Merge pull request #84054 from ahg-g/ahg-gp
...
GeneralPredicate as framework plugin config
2019-10-17 21:19:58 -07:00
nolancon
b0a85177d2
Clean-up and additional test cases for socket-mask unit test.
2019-10-18 04:16:06 +01:00
draveness
39af760930
feat: several cleanups in the scheduling package
...
+ Remove unused variable in tests.
+ Use more common statement for interface conformance check.
+ Fix several comments in the framework plugins.
2019-10-18 11:14:05 +08:00
Kubernetes Prow Robot
9bf2ba7369
Merge pull request #84015 from ahg-g/ahg-filters
...
cleanup unnecessary func parameters in genericScheduler methods
2019-10-17 19:50:56 -07:00
Kubernetes Prow Robot
91050062f9
Merge pull request #83894 from notpad/feature/migration_nodevolumelimit
...
[migration phase 1] CSIMaxVolumeLimitChecker as filter plugin
2019-10-17 19:50:41 -07:00
Kubernetes Prow Robot
e129a6bc3f
Merge pull request #80004 from Miciah/prefer-to-delete-doubled-up-pods-of-a-replicaset
...
Prefer to delete doubled-up pods of a ReplicaSet
2019-10-17 15:09:58 -07:00
Sean Sullivan
37fca51d74
Relocate tableprinter tests ( #84027 )
...
* Moves TestPrintUnstructuredObject to tableprinter_test.go
* Move TestUnknownTypePrinting to correct location of tableprinter_test.go
* Removes NewTablePrinter from TestCustomTypePrinting
2019-10-17 09:52:53 -07:00
Miciah Masters
980b6406b2
Prefer to delete doubled-up pods of a ReplicaSet
...
When scaling down a ReplicaSet, delete doubled up replicas first, where a
"doubled up replica" is defined as one that is on the same node as an
active replica belonging to a related ReplicaSet. ReplicaSets are
considered "related" if they have a common controller (typically a
Deployment).
The intention of this change is to make a rolling update of a Deployment
scale down the old ReplicaSet as it scales up the new ReplicaSet by
deleting pods from the old ReplicaSet that are colocated with ready pods of
the new ReplicaSet. This change in the behavior of rolling updates can be
combined with pod affinity rules to preserve the locality of a Deployment's
pods over rollout.
A specific scenario that benefits from this change is when a Deployment's
pods are exposed by a Service that has type "LoadBalancer" and external
traffic policy "Local". In this scenario, the load balancer uses health
checks to determine whether it should forward traffic for the Service to a
particular node. If the node has no local endpoints for the Service, the
health check will fail for that node. Eventually, the load balancer will
stop forwarding traffic to that node. In the meantime, the service proxy
drops traffic for that Service. Thus, in order to reduce risk of dropping
traffic during a rolling update, it is desirable preserve node locality of
endpoints.
* pkg/controller/controller_utils.go (ActivePodsWithRanks): New type to
sort pods using a given ranking.
* pkg/controller/controller_utils_test.go (TestSortingActivePodsWithRanks):
New test for ActivePodsWithRanks.
* pkg/controller/replicaset/replica_set.go
(getReplicaSetsWithSameController): New method. Given a ReplicaSet, return
all ReplicaSets that have the same owner.
(manageReplicas): Call getIndirectlyRelatedPods, and pass its result to
getPodsToDelete.
(getIndirectlyRelatedPods): New method. Given a ReplicaSet, return all
pods that are owned by any ReplicaSet with the same owner.
(getPodsToDelete): Add an argument for related pods. Use related pods and
the new getPodsRankedByRelatedPodsOnSameNode function to take into account
whether a pod is doubled up when sorting pods for deletion.
(getPodsRankedByRelatedPodsOnSameNode): New function. Return an
ActivePodsWithRanks value that wraps the given slice of pods and computes
ranks where each pod's rank is equal to the number of active related pods
that are colocated on the same node.
* pkg/controller/replicaset/replica_set_test.go (newReplicaSet): Set
OwnerReferences on the ReplicaSet.
(newPod): Set a unique UID on the pod.
(byName): New type to sort pods by name.
(TestGetReplicaSetsWithSameController): New test for
getReplicaSetsWithSameController.
(TestRelatedPodsLookup): New test for getIndirectlyRelatedPods.
(TestGetPodsToDelete): Augment the "various pod phases and conditions, diff
= len(pods)" test case to ensure that scale-down still selects doubled-up
pods if there are not enough other pods to scale down. Add a "various pod
phases and conditions, diff = len(pods), relatedPods empty" test case to
verify that getPodsToDelete works even if related pods could not be
determined. Add a "ready and colocated with another ready pod vs not
colocated, diff < len(pods)" test case to verify that a doubled-up pod gets
preferred for deletion. Augment the "various pod phases and conditions,
diff < len(pods)" test case to ensure that not-ready pods are preferred
over ready but doubled-up pods.
* pkg/controller/replicaset/BUILD: Regenerate.
* test/e2e/apps/deployment.go
(testRollingUpdateDeploymentWithLocalTrafficLoadBalancer): New end-to-end
test. Create a deployment with a rolling update strategy and affinity
rules and a load balancer with "Local" external traffic policy, and verify
that set of nodes with local endponts for the service remains unchanged
during rollouts.
(setAffinity): New helper, used by
testRollingUpdateDeploymentWithLocalTrafficLoadBalancer.
* test/e2e/framework/service/jig.go (GetEndpointNodes): Factor building the
set of node names out...
(GetEndpointNodeNames): ...into this new method.
2019-10-17 11:52:32 -04:00
Miciah Masters
865c3c5670
TestGetPodsToDelete: Use field names in test cases
...
* pkg/controller/replicaset/replica_set_test.go (TestGetPodsToDelete): Use
explicit field names in declarations of test cases.
2019-10-17 11:50:09 -04:00
Kubernetes Prow Robot
fef819254a
Merge pull request #83998 from draveness/feature/node-affinity-score-plugin
...
feat(scheduler): implement node affinity as score plugin
2019-10-17 08:24:38 -07:00
Abdullah Gharaibeh
517116921b
GeneralPredicate as plugin config
2019-10-17 11:13:57 -04:00
Abdullah Gharaibeh
1293facf7b
cleanup unnecessary func parameters in genericScheduler methods
2019-10-17 10:31:14 -04:00
notpad
f06925b0ee
[migration phase 1] CSIMaxVolumeLimitChecker as filter plugin
2019-10-17 22:04:02 +08:00
Jan Safranek
acf129443c
Check PV volumeMode in kubelet even when block feature is off
2019-10-17 15:26:48 +02:00
Jan Safranek
a689697519
Do not bind block PV/PVCs when block feature gate is off
2019-10-17 12:40:22 +02:00
Kubernetes Prow Robot
fa99d4068b
Merge pull request #83466 from wongma7/block-reconstruct
...
Fix AWS block volume reconstruction to be like file
2019-10-17 03:18:51 -07:00
draveness
3d74da4d53
feat(scheduler): implement node affinity as score plugin
2019-10-17 17:02:10 +08:00
Kubernetes Prow Robot
bdc3f96838
Merge pull request #83989 from wojtek-t/remove_coordination_v1beta1
...
Swtich nodelifecyclecontroller to coordination/v1
2019-10-17 01:47:29 -07:00
Kubernetes Prow Robot
3719fcdffa
Merge pull request #82072 from draveness/feature/use-context-instead-of-channel
...
feat(scheduler): use context in scheduler package
2019-10-17 01:46:39 -07:00
Kubernetes Prow Robot
6a5f0e6eda
Merge pull request #81348 from yastij/code-org-service-controller
...
move service helpers to k8s.io/cloud-provider
2019-10-17 00:20:38 -07:00
Kubernetes Prow Robot
bc25814fb9
Merge pull request #84028 from ahg-g/ahg-hasfilter
...
make sure filters are executed when no predicates configured
2019-10-16 22:25:52 -07:00
Hongwei Yu
7574f95f7d
optimize comments on exported constants ( #83875 )
...
* optimize comments on exported constants
* remove package in hack/.golint_failures are passing golint
2019-10-16 22:25:30 -07:00
Kubernetes Prow Robot
c63ec82490
Merge pull request #75190 from deads2k/kubelet-timeout
...
set backup value to ensure connections against kubelets eventually close
2019-10-16 22:24:38 -07:00
Abdullah Gharaibeh
17a6a7914c
make sure filters are executed when no predicates configured
2019-10-16 21:27:57 -04:00
draveness
47a6c5b693
feat(scheduler): use context in the scheduler package
...
+ Use context instead of stopCh
+ Add context to the scheduling framework interface
2019-10-17 09:03:55 +08:00
Kubernetes Prow Robot
f7091992c0
Merge pull request #83577 from liu-cong/queue-metrics
...
Add incoming pod metrics to scheduler queue.
2019-10-16 17:34:39 -07:00
Matthew Wong
82786ff720
Fix AWS block volume reconstruction to be like file
2019-10-16 14:27:57 -07:00
Kubernetes Prow Robot
cb19b56831
Merge pull request #83419 from deads2k/insecure-backend-proxy
...
Insecure backend proxy
2019-10-16 13:58:38 -07:00
Kubernetes Prow Robot
0e2383df15
Merge pull request #83893 from draveness/feature/node-prefer-avoid-pods
...
feat(scheduler): implement NodePreferAvoidPods as score plugin
2019-10-16 11:37:30 -07:00
Cong Liu
fc226e0670
Add incoming pod metrics to scheduler queue.
2019-10-16 14:26:16 -04:00
David Eads
ff689ce3de
set backup value to ensure connections against kubelets eventually close
2019-10-16 13:39:14 -04:00
Jing Xu
1636b2b452
Flush data cache during unmount device for GCE-PD in Windows
...
This PR fixes the issue mentioned in #83590 for GCE-PD. It uses
WriteVolumeCache API to writes the file system cache to disk during
UnmountDevice in Windows. Linux does not need to explicitly flush cache
because unmount will automatically sync the disk which also flush the
cache.
Change-Id: Ife2745c92b8c0446e79a52e9f9ec7851d2f6b90d
2019-10-16 10:12:35 -07:00
Kubernetes Prow Robot
064458de46
Merge pull request #83951 from zouyee/pdbtomeb
...
add tombstones handle for pdb
2019-10-16 09:36:36 -07:00
Kubernetes Prow Robot
99ad2f4303
Merge pull request #83921 from ahg-g/ahg-nodelist
...
Move scheduler cache ListNodes interface to snapshot
2019-10-16 09:35:09 -07:00
Kubernetes Prow Robot
78abdf5375
Merge pull request #83902 from gongguan/remove_duplicate_code
...
remove duplicate code
2019-10-16 09:34:22 -07:00
Kubernetes Prow Robot
d720a2269a
Merge pull request #83802 from seans3/rewrite-printer-tests
...
Rewrite printer tests
2019-10-16 09:33:42 -07:00
David Eads
867ee1d5ff
add insecurebackendproxy
2019-10-16 11:43:17 -04:00
wojtekt
dcf8200d28
Bump default NodeStatusReportFrequency to 5m
2019-10-16 16:37:22 +02:00
qingsenLi
8d3daa8260
fix errors
2019-10-16 22:11:47 +08:00
Yassine TIJANI
d796baea27
move service helpers to k8s.io/cloud-provider
...
Signed-off-by: Yassine TIJANI <ytijani@vmware.com>
2019-10-16 14:12:11 +02:00
wojtekt
cf9203501e
Swtich nodelifecyclecontroller to coordination/v1
2019-10-16 10:59:02 +02:00
Kubernetes Prow Robot
f64c631cd7
Merge pull request #83867 from yutedz/snapshot-restore-err
...
Check error return from snapshot Restore
2019-10-15 23:06:59 -07:00
Kubernetes Prow Robot
112bdfb7c0
Merge pull request #83862 from mrbobbytables/update-controller-network-owners
...
Prune inactive owners from pkg/controller/* network related OWNERS files
2019-10-15 23:06:49 -07:00
Kubernetes Prow Robot
ed6b07248b
Merge pull request #83861 from mrbobbytables/update-kubelet-network-owners
...
Prune inactive owners from pkg/kubelet/* network related OWNERS files.
2019-10-15 23:06:40 -07:00
Kubernetes Prow Robot
63cf2e260b
Merge pull request #83819 from mrbobbytables/emeritus-jbeda
...
Move jbeda to emeritus status.
2019-10-15 23:06:20 -07:00
Kubernetes Prow Robot
bb6166419a
Merge pull request #83644 from danwinship/userspace-proxy-logging
...
Don't log about deleting non-existent affinity entries in userspace OnEndpointsAdd
2019-10-15 23:05:38 -07:00
Kubernetes Prow Robot
1552ba6b00
Merge pull request #83569 from liu-cong/framework-metrics
...
Add metrics for scheduler framework.
2019-10-15 23:05:28 -07:00
Kubernetes Prow Robot
a7b3114c88
Merge pull request #83553 from rikatz/issue77493-part1
...
Improve IPVS Module loader logic
2019-10-15 23:05:13 -07:00
Kubernetes Prow Robot
af6f302e46
Merge pull request #83498 from danwinship/proxy-health
...
Fix kube-proxy healthz server for proxier sync loop changes
2019-10-15 23:04:58 -07:00
Kubernetes Prow Robot
30ba9f6548
Merge pull request #83206 from robscott/endpointslice-proxy-endpointchange-perf
...
Reworking kube-proxy to only compute endpointChanges on apply
2019-10-15 23:04:10 -07:00
Sean Sullivan
30d8a93768
Cleanup printer test package.
...
Updates internalversion BUILD file dependencies
Removes pkg/printers/internalversion from staticcheck failures
2019-10-15 18:13:00 -07:00
Sean Sullivan
cc56738a9e
Removes unnecessary/irrelevant tests
...
Remove test TestPrintPodTable
Removes test TestPrintPodShowLabels
2019-10-15 17:54:36 -07:00
Sean Sullivan
6ced323a94
Adds missing tests.
...
Added test TestPrintEvent()
Added test TestPrintNamespace()
Added test TestPrintSecret()
Added test TestPrintServiceAccount()
Added test TestPrintPodCondition()
Added test TestPrintDaemonSetLists
Added test TestPrintJobList
Added test TestPrintPodDisruptionBudgetList
Adds test TestPrintConfigMap
Adds test TestPrintNetworkPolicy
Adds tests TestPrintRoleBinding and TestPrintClusterRoleBinding
Adds test TestPrintCertificateSigningRequest
Adds test TestPrintEndpoint
Adds test TestPrintReplicaSetList
Adds test TestPrintComponentStatus
Adds test TestPrintCronJobList
Adds test TestPrintPodTemplate
Adds test TestPrintPodTemplateList
Adds test TestPrintReplicationController
Adds test TestPrintServiceList
Adds test TestPrintStatefulSet
2019-10-15 17:52:06 -07:00
Sean Sullivan
cd4349ffbd
Updates tests to expect metav1.TableRows instead of string, since this is what the "print" functions return.
...
Updated test TestPrintNodeStatus() to not use NewTableGenerator or NewTablePrinter
Updated test TestPrintNodeRode() to not use NewTableGenerator or NewTablePrinter
Updated test TestPrintNodeOSImage() to remove NewTableGenerator and NewTablePrinter
Updated test TestPrintNodeKernelVersion() to remove NewTableGenerator and NewTablePrinter
Updated test TestPrintNodeContainerRuntimeVersion() to remove NewTableGenerator and NewTablePrinter
Updated test TestPrintNodeName() to remove NewTableGenerator and NewTablePrinter
Updated test TestPrintNodeExternalIP() to remove NewTableGenerator and NewTablePrinter
Updated test TestPrintNodeInternalIP() to remove NewTableGenerator and NewTablePrinter
Updated ingress printing test to TestPrintIngress()
Updated test TestPrintService() to remove NewTableGenerator and NewTablePrinter
Updated test to TestPrintServiceLoadBalancer, removing NewTableGenerator and NewTablePrinter
Updated test TestPrintNonTerminatedPod() to remove NewTableGenerator
Updates test TestPrintDeployment() removing NewTableGenerator and NewTablePrinter
Updated test TestPrintDaemonSet(), removing NewTableGenerator and NewTablePrinter
Updated test TestPrintJob, removing NewTableGenerator and NewTablePrinter
Updates test TestPrintHPA(), removing NewTableGenerator and NewTablePrinter
Updated test TestPrintPodDisruptionBudget(), removing NewTableGenerator and NewTablePrinter
Updated test TestPrintControllerRevision(), removing NewTableGenerator and NewTablePrinter
Updates test TestPrintLease, removing NewTableGenerator and NewTablePrinter
Updates test TestPrintPriorityClass(), removing NewTableGenerator and NewTablePrinter
Updates test TestPrintRuntimeClass(), removing NewTableGenerator and NewTablePrinter
Updates test TestPrintEndpointSlice(), removing NewTableGenerator and NewTablePrinter
Updates test TestPrintReplicaSet(), removing NewTableGenerator and NewTablePrinter
Updates test TestPrintPersistentVolume(), removing NewTableGenerator and NewTablePrinter
Updates test TestPrintPersistentVolumneClaim(), removing NewTableGenerator and NewTablePrinter
Updates test TestPrintCronJob(), removing NewTableGenerator and NewTablePrinter
Updates test TestPrintStorageClass(), removing NewTableGenerator and NewTablePrinter
2019-10-15 17:44:28 -07:00
Sean Sullivan
3e7d8bc64e
Moves tangential tests into another file.
2019-10-15 17:43:41 -07:00
Kubernetes Prow Robot
0a08798b9a
Merge pull request #75588 from smileusd/rbd_info
...
fix rbd info when return warning information
2019-10-15 16:32:09 -07:00
Rob Scott
8e7de45034
Reworking kube-proxy to only compute endpointChanges on apply.
...
Computing EndpointChanges is a relatively expensive operation for
kube-proxy when Endpoint Slices are used. This had been computed on
every EndpointSlice update which became quite inefficient at high levels
of scale when multiple EndpointSlice update events would be triggered
before a syncProxyRules call.
Profiling results showed that computing this on each update could
consume ~80% of total kube-proxy CPU utilization at high levels of
scale. This change reduced that to as little as 3% of total kube-proxy
utilization at high levels of scale.
It's worth noting that the difference is minimal when there is a 1:1
relationship between EndpointSlice updates and proxier syncs. This is
primarily beneficial when there are many EndpointSlice updates between
proxier sync loops.
2019-10-15 16:31:12 -07:00
Kubernetes Prow Robot
2b21f087eb
Merge pull request #83780 from krzysied/nc_pod_pointers
...
Using pointers to pod in node lifecycle controller
2019-10-15 09:13:53 -07:00
Kubernetes Prow Robot
245189b8a1
Merge pull request #83747 from JohnStrunk/csi-fsgroup-fix
...
Improve efficiency of csiMountMgr.GetAttributes
2019-10-15 07:11:52 -07:00
zouyee
65ddf102ef
add tombstoones handle for pdb
...
Signed-off-by: Zou Nengren <zouyee1989@gmail.com>
2019-10-15 22:02:18 +08:00
walter
d9e57861e5
This adds context from for cloud calls for Kubelet.
...
It continues the propogation started in #59287 .
2019-10-14 22:01:22 -07:00
louisgong
9b7b50c9da
remove duplicate function
2019-10-15 09:41:30 +08:00
Cong Liu
da30a00f9a
Add metrics for scheduler framework.
2019-10-14 20:26:03 -04:00
Kubernetes Prow Robot
aafbb93fe2
Merge pull request #83859 from mrbobbytables/update-storage-owners
...
Prune inactive owners from pkg/volume/* OWNERS files.
2019-10-14 15:41:50 -07:00
Abdullah Gharaibeh
e073e56095
move scheduler cache ListNodes interface to snapshot
2019-10-14 17:47:42 -04:00
guineveresaenger
82123dc261
Removes pkg/registry/core/secret/storage from golint failures
2019-10-14 14:28:32 -04:00
Kubernetes Prow Robot
29a2b20194
Merge pull request #83860 from mrbobbytables/update-credential-provider-owners
...
Prune inactive owners from pkg/credentialprovider/* OWNERS files.
2019-10-14 09:32:36 -07:00
draveness
2d7044a556
feat(scheduler): implement NodePreferAvoidPods as score plugin
2019-10-14 21:21:24 +08:00
Bruce Ma
213c378562
modify error output in cniNetworkPlugin
...
Signed-off-by: Bruce Ma <brucema19901024@gmail.com>
2019-10-14 20:17:27 +08:00
Krzysztof Siedlecki
b1dfa83be6
using pod pointers in node lifecycle controller
2019-10-14 12:44:43 +02:00
notpad
4ff7251026
[migration phase 1] VolumeZoneChecker as filter plugin
2019-10-14 07:45:40 +08:00
Kubernetes Prow Robot
5a427e8704
Merge pull request #83659 from wgliang/scheduler-v2/pod-fits-host-ports
...
[migration phase 1] PodFitsHostPorts as filter plugin
2019-10-13 11:18:35 -07:00
Ted Yu
0779296bf3
Check error return from snapshot Restore
2019-10-13 10:08:20 -07:00
Kubernetes Prow Robot
dd5cb6426d
Merge pull request #83849 from draveness/feature/node-locality-as-score-plugin
...
feat: implement imagelocality as a score plugin
2019-10-13 06:36:35 -07:00
Bob Killen
c4cc2893ff
Prune inactive owners from cloud-provider related OWNERS files.
2019-10-13 08:57:49 -04:00
Bob Killen
03082531cc
Prune inactive owners from api-approver owned OWNERS files.
2019-10-13 08:54:18 -04:00
Bob Killen
e37d702208
Prune inactive owners from autoscaling related OWNERS files.
2019-10-13 08:52:14 -04:00
Bob Killen
666c5e5040
Prune inactive owners from pkg/credentialprovider/* OWNERS files.
2019-10-13 08:51:44 -04:00
Bob Killen
2e52875917
Prune inactive owners from pkg/kubelet/* network related OWNERS files.
2019-10-13 08:51:00 -04:00
Bob Killen
30053bb00f
Prune inactive owners from pkg/controller/* network related OWNERS files.
2019-10-13 08:50:18 -04:00
Bob Killen
75f76d15bd
Prune inactive owners from pkg/* misc api-machinery related OWNERS files.
2019-10-13 08:46:12 -04:00
Bob Killen
6e68d80013
Prune inactive owners from pkg/volume/* OWNERS files.
2019-10-13 08:44:11 -04:00
draveness
6f6618fc5d
feat: implement imagelocality as a score plugin
2019-10-13 19:58:21 +08:00
Guoliang Wang
78be6a628d
[migration phase 1] PodFitsHostPorts as filter plugin
2019-10-13 19:47:26 +08:00
Kubernetes Prow Robot
a78340410e
Merge pull request #83650 from wgliang/scheduler-v2/pod-fits-resources
...
[migration phase 1] PodFitsResources as framework plugin
2019-10-13 03:38:36 -07:00
Guoliang Wang
4ca3d9ca48
[migration phase 1] PodFitsResources as framework plugin
2019-10-13 12:02:24 +08:00
Ahmad Diaa
4448a1cea9
move factory package to scheduler
2019-10-12 23:03:07 +02:00
Kubernetes Prow Robot
aee99ce807
Merge pull request #83558 from hprateek43/sortable_list_package
...
Move Sortable List into its own package
2019-10-12 11:40:38 -07:00
Harsh Singh
589656108e
Replaced sortable list with native golang slice.
2019-10-12 21:57:28 +05:30
Guoliang Wang
0a1808a570
[migration phase 1] PodMatchNodeSelector/NodAffinity as filter plugin
2019-10-12 14:49:55 +08:00
Kubernetes Prow Robot
a7a6ca80d8
Merge pull request #83731 from notpad/feature/migration_nodiskconflict
...
[migration phase 1] NoDiskConflict as filter plugin
2019-10-11 21:16:52 -07:00
Kubernetes Prow Robot
08ab271105
Merge pull request #83389 from ahmad-diaa/move-PodPreemptor-to-sched
...
Move PodPreemptor to Scheduler
2019-10-11 21:16:39 -07:00
Kubernetes Prow Robot
0599ca2bcf
Merge pull request #81594 from jfbai/remove-duplicated-log
...
Remove duplicated log.
2019-10-11 19:38:38 -07:00
Kubernetes Prow Robot
527f6e1b4e
Merge pull request #83459 from deads2k/cert-reload-subject
...
dynamic delegated authn header reload
2019-10-11 18:04:40 -07:00
notpad
9e426a6be1
[migration phase 1] NoDiskConflict as filter plugin
2019-10-12 08:00:44 +08:00
Kubernetes Prow Robot
1e5a9f3ff4
Merge pull request #83522 from draveness/feature/expand-node-score-range
...
feat(scheduler): expand node score range to [0, 100]
2019-10-11 16:20:38 -07:00
Bob Killen
e65d8bb11f
Move jbeda to emeritus status.
2019-10-11 17:46:18 -04:00
Ahmad Diaa
6bbc607d72
move PodPreemptor to scheduler
2019-10-11 22:57:39 +02:00
David Eads
a886247fe4
generated
2019-10-11 16:38:32 -04:00
Kubernetes Prow Robot
54f089fa08
Merge pull request #83603 from Tabrizian/master
...
feat: change the `pod_preemption_victims` to Histogram
2019-10-11 10:53:43 -07:00
Kubernetes Prow Robot
77b86c4adf
Merge pull request #83764 from cofyc/fix83635
...
[migration phase 1] Implement CheckVolumeBinding as a filter plugin
2019-10-11 09:29:52 -07:00
Kubernetes Prow Robot
c980000176
Merge pull request #83663 from draveness/feature/add-shared-informers-factory
...
feat(scheduler): expose SharedInformerFactory to the framework handle
2019-10-11 09:29:40 -07:00
David Eads
5825634669
add the ability for dynamic header names in delegated authentication
2019-10-11 11:50:37 -04:00
draveness
1f52bd80d1
feat(scheduler): expand node score range to [0, 100]
2019-10-11 23:43:09 +08:00
Kubernetes Prow Robot
d38f340e4f
Merge pull request #83539 from wgliang/cleanup/trace-steps-generic_scheduler
...
Add more tracing steps in generic_scheduler
2019-10-11 07:29:41 -07:00
Yecheng Fu
e8795562f9
[migration phase 1] Implement CheckVolumeBinding as a filter plugin
2019-10-11 20:35:11 +08:00
Kubernetes Prow Robot
833e8dc10b
Merge pull request #83736 from krzysied/kubemark_node_labels
...
Kubemark node labels
2019-10-11 05:17:47 -07:00
Kubernetes Prow Robot
afa394bd49
Merge pull request #83662 from wgliang/scheduler-v2/pod-fits-host
...
[migration phase 1] PodFitsHost as filter plugin
2019-10-11 05:17:40 -07:00
Ricardo Pchevuzinske Katz
da8931560b
Improve IPVS Module loader logic
...
Signed-off-by: Ricardo Pchevuzinske Katz <ricardo.katz@serpro.gov.br>
2019-10-11 08:59:41 -03:00
Kubernetes Prow Robot
017842d49d
Merge pull request #83492 from ConnorDoyle/topo-align-all-qos
...
Topology manager aligns pods of all QoS classes.
2019-10-11 03:03:40 -07:00
Krzysztof Siedlecki
4bdf48eb2a
adding support for kubemark --node-labels flag
2019-10-11 11:26:42 +02:00
Guoliang Wang
b9167334ee
[migration phase 1] PodFitsHost as filter plugin
2019-10-11 17:05:04 +08:00
Kubernetes Prow Robot
c1a735c642
Merge pull request #83601 from ahg-g/ahg-migration-priority
...
Implemented taints and tolerations priority function as a Score plugin
2019-10-11 00:05:50 -07:00
Louise Daly
a353247d44
Fixed bug in TopologyManager with SingleNUMANode Policy
...
This patch fixes an issue where best-effort pods were not admitted
to the node if the single-numa-node policy was set.
This was because the Admit policy in single-numa-node policy does
not admit any pod where the hint is anything but single NUMA node. The 'best hint' in this case is {<set bits for num. Numa Nodes on machine>, true}
So on a machine with 2 NUMA nodes the best hint for a best-effort pod is {11,true} as best-effort pods have no Topology preferences.
The single-numa-node policy fails any pod with a not preferred hint OR a hint where > 1 bits are set, thus the above example resulting in termintaed pods with a Topology Affinity Error.
This is a short term fix for the single-numa-node policy, as there will be code refactoring for the 1.17 release.
2019-10-11 07:00:37 +01:00
Kubernetes Prow Robot
1f5d329b48
Merge pull request #81158 from zouyee/node-fix
...
fix unsafe JSON construction
2019-10-10 22:49:40 -07:00
Guoliang Wang
d3e8f17987
Add more tracing steps in generic_scheduler
2019-10-11 10:39:41 +08:00
draveness
ee4dec65b5
feat(scheduler): expose SharedInformerFactory to the framework handle
2019-10-11 10:23:21 +08:00
Kubernetes Prow Robot
4561b67971
Merge pull request #83697 from klueska/fix-single-numa-with-one-provider
...
Fixed bug in TopologyManager with SingleNUMANode Policy
2019-10-10 19:00:33 -07:00
Kubernetes Prow Robot
a5e6ac0a95
Merge pull request #83694 from ahg-g/ahg-adv-config
...
[migration phase 1] Make scheduler cache, volume binder and listers available when registering default plugins
2019-10-10 19:00:21 -07:00
Kubernetes Prow Robot
c41942b81d
Merge pull request #83674 from liu-cong/pod-metrics
...
Adding per-pod metrics for scheduler.
2019-10-10 19:00:10 -07:00
RainbowMango
633bb52b49
Deal with auto-generated files.
...
Update bazel by hack/update-bazel.sh
2019-10-11 09:26:58 +08:00
RainbowMango
3b07393ea8
Refactor UT with testutil from k/k.
2019-10-11 09:25:17 +08:00
Abdullah Gharaibeh
7429b0fe86
Implemented taints and tolerations priority function as a Score plugin
2019-10-10 17:49:40 -04:00
Cong Liu
085852160a
Add per-pod metrics for scheduler.
2019-10-10 16:58:21 -04:00
Kubernetes Prow Robot
3db6d3abcf
Merge pull request #83551 from dims/move-external-facing-kubelet-apis-to-staging
...
Move external facing kubelet apis to staging
2019-10-10 13:41:36 -07:00
Abdullah Gharaibeh
456df97745
made scheduler cache and volume binder available when instantiating factories for default plugins
2019-10-10 16:21:29 -04:00
Connor Doyle
a598369e3c
Gofmt.
2019-10-10 12:16:21 -07:00
Connor Doyle
a9203ebdcf
Topology manager aligns pods of all QoS classes.
2019-10-10 12:16:21 -07:00
Kubernetes Prow Robot
71bebe4c13
Merge pull request #83704 from SataQiu/metrics-kubelet-20191010
...
Remove direct references to prometheus/testutil from kubelet/metrics
2019-10-10 12:07:34 -07:00
Kubernetes Prow Robot
4f1c5b8cac
Merge pull request #81940 from carlory/fix-appserver
...
fix static check failures
2019-10-10 12:07:21 -07:00
John Strunk
55881f2fc4
Improve efficiency of csiMountMgr.GetAttributes
...
GetAttributes is called repeatedly while setting the fsGroup of a
volume. Previously, it recalculated whether SELinux was supported during
each call. This resulted in volume.SetVolumeOwnership taking a long
time, delaying pod startup for high file count volumes.
This change checks the SELinux status once, right after node publish,
allowing GetAttributes to simply build and return a struct.
Signed-off-by: John Strunk <jstrunk@redhat.com>
2019-10-10 13:51:50 -04:00
carlory
f6bb24129e
fix static check failures
2019-10-10 22:59:09 +08:00
Kevin Taylor
cb8a7c1a4c
Promote VolumeSubpathEnvExpansion feature gate to GA
2019-10-10 09:34:40 +01:00
Kubernetes Prow Robot
2d8b8703de
Merge pull request #83686 from ahg-g/ahg-noop
...
Remove the no-op plugin
2019-10-10 01:12:53 -07:00
Zida
bc56cf45a5
Fix comment typos in prober
2019-10-10 14:53:08 +08:00
SataQiu
23a8be6e5f
remove direct references to prometheus/testutil from kubelet/metrics
2019-10-10 12:56:28 +08:00
zouyee
a864fd2100
fix unsafe JSON construction
...
Signed-off-by: Zou Nengren <zouyee1989@gmail.com>
2019-10-10 09:44:54 +08:00
Kevin Klues
5501f542cd
Fixed bug in TopologyManager with SingleNUMANode Policy
...
This patch fixes an issue in the TopologyManager that wouldn't allow
pods to be admitted if pods were launched with the SingleNUMANode policy
and any of the hint providers had no NUMA preferences.
This is due to 2 factors:
1) Any hint provider that passes back a `nil` as its hints, has its hint
automatically transformed into a single {11 true} hint before merging
2) We added a special casing for the SingleNumaNodePolicy() in the
TopologyManager that essentially turns these hints into a
{11 false} anytime a {11 true} is seen.
The current patch reworks this logic so the that TopologyManager can
tell the difference between a "don't care" hint and a true "{11 true}"
hint returned by the hint provider. Only true "{11 true}" hints will be
converted by the special casing for the SingleNumaNodePolicy(), while
"don't care" hints will not.
This is a short term fix for this issue until we do a larger refactoring
of this code for the 1.17 release.
2019-10-09 17:41:08 -07:00
Iman Tabrizian
451a535401
feat: feat: change the pod_preemption_victims
to Histogram
2019-10-09 18:28:32 -04:00
Kubernetes Prow Robot
a5dc1fffb0
Merge pull request #83543 from yutedz/attach-resync-comment
...
Remove stale comment about resyncPeriod
2019-10-09 13:17:50 -07:00
Kubernetes Prow Robot
0ff761b14f
Merge pull request #82927 from obitech/kube_proxy_strict_serializer
...
Enable strict serializer in kube-proxy
2019-10-09 11:05:50 -07:00
Abdullah Gharaibeh
36a0f8a03f
remove the no-op plugin that we used as an example plugin in default registry
2019-10-09 12:30:08 -04:00
Kubernetes Prow Robot
b8b7c376ed
Merge pull request #81263 from draveness/feature/update-scheduling-queue-with-options
...
feat: update scheduling queue with options
2019-10-09 08:59:51 -07:00
Guangming Wang
97e2576750
hostport return error when claim SCTP type port
...
revert last changes, just modify typos in unit test, and remove failed assert
sub count of sctp port when assert of len compare
2019-10-09 20:02:04 +08:00
draveness
9646afb1f5
feat: add pod initial/max backoff duration to config API
2019-10-09 19:48:28 +08:00
Kubernetes Prow Robot
4b002b3baa
Merge pull request #82123 from xiaoanyunfei/cleanup/take-effect-stateofworld-hashmap
...
replace iteration with hashmap in *state_of_world
2019-10-09 02:17:50 -07:00
Kubernetes Prow Robot
5ce75a8734
Merge pull request #83625 from mrobson/log-cgroups
...
Add podCgroup to process kill events to allow for correlation
2019-10-09 00:56:01 -07:00
RainbowMango
6099d49046
Deal with auto-generated files.
...
- Update bazel by hack/update-bazel.sh
2019-10-09 15:12:21 +08:00
RainbowMango
debe2f7b43
Refactor TestRunningPodAndContainerCount with metrics testutil
2019-10-09 15:09:23 +08:00
Kubernetes Prow Robot
057609cf93
Merge pull request #83638 from wking/informatio-typo
...
pkg/apis/policy: Fix "informatio" -> "information" comment typo
2019-10-08 23:03:49 -07:00
Kubernetes Prow Robot
e62ed95ecd
Merge pull request #83611 from RainbowMango/pr_refactor_scheduler_test_with_testutils
...
Refactor scheduler metric test with testutils
2019-10-08 20:00:25 -07:00
Kubernetes Prow Robot
ac9390627e
Merge pull request #83536 from yutedz/del-volume-err
...
Log the error return from store.Delete
2019-10-08 19:59:50 -07:00
Kubernetes Prow Robot
0110db3a14
Merge pull request #83537 from ahg-g/ahg-metadata
...
Added PredicateMetadata and PriorityMetadata to framework's CycleState
2019-10-08 18:37:50 -07:00
Kubernetes Prow Robot
72d052a444
Merge pull request #81797 from yastij/move-metrics-util
...
move util/metrics to component-base
2019-10-08 17:08:05 -07:00
Kubernetes Prow Robot
d8a3fbd275
Merge pull request #83599 from robscott/iptables-probability
...
Making iptables probability more granular in kube-proxy.
2019-10-08 15:42:52 -07:00
Kubernetes Prow Robot
464952fcc8
Merge pull request #83286 from draveness/feature/refactor-predicate-metadata
...
feat(scheduler): refactor predicateMetadata into a collection of sub types
2019-10-08 15:42:42 -07:00
Kubernetes Prow Robot
b00f009316
Merge pull request #82996 from tnqn/endpointslice-deletion
...
Fix EndpointSliceController service deletion processing
2019-10-08 15:42:27 -07:00
Kubernetes Prow Robot
b4489d1709
Merge pull request #82865 from tnqn/endpointslice
...
Fix wrong comments and inaccurate logs in endpointslice_controller
2019-10-08 15:42:16 -07:00
Kubernetes Prow Robot
4cff1c3ea1
Merge pull request #81280 from yqwang-ms/yqwang/exitmsglost
...
Fix Container exit message lost due to FallbackToLogsOnError is not compatible with ContainerCannotRun
2019-10-08 15:41:51 -07:00
Dan Winship
ebe94f139a
Don't log about deleting non-existent affinity entries in userspace OnEndpointsAdd
2019-10-08 18:17:41 -04:00
Abdullah Gharaibeh
1751c251d8
Addressed comments
2019-10-08 16:13:13 -04:00
W. Trevor King
a05cabb3a6
pkg/apis/policy: Fix "informatio" -> "information" comment typo
...
Typo from kubernetes/kubernetes@8e2347370e (Add observedGeneration to
PodDisruptionBudgetStatus, 2016-11-08, kubernetes/kubernetes#36438 ).
2019-10-08 12:27:50 -07:00
Kubernetes Prow Robot
cc8bfd1cdd
Merge pull request #78720 from goodluckbot/fix-kubelet-runtime-error-log-level
...
Fix log level for runtime error in kubelet.go
2019-10-08 10:57:10 -07:00
mrobson
ad3dcb9fa0
Add podCgroup to process kill events to allow for correlation
2019-10-08 13:12:48 -04:00
Kubernetes Prow Robot
1501de6a56
Merge pull request #78461 from mysunshine92/correct-return-information-scheduler
...
correct the return information in scheduler.go
2019-10-08 09:37:13 -07:00
Kubernetes Prow Robot
d70b2db1f2
Merge pull request #83296 from yutedz/kill-cgrp-proc
...
Only kill process where killing failed during previous iterations
2019-10-08 07:19:13 -07:00
Yassine TIJANI
c1487840bc
move util/metrics to component-base
...
Signed-off-by: Yassine TIJANI <ytijani@vmware.com>
2019-10-08 14:42:31 +02:00
Kubernetes Prow Robot
edc4ff3b73
Merge pull request #83499 from SataQiu/metrics-kubelet
...
Eliminate direct references to prometheus from kubelet
2019-10-08 05:25:11 -07:00
Kubernetes Prow Robot
3f8f0a32fa
Merge pull request #83527 from odinuge/runc-rc9
...
Bump dependency opencontainers/runc@v1.0.0-rc9
2019-10-08 03:45:44 -07:00
Kubernetes Prow Robot
8098bae921
Merge pull request #83451 from jsafrane/block-reconstruct
...
Fix block volume reconstruction
2019-10-08 03:45:18 -07:00
RainbowMango
c03b516d3a
Deal with auto-generated files.
...
Update bazel by hack/update-bazel.sh;
Update vendor by hack/update-vendor.sh;
2019-10-08 15:55:12 +08:00
RainbowMango
832a4fbe99
Refactor metrics test from kube-schedule queue.
2019-10-08 15:39:30 +08:00
Kubernetes Prow Robot
f2ee75cfa2
Merge pull request #82432 from draveness/feature/expose-kubernetes-client-in-framework-handle
...
feat(scheduler): expose kubernetes client in the framework handle
2019-10-07 23:35:11 -07:00
Kubernetes Prow Robot
72cd1c14ef
Merge pull request #83325 from yutedz/static-mirror-pod
...
Check whether mirror pod is ciritical in managerImpl#evictPod
2019-10-07 22:15:40 -07:00
Abdullah Gharaibeh
bc550b0896
Added PredicateMetadata and PriorityMetadata as CycleState to the framework
2019-10-07 22:25:08 -04:00
draveness
9554276d17
feat(scheduler): create metadata and addPod/removePod for migration
2019-10-08 10:05:22 +08:00
Rob Scott
3924364585
Making iptables probability more granular in kube-proxy.
...
Until now, iptables probabilities had 5 decimal places of granularity.
That meant that probabilities would start to repeat once a Service
had 319 or more endpoints.
This doubles the granularity to 10 decimal places, ensuring that
probabilities will not repeat until a Service reaches 100,223 endpoints.
2019-10-07 17:37:33 -07:00
Ted Yu
f0a6aa1e9b
Log error from AddIndexers in NewAttachDetachController
2019-10-07 16:15:25 -07:00
Kubernetes Prow Robot
39ba488be3
Merge pull request #83069 from fcgravalos/remove_trailing_dots_from_searches
...
remove trailing dots from the parsed searches from host resolv.conf
2019-10-07 11:27:11 -07:00
Kubernetes Prow Robot
7c4ba5909f
Merge pull request #82968 from uzuku/fix-golint-failures
...
Fix golint failures of pkg/kubelet/status/...
2019-10-07 07:47:08 -07:00
Kubernetes Prow Robot
24424e26d1
Merge pull request #83104 from zouyee/gfs
...
IP validates if a string is a valid IP address
2019-10-07 03:13:08 -07:00
Kubernetes Prow Robot
9f875de5d2
Merge pull request #83540 from cofyc/fix83343
...
Fix volume scheduling error handling
2019-10-07 01:53:09 -07:00
Davanum Srinivas
f29d2272c8
fix gofmt and golint failures
...
Change-Id: I6535b506f50558b31663a13cd270b15023afa2c6
2019-10-06 18:43:17 -04:00
Kubernetes Prow Robot
48b90db9c3
Merge pull request #83495 from tanjunchen/fix-typo
...
remove the repeat word in documents
2019-10-06 15:05:08 -07:00
Davanum Srinivas
6ecc0f83af
update bazel BUILD files
...
Change-Id: Ia3917cec1453c0b22a958faf8c22bccd79242d14
2019-10-06 15:29:23 -04:00
Davanum Srinivas
d30c489c54
Move pkg/kubelet/pluginregistration and deviceplugin
...
Change-Id: I06adcb43bd278b430ffad2010869e1524c8cc4ff
2019-10-06 15:28:38 -04:00
tanjunchen
de3cf23414
remove the repeat word in documents
2019-10-06 23:32:01 +08:00
Ted Yu
b81242b62e
Remove stale comment about resyncPeriod
2019-10-06 05:02:07 -07:00
Yecheng Fu
b5889ee82c
update internal error message
2019-10-06 14:37:31 +08:00
Ted Yu
56717a79ff
Log the error return from store.Delete
2019-10-05 19:34:39 -07:00
draveness
ab3f55720b
feat(scheduler): expose kubernetes client in framework handle
2019-10-06 10:31:49 +08:00
Kubernetes Prow Robot
00458855e4
Merge pull request #78411 from qingsenLi/k8s-190528
...
spelling error 'doen't'
2019-10-05 17:27:11 -07:00
Kubernetes Prow Robot
469d6db33a
Merge pull request #83297 from m3ngyang/controller-comment
...
fix golint errors for pkg/master
2019-10-05 15:25:11 -07:00
Kubernetes Prow Robot
1f81255070
Merge pull request #83460 from ahg-g/ahg-first-predicate
...
[migration phase 1] Implement PodToleratesNodeTaint as a filter plugin
2019-10-05 14:07:11 -07:00
Kubernetes Prow Robot
e0cb1617db
Merge pull request #78357 from sbueringer/fix-golint-pkg-util
...
Fix golint issues in pkg/util/env
2019-10-05 08:41:10 -07:00
mengyang02
ed8767cded
fix golint errors for pkg/master, together with cheftako
2019-10-05 21:42:52 +08:00
Abdullah Gharaibeh
66386fdf49
Added the first predicate as a filter plugin: PodToleratesNodeTaints.
2019-10-05 08:43:17 -04:00
Odin Ugedal
b9cfb19321
Rename cgroupsystemd.Manager to LegacyManager
2019-10-05 14:22:35 +02:00
Kubernetes Prow Robot
9522fb09f9
Merge pull request #83233 from hprateek43/heapPackageMovement
...
Move heap into its own internal package
2019-10-05 03:15:23 -07:00
Kubernetes Prow Robot
d60bda1971
Merge pull request #83043 from ConnorDoyle/cleanup-cpumanger-topo-hints
...
Delegate topology hint gen to CPU manager policy
2019-10-05 00:59:39 -07:00
Kubernetes Prow Robot
438918d4fa
Merge pull request #83426 from davidz627/fix/improveLogs
...
Dedupe logging for PD SetUpAt and added a slow SetVolumeOwnership warning
2019-10-04 21:51:40 -07:00
Kubernetes Prow Robot
deaf22430c
Merge pull request #83402 from danwinship/iptables-monitor-timeout
...
iptables.Monitor: don't be fooled by "could not get lock" errors
2019-10-04 21:51:25 -07:00
Kubernetes Prow Robot
4e1214c149
Merge pull request #83506 from alculquicondor/cleanup/framework_new
...
Cleanup reflection usage in framework creation
2019-10-04 16:31:44 -07:00
Kubernetes Prow Robot
c0da7fc05e
Merge pull request #83502 from ahg-g/ahg-extensions
...
Modified the name of the Extensions method in the scheduler's framework.
2019-10-04 16:31:36 -07:00
Kubernetes Prow Robot
e0f651a0be
Merge pull request #83501 from yastij/remove-node-cond-dep
...
remove Get/Set node condition dependency for the ccm controllers
2019-10-04 16:31:26 -07:00
Harsh Singh
f462a31e9b
Move heap into its own internal package
2019-10-05 01:24:36 +05:30
Abdullah Gharaibeh
043166f54b
Modified the name of the Extensions method in the scheduler's framework.
2019-10-04 15:53:06 -04:00
Dan Winship
f83474916e
Fix kube-proxy healthz server for proxier sync loop changes
...
The proxy healthz server assumed that kube-proxy would regularly call
UpdateTimestamp() even when nothing changed, but that's no longer
true. Fix it to only report unhealthiness when updates have been
received from the apiserver but not promptly pushed out to
iptables/ipvs.
2019-10-04 13:37:09 -04:00
Kubernetes Prow Robot
ca038117b2
Merge pull request #83490 from draveness/feature/scale-extender-output
...
feat(scheduler): scale the extender output in generic scheduler
2019-10-04 10:22:52 -07:00
Kubernetes Prow Robot
19d6e3b596
Merge pull request #83468 from klueska/upstream-klueska-reviewer
...
Add klueska as reviewer for CPUManager and devicemanager
2019-10-04 10:22:42 -07:00
Kubernetes Prow Robot
eba349b855
Merge pull request #83430 from draveness/feature/rename-plugincontext-to-cyclestate
...
feat(scheduler): rename PluginContext to CycleState
2019-10-04 10:22:32 -07:00
Kubernetes Prow Robot
74dc287490
Merge pull request #83420 from yutedz/sched-assume-cache
...
Check the return value from store.Update
2019-10-04 10:22:18 -07:00
Kubernetes Prow Robot
6dde8daa76
Merge pull request #83030 from obitech/kube_scheduler_strict_serializer
...
Enable strict serializer in kube-scheduler
2019-10-04 10:22:04 -07:00
Aldo Culquicondor
984c4e8cc2
Cleanup reflection usage in framework creation
...
Signed-off-by: Aldo Culquicondor <acondor@google.com>
2019-10-04 12:40:21 -04:00
Ashley Kasim
3be31530d5
cri_stats_provider: do not consider exited containers when calculating cpu usage
2019-10-04 09:07:53 -07:00
Kubernetes Prow Robot
7fab683455
Merge pull request #83343 from yutedz/bind-vol-err
...
Return proper error message when BindPodVolumes fails
2019-10-04 08:50:30 -07:00
Kubernetes Prow Robot
7ac65858bb
Merge pull request #82371 from deads2k/cert-reload-delegated
...
add ability to authenticators for dynamic update of certs for delegated authn
2019-10-04 08:50:04 -07:00
Yassine TIJANI
356e3d0d61
remove Get/Set node condition dependency for the ccm controllers
...
Signed-off-by: Yassine TIJANI <ytijani@vmware.com>
2019-10-04 16:52:36 +02:00
Dan Winship
0f10102c16
Better distinguish the two kinds of proxy health check servers
...
Kube-proxy runs two different health servers; one for monitoring the
health of kube-proxy itself, and one for monitoring the health of
specific services. Rename them to "ProxierHealthServer" and
"ServiceHealthServer" to make this clearer, and do a bit of API
cleanup too.
2019-10-04 10:37:58 -04:00
Jan Safranek
1c8c861009
Reconstruct block PV name in all volume plugins
...
The PV name is often necessary to build correct symlink paths
/var/lib/kubelet/pods/{podUid}}/{DefaultKubeletVolumeDevicesDirName}/{escapeQualifiedPluginName}/{PV name}
2019-10-04 15:49:49 +02:00
Jan Safranek
44a006e0d0
Fix volume map path during reconstruction
2019-10-04 15:49:49 +02:00
SataQiu
77f42c8108
eliminate direct references to prometheus
2019-10-04 21:33:34 +08:00
Ted Yu
94d4bf1287
Return proper error message when BindPodVolumes fails
2019-10-04 04:36:48 -07:00
Fernando Crespo Gravalos
c959b5ef8a
don't add extra variable for searches
2019-10-04 12:23:07 +02:00
Fernando Crespo Gravalos
9dac0c2d02
improve explanatory comment about trailing dots in searches
2019-10-04 11:40:40 +02:00
draveness
27326e4f9a
feat(scheduler): scale the extender output in generic scheduler
2019-10-04 17:32:34 +08:00
draveness
c73ff9749b
feat(scheduler): rename PluginContext to CycleState
2019-10-04 17:30:36 +08:00
shivi28
a0109f00df
nodeipam-controller:fix static check failures
2019-10-04 12:40:09 +05:30
Dan Williams
765bb2707d
pkg/util/iptables: add Dan Winship to OWNERS
2019-10-03 22:21:48 -05:00
Kubernetes Prow Robot
3317805652
Merge pull request #83243 from draveness/feature/use-reflect-in-new-registry
...
feat(scheduler): use reflect to reduce the similar pattern
2019-10-03 14:39:54 -07:00
Kevin Klues
d2b53af7d7
Add klueska as reviewer for CPUManager and devicemanager
2019-10-03 13:01:41 -07:00
David Zhu
223ef76db5
Dedupe logging for PD SetUpAt and added a slow SetVolumeOwnership warning
2019-10-03 11:10:20 -07:00
Kubernetes Prow Robot
0a17315e18
Merge pull request #83418 from ahg-g/ahg-first-priority
...
Refactor scheduler.New so that all framework-related parameters are options
2019-10-03 10:00:11 -07:00
Abdullah Gharaibeh
30e7016ccf
Refactor scheduler.New so that all framework-related parameters are passed as options
2019-10-03 11:39:59 -04:00
Kubernetes Prow Robot
d8a5e489ea
Merge pull request #83342 from ahmad-diaa/move-PodConditionUpdater-to-sched
...
Move PodConditionUpdater to Scheduler
2019-10-03 02:04:14 -07:00
Kubernetes Prow Robot
35d68586db
Merge pull request #83208 from robscott/endpointslice-proxy-staleconn-perf
...
Only detecting stale connections for UDP ports in kube-proxy
2019-10-02 23:40:08 -07:00
draveness
5e84257133
feat(scheduler): use reflect to reduce the similar pattern
2019-10-03 10:46:19 +08:00
Ahmad Diaa
6c75e1baa2
move PodConditionUpdater to scheduler
2019-10-02 23:29:49 +02:00
Ted Yu
c264338741
Check the return value from store.Update
2019-10-02 12:02:13 -07:00
Kubernetes Prow Robot
bd89dc462c
Merge pull request #83320 from krzysied/node_controller_delete_pods
...
Adding pods to DeletePods and MarkPodsReady methods parameters
2019-10-02 09:03:08 -07:00
Dan Winship
2f89c03c63
iptables.Monitor: don't be fooled by "could not get lock" errors
2019-10-02 11:35:12 -04:00
Kubernetes Prow Robot
8a12334683
Merge pull request #83386 from draveness/feature/get-rid-of-max-priority
...
feat(scheduler): remove MaxPriority in the scheduler api
2019-10-02 06:19:09 -07:00
Krzysztof Siedlecki
a07a3a6878
adding pods to MarkPodsNotReady parameters
2019-10-02 14:22:58 +02:00
Krzysztof Siedlecki
8f48896709
adding pods to DeletePods parameters
2019-10-02 13:11:23 +02:00
draveness
9769d49bb5
feat(scheduler): remove MaxPriority in the scheduler api
2019-10-02 11:24:25 +08:00
Kubernetes Prow Robot
246df354a5
Merge pull request #83379 from davidz627/revert-79784-July/RemoveDeviceVolumeDir
...
Revert "Bugfix: remove PV dir when umount raw block device"
2019-10-01 18:41:23 -07:00
zouyee
599fa5583e
IP validates if a string is a valid IP address
...
Signed-off-by: Zou Nengren <zouyee1989@gmail.com>
2019-10-02 08:55:08 +08:00
Kubernetes Prow Robot
144708beac
Merge pull request #83109 from m3ngyang/reuse-equal
...
reuse Equal
2019-10-01 17:23:07 -07:00
David Zhu
8970ec8fa7
Revert "Bugfix: remove PV dir when umount raw block device"
2019-10-01 15:14:35 -07:00
Kubernetes Prow Robot
dc0013a506
Merge pull request #83365 from notpad/feature/83244
...
A consistent interface for plugin extended functionality
2019-10-01 13:01:11 -07:00
Kubernetes Prow Robot
9d59ed80f5
Merge pull request #83262 from Huang-Wei/sched-extender-api-refactor
...
Refactor scheduler extender-related API fields
2019-10-01 13:00:50 -07:00
Ted Yu
0939f90103
Check whether mirror pod is ciritical in managerImpl#evictPod
2019-10-01 11:12:18 -07:00
mengyang02
b116585b22
remove redundant quota.V1Equals
2019-10-02 01:02:09 +08:00
Wei Huang
a01259ef6f
bazel and codegen files
2019-10-01 09:51:40 -07:00
Wei Huang
cbdb4e3fdb
refactor scheduler extender related API
...
- move extender related API from pkg/scheduler/api to pkg/scheduler/apis/extender/v1
- alias extenderv1 to pkg/scheduler/apis/extender/v1
- use NodeScore and NodeScoreList in non-extender logic
2019-10-01 09:51:24 -07:00
Kubernetes Prow Robot
af67b2cbce
Merge pull request #83350 from soltysh/cp_fix
...
Update symlink warning
2019-10-01 09:35:47 -07:00
Kubernetes Prow Robot
40d4ddc7e5
Merge pull request #83192 from liggitt/improve-token-request-error
...
Improve error message for projected tokens when API is not enabled
2019-10-01 09:35:34 -07:00
notpad
fc55e74741
A consistent interface for plugin extended functionality
2019-10-01 23:59:48 +08:00
David Eads
51195dd860
add ability to authenticators for dynamic update of certs
2019-10-01 09:50:20 -04:00
Maciej Szulik
99448d2283
Update symlink warning
2019-10-01 10:36:02 +02:00
Kubernetes Prow Robot
c9f8b8b525
Merge pull request #82374 from xcelsion/fix-dup-containerport-between-address-families
...
Fixed issue with duplicate containerPorts in different address families
2019-09-30 17:55:32 -07:00
Kubernetes Prow Robot
b89220f9ca
Merge pull request #80420 from cwdsuzhou/July/mergeAttachDetachCommonFunc
...
Merge attach and detach common func
2019-09-30 13:08:46 -07:00
Kubernetes Prow Robot
d73b0d0438
Merge pull request #83279 from RainbowMango/pr_remove_direct_reference_to_prometheus_from_kubelet
...
Remove direct reference to prometheus from kubelet
2019-09-30 11:47:52 -07:00
Kubernetes Prow Robot
a87c1b2d72
Merge pull request #83099 from ahg-g/ahg-config-layer2
...
[migration] Mapping Layer - 2. Convert predicates/priorities configurations to a framework plugin one.
2019-09-30 08:57:38 -07:00
Abdullah Gharaibeh
6120fe9b11
Convert predicates/priorities configurations to a framework plugin configs.
2019-09-30 10:36:52 -04:00
Kubernetes Prow Robot
c5440829d5
Merge pull request #83248 from krzysied/node_controller_test
...
Adding fakeGetPodsAssignedToNode to node lifecycle controller tests
2019-09-30 03:19:38 -07:00
caiweidong
a890bf1175
Merge attach and detach common func
2019-09-30 17:36:14 +08:00
Krzysztof Siedlecki
99eeab35a3
adding fakeGetPodsAssignedToNode
2019-09-30 11:03:36 +02:00
SataQiu
92300eaadb
scheduler: make getVolumeLimits a function instead of a method
2019-09-30 16:25:31 +08:00
mengyang02
a638431e4d
complete pkg/scheduler/util unit tests
2019-09-30 10:58:11 +08:00
Ted Yu
6dbb533e3c
Only kill process where killing failed during previous iterations
2019-09-29 19:53:43 -07:00
Kubernetes Prow Robot
14e5adfc85
Merge pull request #82683 from davidz627/fix/translationStruct
...
Refactor CSI Translation Library into a struct that is injected into various components to simplify unit testing
2019-09-29 10:11:37 -07:00
Kubernetes Prow Robot
654aa1d846
Merge pull request #83234 from SataQiu/scheduler-cleanup-20190927
...
scheduler: change PredicateMetadata.AddPod to use *v1.Node insead of rich *schedulernodeinfo.NodeInfo
2019-09-28 23:49:37 -07:00
RainbowMango
f57bb81e95
Update bazel by hack/update-bazel.sh
2019-09-29 11:52:30 +08:00
RainbowMango
3b89ade154
Remove direct reference to Prometheus
2019-09-29 11:41:28 +08:00
SataQiu
bcaa991676
scheduler: code clean up for predicates/metadata
2019-09-29 10:11:53 +08:00
Kubernetes Prow Robot
29f23e6647
Merge pull request #83220 from RainbowMango/pr_remove_direct_reference_to_label
...
Remove direct reference to label
2019-09-28 11:47:38 -07:00
Kubernetes Prow Robot
be1574b741
Merge pull request #83196 from zouyee/cmq
...
using online file instead to fix NUMA nodes init
2019-09-27 22:51:39 -07:00
Connor Doyle
389853894d
Delegate topology hint gen to CPU manager policy
...
- The previous implementation depended on a fixed set of policies.
2019-09-27 22:29:02 -07:00
Kubernetes Prow Robot
74d2822662
Merge pull request #72535 from tallclair/content-type
...
Always set content-type & nosniff
2019-09-27 18:43:39 -07:00
David Zhu
92cb06a2e7
Refactor CSI Translation Library into a struct that is injected into various components to simplify unit testing in future
2019-09-27 12:59:53 -07:00
Kubernetes Prow Robot
cd95e57c71
Merge pull request #83071 from chendotjs/bytes-equal
...
replace bytes.Compare() with bytes.Equal()
2019-09-27 09:57:36 -07:00
Stefan Bueringer
fa36b19e79
Fix golint issues in pkg/util/env
2019-09-27 17:25:19 +02:00
Kubernetes Prow Robot
898042007c
Merge pull request #83231 from SataQiu/scheduler-err-handle
...
scheduler: add error handling for *podSpreadCache.removePod
2019-09-27 06:53:36 -07:00
Kubernetes Prow Robot
dd5efc420b
Merge pull request #82511 from abursavich/keyusage
...
Fix typos in KeyUsage constant names
2019-09-27 03:23:35 -07:00
Kubernetes Prow Robot
a392897dec
Merge pull request #79784 from cwdsuzhou/July/RemoveDeviceVolumeDir
...
Bugfix: remove PV dir when umount raw block device
2019-09-27 02:03:36 -07:00
SataQiu
20e3580066
scheduler: handle error of podSpreadCache.removePod method
2019-09-27 16:23:56 +08:00
RainbowMango
c0c1d8e985
Update bazel by hack/update-bazel.sh
2019-09-27 10:18:31 +08:00
RainbowMango
4cc175e8d8
Remove direct reference to prometheus.Label for scheduler
2019-09-27 10:16:31 +08:00
chenyaqi01
66be69bb0e
replace bytes.Compare() with bytes.Equal()
2019-09-27 10:08:49 +08:00
Kubernetes Prow Robot
478c26c0dc
Merge pull request #82033 from logicalhan/reviewers
...
add logicalhan to reviewers for api-machinery directories
2019-09-26 16:55:37 -07:00
Kubernetes Prow Robot
e89827f79b
Merge pull request #83190 from deads2k/prove-generic-count-pod
...
add test to show generic pod count counts all pods
2019-09-26 13:03:20 -07:00
Kubernetes Prow Robot
5e4abfb946
Merge pull request #83042 from draveness/feature/remove-score-with-normalize-extension
...
feat(scheduler): consolidate ScoreWithNormalizePlugin into ScorePlugin
2019-09-26 10:49:20 -07:00
obitech
6acef2b94c
Enable strict serializer with codec factory
...
- Enabling strict serializer will throw errors on e.g. duplicate
or unknown fields in YAML configs
- Add test cases for duplicate and unknown fields
2019-09-26 17:41:07 +02:00
Kubernetes Prow Robot
67d750bb28
Merge pull request #81916 from hwdef/fix-typo-pkg
...
fix typo in pkg
2019-09-26 08:35:24 -07:00
zouyee
b1f6974f7b
using online instead to fix kubelet service failed with wrong number of possible NUMA nodes
...
Signed-off-by: Zou Nengren <zouyee1989@gmail.com>
2019-09-26 21:48:50 +08:00
Jordan Liggitt
e70a9c6c18
Improve error message for projected tokens when API is not enabled
2019-09-26 09:10:07 -04:00
David Eads
738e61cbf0
add test to show generic pod count counts all pods
2019-09-26 08:22:08 -04:00
caiweidong
f30a549eb8
Bugfix: remove PV dir when umount raw block device
2019-09-26 19:46:42 +08:00
Kubernetes Prow Robot
d8a420c0d8
Merge pull request #82884 from krzysied/node_controller_cleanup3
...
NodeLifecycleContorller - eviction processing refactor
2019-09-26 04:03:08 -07:00
Kubernetes Prow Robot
b72d550672
Merge pull request #78563 from qingsenLi/k8s-190531
...
Delete the redundant define test
2019-09-26 01:25:10 -07:00
Fernando Crespo Gravalos
0b850c5d82
add comment explaining why we remove trailing dots in searches
2019-09-26 10:05:58 +02:00
Kubernetes Prow Robot
37c3a4da97
Merge pull request #82855 from yutedz/alpha-node-role
...
Defer the removal of labelAlphaNodeRoleExcludeBalancer to 1.18
2019-09-25 23:59:19 -07:00
Kubernetes Prow Robot
b34eede084
Merge pull request #83080 from ahg-g/ahg-config-layer
...
Mapping Layer - 1. A mapping from predicates/priorities to plugin configuration
2019-09-25 22:05:20 -07:00
draveness
314ec4e504
feat(scheduler): consolidate ScoreWithNormalizePlugin into ScorePlugin
2019-09-26 10:19:06 +08:00
Abdullah Gharaibeh
a57ac0725a
A mapping from predicates/priorities to pluing configuration.
...
This PR only implements the mapping, but does not use it. A followup PR will use this mapping to produce a framework configuration that redirects mapped predicates/priorites to be exected as plugins.
2019-09-25 22:10:30 -04:00
Rob Scott
af56f25797
Only detecting stale connections for UDP ports in kube-proxy.
...
The detectStaleConnections function in kube-proxy is very expensive in
terms of CPU utilization. The results of this function are only actually
used for UDP ports. This adds a protocol attribute to ServicePortName to
make it simple to only run this function for UDP connections. For
clusters with primarily TCP connections this can improve kube-proxy
performance by 2x.
2019-09-25 17:48:54 -07:00
Kubernetes Prow Robot
4096a36bfd
Merge pull request #83079 from robscott/endpointslice-owners
...
Adding owners for EndpointSlice controller
2019-09-25 13:52:13 -07:00
Kubernetes Prow Robot
3264ffbec4
Merge pull request #83047 from danielqsj/default-updateStrategy
...
fix the comments of default daemonset update strategy
2019-09-25 13:51:40 -07:00
Kubernetes Prow Robot
7de6f0eb95
Merge pull request #83035 from robscott/endpointslice-proxy-sort-perf
...
Updating EndpointSliceCache sort function to be significantly faster.
2019-09-25 13:51:29 -07:00
Kubernetes Prow Robot
6555c34743
Merge pull request #83022 from mm4tt/controller_ref
...
Optimize GetControllerOf method and add a benchmark for it
2019-09-25 13:51:14 -07:00
Kubernetes Prow Robot
8a106a5714
Merge pull request #82994 from yutedz/rm-persist-vol-mode
...
Remove unused func GetPersistentVolumeClaimVolumeMode
2019-09-25 13:51:04 -07:00
Kubernetes Prow Robot
49bd1defaa
Merge pull request #82991 from yutedz/mk-file-close
...
Properly close the file in makeFile
2019-09-25 13:50:54 -07:00
Kubernetes Prow Robot
71c28e9b87
Merge pull request #82972 from yutedz/high-supported-ver
...
Remove unnecessary sorting for highestSupportedVersion
2019-09-25 13:50:44 -07:00
Kubernetes Prow Robot
6e960ef466
Merge pull request #82964 from yutedz/csi-drv-sync-err
...
Check error return from WaitForCacheSync
2019-09-25 13:50:34 -07:00
Kubernetes Prow Robot
05588f769d
Merge pull request #82928 from chendotjs/simplify-regex
...
simplify regexp with raw string
2019-09-25 11:07:02 -07:00
Mahendra Kariya
3698100224
Fix golint errors in pkg/apis/core ( #82919 )
...
* Fix lint errors related to receiver name
Ref #68026
* Fix lint errors related to comments
Ref #68026
* Fix package name in comments
Ref #68026
* Rename Cpu to CPU
Ref #68026
* Fix lint errors related to naming convention
Ref #68026
* Remove deprecated field
DoNotUse_ExternalID has been deprecated and is not in use anymore.
It has been removed to fix lint errors related to underscores in field
names.
Ref #68026 , #61966
* Include pkg/apis/core in golint check
Ref #68026
* Rename var to fix lint errors
Ref #68026
* Revert "Remove deprecated field"
This reverts commit 75e9bfc168077fcb9346e334b59d60a2c997735b.
Ref #82919
* Remove math from godoc
Ref #82919 , #68026
* Remove underscore from var name
Ref #68026
* Rename var in staging core api type
Ref #68026
2019-09-25 11:06:51 -07:00
Kubernetes Prow Robot
0b4cccc9d1
Merge pull request #82912 from ahg-g/ahg-prefilter-update
...
An interface that allows pre-filter plugins to update their pre-calculated status
2019-09-25 11:06:40 -07:00
Kubernetes Prow Robot
8ad1aba7f5
Merge pull request #82465 from hprateek43/MoveGetPodPriority
...
Move GetPodPriority from /scheduler/util to /api/pod
2019-09-25 11:06:00 -07:00
Kubernetes Prow Robot
5675ef858e
Merge pull request #82148 from bbourbie/fix_docker_credential
...
fix: adding padding the encoded docker auth field
2019-09-25 11:04:14 -07:00
Ted Yu
7c26e11d6f
Properly close the file in makeFile
2019-09-25 10:14:39 -07:00
Kubernetes Prow Robot
327f53ba57
Merge pull request #83064 from liggitt/propagate-context
...
Propagate context to remote authorize/authenticate webhook calls
2019-09-25 09:32:01 -07:00
Matt Matejczyk
01ccd2e19e
Optimize GetControllerOf method
...
In addition create a similar method that doesn't copy objects.
Benchmark for the new no-copy method vs the old one:
```
benchmark old ns/op new ns/op delta
BenchmarkGetControllerOf-12 214 14.8 -93.08%
benchmark old allocs new allocs delta
BenchmarkGetControllerOf-12 1 0 -100.00%
benchmark old bytes new bytes delta
BenchmarkGetControllerOf-12 80 0 -100.00%
```
Benchamrk for the new (copy) method vs the old one:
```
benchmark old ns/op new ns/op delta
BenchmarkGetControllerOf-12 128 114 -10.94%
benchmark old allocs new allocs delta
BenchmarkGetControllerOf-12 1 1 +0.00%
benchmark old bytes new bytes delta
BenchmarkGetControllerOf-12 80 80 +0.00%
```
Overall there is a 10% improvement for the old vs new (copy) method and
huge improvent (x10) for the old vs new (no-copy).
I changed the IsControlledBy and a few other methods to use the new (no-copy) method.
2019-09-25 15:07:37 +02:00
Sho SHIMIZU
91b9d42109
Fix typo
...
s/namespcae/namespace
2019-09-25 16:38:03 +09:00
zouyee
594fc0f4b9
fix cpumanager reconcileState without sourceready
...
Signed-off-by: Zou Nengren <zouyee1989@gmail.com>
2019-09-25 10:39:06 +08:00
danielqsj
acb35798b8
fix default daemonset update strategy
2019-09-25 08:31:13 +08:00
Ted Yu
23c7405fe0
Remove unnecessary sorting for highestSupportedVersion
2019-09-24 13:59:25 -07:00
Kubernetes Prow Robot
8274bec900
Merge pull request #82990 from SataQiu/cleanup-scheduler-20190922
...
Clean up code about scheduler algorithm
2019-09-24 13:37:38 -07:00
Kubernetes Prow Robot
2e4d02e9ab
Merge pull request #82909 from hwdef/del-unused-var1
...
fix(pkg): delete unused var or const
2019-09-24 13:37:26 -07:00
Rob Scott
57757b65c7
Fixing EndpointSlice kubectl output
2019-09-24 13:12:23 -07:00
Kubernetes Prow Robot
06fc5b7f17
Merge pull request #83060 from m3ngyang/mode-valid
...
to use existing validating function
2019-09-24 11:45:38 -07:00
Rob Scott
30d0eca19f
Adding owners for EndpointSlice controller
2019-09-24 11:45:15 -07:00
Abdullah Gharaibeh
37b9e6d1ea
An interface that allows pre-filter plugins to update their pre-calculated.
...
This is needed to allow efficient preemption simulations: during preemption, we remove/add pods from each node before running the filter plugins again to evaluate whether removing/adding specific pods will allow the incoming pod to be scheduled on the node. Instead of calling prefilter again, we should allow the plugin to do incremental update to its pre-computed state.
2019-09-24 13:01:50 -04:00
Harsh Singh
6a9ef7f04f
Move GetPodPriority from /scheduler/util to /api/pod
2019-09-24 22:02:13 +05:30
Kubernetes Prow Robot
ac70f166b1
Merge pull request #82976 from yutedz/clean-rbd-file
...
Remove error check which is always false in RBDUtil#cleanOldRBDFile
2019-09-24 08:58:12 -07:00
Kubernetes Prow Robot
7c09b0b1ec
Merge pull request #81911 from ahmad-diaa/use-scheduler-in-createConfiguratorArgsWithPodInformer
...
Use scheduler.New() Instead of factory.NewConfigFactory() in Integration Test scheduler_test.go
2019-09-24 08:57:28 -07:00
Jordan Liggitt
92eb072989
Propagate context to Authorize() calls
2019-09-24 11:14:54 -04:00
Fernando Crespo Gravalos
a215a88d91
remove trailing dots from the parsed searches from host resolv.conf
2019-09-24 16:35:01 +02:00
mengyang02
da072063d1
to use existing validating function
2019-09-24 20:16:17 +08:00
Kubernetes Prow Robot
4e63af2324
Merge pull request #83033 from ConnorDoyle/rename-socketmask
...
Rename package socketmask to bitmask.
2019-09-24 00:26:02 -07:00
Kubernetes Prow Robot
aba654f96b
Merge pull request #81744 from praseodym/fix-staticcheck-pkg/scheduler
...
Fix staticcheck failures for pkg/scheduler/...
2019-09-24 00:25:27 -07:00
Kubernetes Prow Robot
f243640e22
Merge pull request #83036 from liyanhui1228/win_portforward
...
Use ipv4 in wincat port forward
2019-09-23 19:01:26 -07:00
Kubernetes Prow Robot
17b3e30c9b
Merge pull request #82974 from yutedz/csi-supp-stage
...
Come out of loop when RPC_STAGE_UNSTAGE_VOLUME is found
2019-09-23 17:32:20 -07:00
Kubernetes Prow Robot
c234e5bac6
Merge pull request #82802 from deads2k/reduce-max-backoff-for-namespace
...
make namespace-lifecycle controller more responsive
2019-09-23 17:32:09 -07:00
Kubernetes Prow Robot
50196ce088
Merge pull request #82300 from lyft/cri-stats-nanocores-overflow-fix
...
pkg/kubelet: fix uint64 overflow when elapsed UsageCoreNanoSeconds exceeds 18446744073
2019-09-23 17:31:38 -07:00
Rob Scott
d4b694a497
Updating EndpointSliceCache sort function to be significantly faster.
...
The .IP() call that was previously used for sorting resulted in a call
to netutil to parse an IP out of an IP:Port string. This was very slow
and resulted in this sort taking up ~50% of total CPU util for
kube-proxy.
2019-09-23 17:12:54 -07:00
Angela Li
4301bbff08
Use ipv4 in wincat port forward
2019-09-23 17:10:01 -07:00
Connor Doyle
e35301c19f
Rename package socketmask to bitmask.
...
- As discussed in reviews and other public channels,
this abstraction is used to represent numa nodes, not sockets.
- There is nothing inherently related to sockets in this package anyway.
2019-09-23 17:08:45 -07:00
Kubernetes Prow Robot
05aaeac8b2
Merge pull request #82951 from ahg-g/ahg-context
...
Updated ContextData and PluginContext with Clone methods.
2019-09-23 14:55:49 -07:00
Mark Janssen
1a1b7001d6
Fix staticcheck failures for scheduler packages
...
Errors from staticcheck:
cmd/kube-scheduler/app/server.go:297:27: prometheus.Handler is deprecated: Please note the issues described in the doc comment of InstrumentHandler. You might want to consider using promhttp.Handler instead. (SA1019)
pkg/apis/scheduling/v1alpha1/defaults.go:27:6: func addDefaultingFuncs is unused (U1000)
pkg/apis/scheduling/v1beta1/defaults.go:27:6: func addDefaultingFuncs is unused (U1000)
test/e2e/scheduling/predicates.go:757:6: func verifyReplicasResult is unused (U1000)
test/e2e/scheduling/predicates.go:765:6: func getPodsByLabels is unused (U1000)
test/e2e/scheduling/predicates.go:772:6: func runAndKeepPodWithLabelAndGetNodeName is unused (U1000)
test/e2e/scheduling/limit_range.go:172:3: this value of pod is never used (SA4006)
test/e2e/scheduling/limit_range.go:177:3: this value of pod is never used (SA4006)
test/e2e/scheduling/limit_range.go:196:3: this value of pod is never used (SA4006)
test/e2e/scheduling/limit_range.go:201:3: this value of pod is never used (SA4006)
test/e2e/scheduling/limit_range.go:240:3: this value of pod is never used (SA4006)
test/e2e/scheduling/taints.go:428:13: this value of err is never used (SA4006)
test/e2e/scheduling/ubernetes_lite.go:219:2: this value of pods is never used (SA4006)
test/integration/scheduler/extender_test.go:78:4: this value of resp is never used (SA4006)
test/integration/volumescheduling/volume_binding_test.go:529:15: this result of append is never used, except maybe in other appends (SA4010)
test/integration/volumescheduling/volume_binding_test.go:538:15: this result of append is never used, except maybe in other appends (SA4010)
2019-09-23 22:52:57 +02:00
Mark Janssen
345e528c86
Fix staticcheck failures for pkg/scheduler/...
2019-09-23 22:49:59 +02:00
Abdullah Gharaibeh
641317bdde
Updated ContextData and PluginContext with Clone methods.
...
This is necessary to be able to clone PluginContext during preemption.
2019-09-23 14:34:40 -04:00
obitech
f9b152abb0
Add strict serializer to codec factory in kube-proxy
2019-09-23 19:39:00 +02:00
David Eads
4b44a9f067
make namespace-lifecycle controller more responsive
2019-09-23 13:22:51 -04:00
Kubernetes Prow Robot
b7003211d5
Merge pull request #83014 from danielqsj/bump-klog
...
Bump k8s.io/klog to v1.0.0
2019-09-23 08:03:38 -07:00
Kubernetes Prow Robot
43875059f0
Merge pull request #82984 from wojtek-t/json_fallback_encoder
...
Minor cleanup of jsonFallbackEncoder
2019-09-23 08:03:26 -07:00
danielqsj
c2a4906152
Bump k8s.io/klog to v1.0.0
2019-09-23 16:51:43 +08:00
SataQiu
7cb4850699
clean up code for scheduler
2019-09-23 12:50:15 +08:00
Quan Tian
db6bbf2375
Fix EndpointSliceController service deletion processing
...
syncService shouldn't return error if the service doesn't exist which
means it's triggered by service deletion, otherwise the service would be
enqueued repeatedly even its cleanup has been executed successfully.
This patch makes syncService return nil if the error is NotFound when
getting the service, like the other controllers do.
2019-09-22 10:01:29 -07:00
Ted Yu
ba45f73c1f
Remove unused func GetPersistentVolumeClaimVolumeMode
2019-09-22 08:54:01 -07:00
wojtekt
cd24a0e5fa
Minor cleanup of jsonFallbackEncoder
2019-09-22 14:05:54 +02:00
Ted Yu
2f3e563749
Remove unreachable error check in RBDUtil#cleanOldRBDFile
2019-09-21 19:14:24 -07:00
Ted Yu
44787fe14e
Come out of loop when RPC_STAGE_UNSTAGE_VOLUME is found
2019-09-21 14:23:06 -07:00
Uzuku
5a2e6bd000
Fix golint failures of pkg/kubelet/status/...
2019-09-21 23:43:37 +08:00
Ted Yu
384aaad468
Check error return from WaitForCacheSync
2019-09-21 07:02:51 -07:00
hwdef
386f981116
fix(pkg): delete unused var or const
2019-09-21 17:13:13 +08:00
qingsenLi
d3a0c149a3
Remove some unused codes in stateful_set_utils.go
2019-09-21 22:24:48 +08:00
Kubernetes Prow Robot
2e13dfa575
Merge pull request #78688 from nikhita/yaml-benchmark
...
Add benchmarks for yaml marshaling and unmarshaling
2019-09-20 18:43:25 -07:00
Kubernetes Prow Robot
6d58376baa
Merge pull request #82896 from ahg-g/ahg-config
...
Refactor the scheduler's configuration logic.
2019-09-20 16:17:46 -07:00
Kubernetes Prow Robot
40a8d9ebee
Merge pull request #82735 from ahmad-diaa/remove-NewConfigFactory-compatibility-test
...
Improve Scheduler Compatibility Test
2019-09-20 16:17:37 -07:00
Ahmad Diaa
bf6a70a1ce
use scheduler.Option in initTestSchedulerWithOptions
2019-09-21 00:06:42 +02:00
Kubernetes Prow Robot
658e57a157
Merge pull request #82797 from yutedz/rel-cidr-wrong-err
...
Correct the error variable for releasing CIDR
2019-09-20 14:13:26 -07:00
Ahmad Diaa
fda4d41ee5
change compatibility_test struct, remove ExpectedPolicy
2019-09-20 21:43:40 +02:00
Ahmad Diaa
009ffaf803
validate scheduler policy instead of the decoded policy in compatibility_test
2019-09-20 21:42:12 +02:00
Ahmad Diaa
104e368860
remove factory.NewConfigFactory in compatibility test
2019-09-20 21:41:51 +02:00
Kubernetes Prow Robot
a2760c9c13
Merge pull request #78110 from praseodym/fix-golint-pkg/kubelet/qos
...
Fix golint failures of pkg/kubelet/qos
2019-09-20 09:41:46 -07:00
chenyaqi01
3175c9e226
simplify regexp with raw string
2019-09-20 16:53:56 +08:00
Kubernetes Prow Robot
5f61cc033d
Merge pull request #82206 from yutedz/max-in-flight
...
WithAuthentication should wrap WithMaxInFlightLimit
2019-09-20 01:33:07 -07:00
Kubernetes Prow Robot
259d6bf608
Merge pull request #82189 from deads2k/ns-resources
...
add conditions for remaining object totals during ns termination
2019-09-20 01:33:00 -07:00
Kubernetes Prow Robot
5f249fecb4
Merge pull request #82363 from yuxiaobo96/k8s-update3
...
update spelling mistakes
2019-09-20 00:08:59 -07:00
Kubernetes Prow Robot
53b3c8968e
Merge pull request #82164 from yuxiaobo96/k8s-fix2
...
delete extra comma
2019-09-19 21:22:59 -07:00
Kubernetes Prow Robot
db1f8da036
Merge pull request #82848 from yutedz/node-ctrl-hostname
...
Break out of loop when NodeHostName is found
2019-09-19 18:01:13 -07:00
Kubernetes Prow Robot
605687dec7
Merge pull request #71653 from liucimin/update_kubelet_cni_lib
...
No timeout when Kubelet Calling cni plugin
2019-09-19 18:00:59 -07:00
Kubernetes Prow Robot
73505056fb
Merge pull request #82887 from yutedz/token-cleaner-type
...
[v1.16.1] TokenCleaner#evalSecret should enqueue the key
2019-09-19 14:21:20 -07:00
Kubernetes Prow Robot
33adc7fafa
Merge pull request #82841 from Huang-Wei/sched-panic
...
Fixed a scheduler panic when using PodAffinity (k8s version >= 1.15)
2019-09-19 14:21:11 -07:00
Kubernetes Prow Robot
3d897f21fc
Merge pull request #82594 from yutedz/oper-gen-plugin-err
...
Check the error return from AddPlugin
2019-09-19 14:20:58 -07:00