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
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
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
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
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