David Ashpole
70a7fdda02
use Pod.Status.StartTime as pod's cgroup start time in summary API
2018-12-14 14:26:55 -08:00
Kubernetes Prow Robot
afaef937fb
Merge pull request #72061 from misterikkit/WhatIsAnAlgorithm
...
Move `ScheduleAlgorithm` to the core package.
2018-12-14 12:49:52 -08:00
Kubernetes Prow Robot
61ed586bb9
Merge pull request #71297 from Pingan2017/event-kill-container
...
correct the event msg of kill container
2018-12-13 18:18:58 -08:00
Jonathan Basseri
8e25361320
Move `ScheduleAlgorithm` to the core package.
...
This moves the type `ScheduleAlgorithm` from `pkg/scheduler/algorithm`
to `pkg/scheduler/core`. The reason for this move is to fix our import
dependency graph and allow predicate & priority types to be moved into
their appropriate packages.
The new location makes sense because `core` is the only package that
exports an implementation of this type.
2018-12-13 15:08:38 -08:00
Kubernetes Prow Robot
59fce36866
Merge pull request #71990 from andyzhangx/azuredisk-log-flushing
...
fix kubelet log flushing issue in azure disk
2018-12-13 07:18:00 -08:00
Kubernetes Prow Robot
dcff35aafb
Merge pull request #71855 from cheftako/sshBadIP
...
Fix issue where missing external IP address breaks SSH Tunnel.
2018-12-12 21:16:57 -08:00
Kubernetes Prow Robot
ed73acdc98
Merge pull request #71029 from yanghaichao12/dev1114
...
Fix comment error of the struct 'UserDefinedMetric'
2018-12-12 17:18:54 -08:00
Kubernetes Prow Robot
483dfc4902
Merge pull request #71934 from annehwatson/typo
...
Fix typo
2018-12-12 16:02:37 -08:00
Walter Fender
d92ee41e44
Fix issue where missing external IP address breaks SSH Tunnel.
...
Added unit test to cover missing external IP case.
Justin's feedback.
Lint fix.
Lavalmap's feedback.
2018-12-12 10:59:32 -08:00
Kubernetes Prow Robot
05183bffe5
Merge pull request #71872 from yuexiao-wang/scheduler-nodeinfo
...
[scheduler cleanup phase 2]: Rename `pkg/scheduler/cache` to `pkg/scheduler/nodeinfo`
2018-12-12 08:08:33 -08:00
danielqsj
42214c5ac4
Using histogram metrics instead of summary
2018-12-12 17:53:24 +08:00
danielqsj
b828bc1a50
Use prometheus conventions for workqueue metrics
2018-12-12 16:55:13 +08:00
andyzhangx
81a123dbed
fix kubelet log flushing issue in azure disk
2018-12-12 08:20:00 +00:00
Yecheng Fu
67552a8f6e
Add unit test to verify generated volume names.
2018-12-12 13:03:21 +08:00
Micah Hausler
9740b6a6e1
Disable proxy to loopback and linklocal
2018-12-11 20:51:40 -08:00
Kubernetes Prow Robot
c49896f924
Merge pull request #71974 from apelisse/fix-diff-overriding-names
...
diff: Make filename cross-platform compatible
2018-12-11 17:07:48 -08:00
Antoine Pelisse
95eec905c7
diff: Make filename cross-platform compatible
2018-12-11 15:36:26 -08:00
Kubernetes Prow Robot
425b1ff47d
Merge pull request #71923 from apelisse/fix-diff-overriding-names
...
diff: Fix overlapping filenames
2018-12-11 12:13:39 -08:00
Antoine Pelisse
b6135f63aa
diff: Fix overlapping filenames
...
The filename can overlap when multiple resources have the same name (but
obviously are of a different type). Include the name of the type in the
file name to prevent the overlap.
2018-12-11 09:19:52 -08:00
Lars Ekman
227893dc3d
Corrected test TestOnlyLocalLoadBalancing
2018-12-11 10:07:04 +01:00
andyzhangx
7f3a66efb6
add VMSize info in attach/detach azure disk
2018-12-11 08:33:38 +00:00
Kubernetes Prow Robot
9d80e7522a
Merge pull request #71911 from Nordix/issue-70113-2
...
Only handle addresses of the own ip family
2018-12-10 23:02:33 -08:00
annehwatson
0a8a07f666
Fix typo
2018-12-10 20:16:17 -08:00
yuexiao-wang
7b6f60f085
modify BUILD
...
Signed-off-by: yuexiao-wang <wang.yuexiao@zte.com.cn>
2018-12-11 11:22:06 +08:00
yuexiao-wang
f3353c358d
[scheduler cleanup phase 2]: Rename to
...
Signed-off-by: yuexiao-wang <wang.yuexiao@zte.com.cn>
2018-12-11 11:21:12 +08:00
tanshanshan
a26074802f
add description about namespace for pod in log
2018-12-11 10:42:27 +08:00
Kubernetes Prow Robot
7839fe3862
Merge pull request #71899 from kubernetes/revert-71484-nsg-srcrange-collapse
...
Revert "Collapse not shared NSG rules with multiple source ranges"
2018-12-10 11:00:43 -08:00
Kubernetes Prow Robot
0914272a42
Merge pull request #71035 from Nordix/issue-68437
...
Fixes NodePort in ipv6 with proxy-mode=ipvs
2018-12-10 08:53:42 -08:00
Lars Ekman
39dc41d411
Updated and new tests for ipv4/ipv6 address mix
2018-12-10 14:16:17 +01:00
Kubernetes Prow Robot
698db70879
Merge pull request #71551 from mlmhl/scheduler_optimization
...
activate unschedulable pods only if the node became more schedulable
2018-12-10 03:26:19 -08:00
Lars Ekman
5065f89a17
Only handle addresses of the own ip family
2018-12-10 12:14:42 +01:00
Kubernetes Prow Robot
a69b565c3e
Merge pull request #71834 from DataDog/lbernail/ipvs-sysctls
...
[kubeproxy/ipvs] New sysctls to improve pod termination
2018-12-09 23:59:16 -08:00
Pengfei Ni
e5f767d66b
Revert "Collapse not shared NSG rules with multiple source ranges"
2018-12-10 14:10:03 +08:00
Kubernetes Prow Robot
27fca554e1
Merge pull request #71895 from DataDog/lbernail/svc-graceful-deletion
...
Support IPVS graceful termination when deleting a service
2018-12-09 21:57:00 -08:00
Kubernetes Prow Robot
13985d2674
Merge pull request #70172 from WanLinghao/configmap_volume_support_monitor
...
Support more volume types in stats/summary endpoint including configm…
2018-12-09 18:36:58 -08:00
mlmhl
2fe9b1438c
activate unschedulable pods only if the node became more schedulable
2018-12-10 09:48:23 +08:00
PingWang
98f852a441
Add some exception handling of Preempt
...
Signed-off-by: PingWang <wang.ping5@zte.com.cn>
revert options
Signed-off-by: PingWang <wang.ping5@zte.com.cn>
update returns for Preempt
Signed-off-by: PingWang <wang.ping5@zte.com.cn>
revert Preempt returns
Signed-off-by: PingWang <wang.ping5@zte.com.cn>
go fmt
Signed-off-by: PingWang <wang.ping5@zte.com.cn>
update the preempt
Signed-off-by: PingWang <wang.ping5@zte.com.cn>
move preemptionStartTime := time.Now() from line 496 to the else block.
Signed-off-by: PingWang <wang.ping5@zte.com.cn>
2018-12-10 08:44:10 +08:00
WanLinghao
ea456bb365
Clean unused function in pkg/kubelet/kublet.go
2018-12-09 14:30:36 +08:00
Laurent Bernaille
ec598d1a16
[kube-proxy/ipvs] Gofmt
2018-12-08 23:49:49 +01:00
Laurent Bernaille
0f9d30dd27
[kube-proxy/ipvs] Avoid unbinding multiple times for multiport svc
2018-12-08 23:47:59 +01:00
Laurent Bernaille
b2c169d27c
[kube-proxy/ipvs] Update test for new CleanupLegacyServices function
2018-12-08 21:27:37 +01:00
Laurent Bernaille
e8c7dba25b
[kube-proxy/ipvs] Apply graceful termination logic when unbinding addresses
2018-12-08 21:16:13 +01:00
Laurent Bernaille
81252e2ec1
[kube-proxy/ipvs] Apply graceful termination when deleting a service
2018-12-08 21:15:58 +01:00
Kubernetes Prow Robot
f62b530f4d
Merge pull request #57057 from greghaynes/reschedule-with-backoff
...
Reschedule with backoff
2018-12-07 21:13:57 -08:00
Kubernetes Prow Robot
52705deb62
Merge pull request #71792 from liggitt/gc-defaults
...
Ensure all new API versions of resources default to DeleteDependents
2018-12-07 20:02:20 -08:00
Kubernetes Prow Robot
9a9497d7af
Merge pull request #71854 from apelisse/fix-dryrun-detection
...
apply: fix detection of non-dry-run enabled servers
2018-12-07 16:52:12 -08:00
Kubernetes Prow Robot
f0bae6e9c5
Merge pull request #71573 from JacobTanenbaum/UDP_conntrack
...
Correctly Clear conntrack entry on endpoint changes when using nodeport
2018-12-07 15:01:43 -08:00
Kubernetes Prow Robot
e94befab0a
Merge pull request #71844 from soltysh/describe_cronjob
...
Add failed and successful history limits to cronjob describe
2018-12-07 13:14:28 -08:00
Antoine Pelisse
f9ca4aafc6
apply: fix detection of non-dry-run enabled servers
...
Apply only checks that the server supports dry-run in the create path,
not the update path, which is pretty bad.
2018-12-07 10:54:03 -08:00
Kubernetes Prow Robot
1a82272782
Merge pull request #71684 from danielqsj/typo-fix
...
Fix typos like limitting
2018-12-07 07:58:09 -08:00
Maciej Szulik
14aa4b8c73
Add failed and successful history limits to cronjob describe
2018-12-07 14:34:54 +01:00
Jordan Liggitt
3b099ddf86
Ensure all new API versions of resources default to DeleteDependents
2018-12-06 19:58:14 -05:00
Kubernetes Prow Robot
1cd6ccb344
Merge pull request #71805 from liggitt/sort-by
...
Fix sort-by regression
2018-12-06 16:25:46 -08:00
Jordan Liggitt
a9dc919f82
Look up service accounts from informer before trying live lookup
2018-12-06 16:48:39 -05:00
Laurent Bernaille
1570d9f042
[kubeproxy/ipvs] New sysctls to improve pod termination
2018-12-06 19:49:47 +01:00
Jordan Liggitt
4611bb448e
Fix sort-by regression
2018-12-06 12:32:30 -05:00
Gregory Haynes
73710f06db
Check for shutdown in TryBackoffAndWait
2018-12-06 16:57:20 +00:00
Gregory Haynes
5e4ccede4c
Reschedule with backoff
...
With the alpha scheduling queue we move pods from unschedulable to
active on certain events without a backoff. As a result we can cause
starvation issues if high priority pods are in the unschedulable queue.
Implement a backoff mechanism for pods being moved to active.
Closes #56721
2018-12-06 16:38:34 +00:00
Maciej Szulik
65e074fd1a
Set delete propagation policy to background when removing jobs and its dependents
2018-12-06 17:20:23 +01:00
SenXuDC
48c715515e
Update fsstore.go
2018-12-06 23:01:52 +08:00
Kubernetes Prow Robot
720c10282c
Merge pull request #71722 from bsalamat/fix_priorityconfig
...
Avoid copying PriorityConfig and SchedulerExtender structs for every node while running priority functions
2018-12-05 20:31:51 -08:00
Kubernetes Prow Robot
1bafa3922f
Merge pull request #71687 from WanLinghao/cadvisor_comment_remove
...
Update a comment in cadvisor boot function
2018-12-05 20:31:41 -08:00
Kubernetes Prow Robot
895f483fdf
Merge pull request #59525 from dashpole/fix_start_time
...
Use start times kubelet startup
2018-12-05 16:52:55 -08:00
David Ashpole
54e581930c
fix node and kubelet start times
2018-12-05 15:07:52 -08:00
Kubernetes Prow Robot
809eaa7025
Merge pull request #71744 from yue9944882/fixes-autoscaling-conversion
...
Fixes nil pointer panic on autoscaling types conversion
2018-12-05 13:01:27 -08:00
zuoxiu.jm
e85924e164
fixes autoscaling types conversion
2018-12-05 23:53:03 +08:00
Kubernetes Prow Robot
a0c2788249
Merge pull request #71736 from feiskyer/fix-ip
...
Fix Azure node's internal IP address
2018-12-05 05:41:38 -08:00
Pengfei Ni
8e9af79030
Fix Azure node's internal IP address
...
Only use the first IP address got from instance metadata. This is
because Azure CNI would setup a list of IP addresses in instance metata,
while only the first one is the Node's IP.
2018-12-05 15:02:12 +08:00
Kubernetes Prow Robot
3952199c76
Merge pull request #70940 from mikedanese/sshcleanup
...
cleanup pkg/ssh
2018-12-04 22:52:35 -08:00
Kubernetes Prow Robot
dec5139371
Merge pull request #71678 from misterikkit/notestutil
...
Remove scheduler "TestGroup" utility.
2018-12-04 18:25:09 -08:00
Kubernetes Prow Robot
7b16fa9c26
Merge pull request #71333 from cheftako/fakecp
...
Fixing address locking in CP fake.
2018-12-04 18:24:59 -08:00
Bobby (Babak) Salamat
ece8f42ea2
Run old-style priority functions in parallel to the map-reduce style ones
2018-12-04 17:58:28 -08:00
Bobby (Babak) Salamat
76591db7d4
Avoid copying Extender struct while running priority functions
2018-12-04 13:50:59 -08:00
Bobby (Babak) Salamat
70f923ed05
Avoid copying PriorityConfig struct while running priority functions
2018-12-04 11:28:25 -08:00
Gregory Haynes
082b48240a
Implement scheduler.util.backoff as a queue
...
We are going to use PodBackoff for controlling backoff when adding
unschedulable pods back to the active scheduling queue. In order to do
this more easily, limit the interface for PodBackoff to only this struct
(rather than exposing BackoffEntry) and change the backing expiry
implementation to be queue based.
2018-12-04 18:01:43 +00:00
Gregory Haynes
c821f2ed2f
Move scheduling Heap in to scheduler.core.utils
...
The Heap data structure is useful for our backoff system in addition to
scheduling queue. Move it to somewhere it can be consumed by both
systems and properly export needed names. Also adding unit tests
from client-go/tools/cache/heap.go.
2018-12-04 18:01:42 +00:00
Kubernetes Prow Robot
33a37702a6
Merge pull request #64280 from dashpole/eviction_pod_metrics
...
Use memory metrics from the pod cgroup for eviction ranking
2018-12-04 08:26:03 -08:00
Kubernetes Prow Robot
a605988d5d
Merge pull request #71597 from marc-sensenich/gh-71595/fix-cloud-controller-manager-azure-delete-nodes
...
Add check for cloudProvider.InstanceNotFound in Azure VMSS Instance gets
2018-12-04 05:25:59 -08:00
Kubernetes Prow Robot
85b0f58378
Merge pull request #71691 from andyzhangx/make-func-public
...
make GetStorageAccesskey func public
2018-12-04 04:12:30 -08:00
Kubernetes Prow Robot
d193fbe45c
Merge pull request #71484 from ritazh/nsg-srcrange-collapse
...
Collapse not shared NSG rules with multiple source ranges
2018-12-04 02:54:24 -08:00
Kubernetes Prow Robot
b1aed1593e
Merge pull request #70682 from idealhack/fix-golint-pkg-kubectl-cmd
...
Fix some golint errors for packages in `pkg/kubectl/cmd`
2018-12-04 00:49:09 -08:00
andyzhangx
14ad73eaa8
make GetStorageAccesskey public as a lib
2018-12-04 07:02:50 +00:00
Kubernetes Prow Robot
6cea9266dc
Merge pull request #71116 from xichengliudui/fix18111602
...
Fix typo: trus->true
2018-12-03 21:27:08 -08:00
Kubernetes Prow Robot
8ffc8ef4dd
Merge pull request #68663 from WanLinghao/probe_proxy
...
Disable proxy use in http probe
2018-12-03 21:26:57 -08:00
WanLinghao
08a4ee006e
Update a comment in cadvisor boot function
2018-12-04 11:29:58 +08:00
Pengfei Ni
3ef7ef8c6e
Use refactored backoffs in other places
2018-12-04 11:23:01 +08:00
Pengfei Ni
994a2cc4cd
Refactor Azure backoff to support backoff modes
2018-12-04 11:23:01 +08:00
Pengfei Ni
d5c3a959f4
Add new Azure cloud provider option CloudProviderBackoffMode
2018-12-04 11:22:58 +08:00
danielqsj
3c055aa4b4
Fix typos like limitting
2018-12-04 11:01:40 +08:00
Jonathan Basseri
b864a5a808
Remove scheduler "TestGroup" utility.
...
This util was used to fake certain aspects of apiserver behavior, such
as resource paths and JSON encoding. Our unit tests have been refactored
so they don't rely on the REST or JSON aspects of apiserver. This util
is no longer needed.
2018-12-03 16:28:21 -08:00
Kubernetes Prow Robot
c7598e8844
Merge pull request #71617 from RobertKrawitz/branch-issue71614
...
Issue 71614: Protect log message maps
2018-12-03 14:03:38 -08:00
Jacob Tanenbaum
144280e7a7
Correctly Clear conntrack entrty on endpoint changes when using nodeport
...
When using NodePort to connect to an endpoint using UDP, if the endpoint is deleted on
restoration of the endpoint traffic does not flow. This happens because conntrack holds
the state of the connection and the proxy does not correctly clear the conntrack entry
for the stale endpoint.
Introduced a new function to conntrack ClearEntriesForPortNAT that uses the endpointIP
and NodePort to remove the stale conntrack entry and allow traffic to resume when
the endpoint is restored.
Signed-off-by: Jacob Tanenbaum <jtanenba@redhat.com>
2018-12-03 15:02:48 -05:00
andrewsykim
5329f09663
consolidate node deletion logic between node lifecycle and cloud node controller
2018-12-03 13:33:53 -05:00
Kubernetes Prow Robot
dc9261bc3b
Merge pull request #71174 from smarterclayton/debug_kubeadm
...
Restore bootstrap in the background with fix to preserve kubeadm behavior
2018-12-03 05:49:57 -08:00
Rita Zhang
61fbba74e5
Collapse source range in nsg
2018-12-03 08:39:46 +00:00
Kubernetes Prow Robot
dde084fc55
Merge pull request #71553 from WanLinghao/token-projected-volume-fix
...
fix a bug in 'kubectl describe'
2018-12-02 22:44:15 -08:00
Yecheng Fu
ccb66066a9
vendor github.com/prometheus/client_golang/prometheus/testutil package
2018-12-02 10:25:50 +08:00
Kubernetes Prow Robot
2c322a2ff5
Merge pull request #70227 from bsalamat/reserve
...
Add plugin interfaces for reserve and prebind extension points of the scheduling framework
2018-12-01 05:25:12 -08:00
Kubernetes Prow Robot
82abbdc11a
Merge pull request #71488 from bsalamat/queue-sort
...
Change sort function of the scheduling queue to avoid starvation
2018-12-01 03:59:51 -08:00
Kubernetes Prow Robot
e056703ea7
Merge pull request #71547 from andrewsykim/check-provider-implements-interface
...
compile check to ensure cloud providers implement cloud interfaces
2018-11-30 23:40:18 -08:00
Kubernetes Prow Robot
83b3baaf58
Merge pull request #71581 from saad-ali/fixCSILogEventSpam
...
Reduce CSI log and event spam
2018-11-30 22:27:27 -08:00
Yecheng Fu
5ada29ac16
Rename GetUniqueVolumeNameForNonAttachableVolume to GetUniqueVolumeNameFromSpecWithPod
2018-12-01 12:25:32 +08:00
Yecheng Fu
f5642bbe88
Fix device mountable volume names in DSW
2018-12-01 12:25:14 +08:00
Bobby (Babak) Salamat
e60f510e38
Autogenerated files
2018-11-30 16:03:47 -08:00
Bobby (Babak) Salamat
f74b30868c
Add plugin invocation for 'reserve' and 'prebind' plugins to the scheduler.
2018-11-30 16:03:47 -08:00
Bobby (Babak) Salamat
f6f81fb1f3
Add Context as a mechanism to pass data between plugins.
2018-11-30 16:02:09 -08:00
Bobby (Babak) Salamat
7221589dde
Add "reserve" and "prebind" plugin interfaces for the scheduling framework.
2018-11-30 16:02:09 -08:00
Robert Krawitz
bc091be66a
Issue 71614: Protect log message maps
2018-11-30 18:04:08 -05:00
Wei Huang
f3dc0bc307
fix an param typo of AKS loadbalancer method
2018-11-30 12:18:45 -08:00
Lars Ekman
c3c7152c55
Corrected condition. Fix for #71596
2018-11-30 18:44:46 +01:00
andrewsykim
4b0f2ab442
compile check to ensure cloud providers implement cloud interfaces
2018-11-30 10:33:34 -05:00
k8s-ci-robot
96516bd961
Merge pull request #71263 from ZYecho/fix-spellings
...
fix typo: namspace -> namespace
2018-11-30 06:33:50 -08:00
Marc Sensenich
884b21f352
Add additional err check for cloudProvider.InstanceNotFound error
2018-11-30 13:00:59 +00:00
k8s-ci-robot
25c9ac6544
Merge pull request #71515 from DataDog/lbernail/udp-graceful
...
Enable graceful termination for UDP flows when using kube-proxy in IPVS mode
2018-11-30 01:20:27 -08:00
k8s-ci-robot
d8b9d9b381
Merge pull request #71370 from WanLinghao/serialization_test_fix
...
fix unit test failure in ./pkg/api/testing/serialization_test.go
2018-11-30 00:04:36 -08:00
k8s-ci-robot
79e5cb2cb7
Merge pull request #71302 from liggitt/verify-unit-test-feature-gates
...
Split mutable and read-only access to feature gates, limit tests to readonly access
2018-11-29 21:45:12 -08:00
k8s-ci-robot
2fd1949b7f
Merge pull request #71294 from Chenditang/verify-golint
...
Fix golint verify errors.
2018-11-29 21:45:02 -08:00
k8s-ci-robot
af6bf1e436
Merge pull request #70645 from changyaowei/node_ephemeral-storage
...
Fix bug: when kubelet restart, the ephemeral-storage in node status upgrade to 0
2018-11-29 21:44:53 -08:00
stewart-yu
5f11d089b7
remove unused todo in kubelet_pods.go
2018-11-30 12:51:46 +08:00
k8s-ci-robot
9829585260
Merge pull request #70847 from krmayankk/active-dead
...
fix error type when using activeDeadlineSeconds with RS/RC
2018-11-29 19:04:36 -08:00
k8s-ci-robot
550f6200c5
Merge pull request #67036 from Huang-Wei/update-ds-pod-tolerations
...
update logic of adding default DS pod tolerations
2018-11-29 19:04:17 -08:00
saad-ali
2251bf0c21
Ensure volume mount err checking done inside op
...
Ensure volume mount error checking is done inside the operation so that
failures get handled with exponential backoff, etc.
2018-11-29 16:52:24 -08:00
k8s-ci-robot
81eb9ce491
Merge pull request #71217 from jsafrane/status-update-unit-test
...
CSI v1 leftovers
2018-11-29 15:26:53 -08:00
k8s-ci-robot
4372d62ff5
Merge pull request #71211 from jsafrane/meta-status-reset
...
Refactor status PrepareForUpdate into standalone method
2018-11-29 15:26:42 -08:00
k8s-ci-robot
8c5b9b7479
Merge pull request #71207 from jsafrane/mount-anyuid-test
...
Fix unit test to run with random UID
2018-11-29 15:26:20 -08:00
k8s-ci-robot
409bfc4337
Merge pull request #71047 from pivotal-k8s/bump-k8s-utils
...
Bump k8s.io/uitls to 8e7ff06
2018-11-29 11:17:08 -08:00
k8s-ci-robot
6be4f1bbf3
Merge pull request #71471 from mshaverdo/panic_in_attach_detach_controller
...
Fix panic in attachDetachController
2018-11-29 09:30:21 -08:00
k8s-ci-robot
527d1c34cc
Merge pull request #70947 from Adirio/nodetree-thread-safety
...
Scheduler internal NodeTree thread-safe NumNodes
2018-11-29 07:36:48 -08:00
k8s-ci-robot
d80614d4a7
Merge pull request #70860 from humblec/getVolumeName
...
GlusterFS: Move GetVolumeName() to unimplemented func.
2018-11-29 07:36:28 -08:00
k8s-ci-robot
6d189fd316
Merge pull request #70838 from ping035627/k8s-181107
...
Fix the service_controller test cases and some syntax errors
2018-11-29 07:36:18 -08:00
k8s-ci-robot
cc153a9cd5
Merge pull request #70612 from jianglingxia/jlx201811031409
...
delete new defined para name in fc volume
2018-11-29 07:36:07 -08:00
Laurent Bernaille
b11233a2be
[kube-proxy/ipvs] Generalize handling of InactiveConn to TCP
2018-11-29 13:34:13 +01:00
Mikhail Shaverdo
a29981640f
Fix nil pointer dereference panic in attachDetachController
...
add check `attachableVolumePlugin == nil` to operationGenerator.GenerateDetachVolumeFunc()
2018-11-29 13:10:07 +03:00
k8s-ci-robot
d0e8e6b78f
Merge pull request #70613 from jianglingxia/jlx201811031619
...
fix golint problem of volume cephfs/iscsi/nfs
2018-11-29 02:01:13 -08:00
k8s-ci-robot
7ae97bcd0b
Merge pull request #66308 from RobertKrawitz/bug-1581483
...
Reduce logspam for crash looping containers
2018-11-29 02:00:54 -08:00
k8s-ci-robot
6d87c074e2
Merge pull request #63664 from xchapter7x/pkg-scheduler-api-validation
...
use subtest for table units (pkg/scheduler/api/validation)
2018-11-29 02:00:43 -08:00
Wei Huang
ad6e3617d3
update logic of adding default DS pod tolerations
...
- update DS pod default tolerations: add PIDPressure, remove OutOfDisk
- remove useless tolerations testcases
2018-11-29 01:18:32 -08:00
WanLinghao
a8639e5b93
Before this patch, the projected volume in kubectl describe command looks like:
...
...
Volumes:
kube-api-access-jp24b:
Type: Projected (a volume that contains injected data from multiple sources)
TokenExpirationSeconds: 0xc00071bee0
...
After this patch, it looks like:
...
Volumes:
kube-api-access-jp24b:
Type: Projected (a volume that contains injected data from multiple sources)
TokenExpirationSeconds: 3600
...
2018-11-29 17:06:47 +08:00
k8s-ci-robot
06a0ed7f3f
Merge pull request #70596 from neolit123/owners-controller
...
pkg/controller: add SIG label to OWNERS
2018-11-29 00:48:25 -08:00
k8s-ci-robot
e5326f22ea
Merge pull request #70471 from xichengliudui/fix181031
...
Fix some typos
2018-11-29 00:48:16 -08:00
k8s-ci-robot
d0ac922996
Merge pull request #70440 from nikhita/add-license-headers
...
Add license header to non-generated proto files
2018-11-29 00:48:05 -08:00
k8s-ci-robot
d2ca5194ae
Merge pull request #70432 from mvladev/fix-cloud-provider-aws
...
fix aws provider to handle only EBS volumes
2018-11-29 00:47:55 -08:00
WanLinghao
29f7e537a9
When node got proxy settings like "http_proxy=xxx".
...
The http probe would use that settings. This could cause probe failure.
This patch fix it.
2018-11-29 16:35:56 +08:00
k8s-ci-robot
b548d92b7c
Merge pull request #70392 from harsh-px/cfg-port
...
Lookup PX api port from k8s service
2018-11-28 23:31:50 -08:00
k8s-ci-robot
3faeb7ba6f
Merge pull request #70360 from houjun41544/20181029-1
...
Fix an error in comment
2018-11-28 23:31:40 -08:00
k8s-ci-robot
b385742d8f
Merge pull request #70127 from dtaniwaki/print-sub-path
...
Fix SubPath printing
2018-11-28 23:31:31 -08:00
k8s-ci-robot
64b96d426a
Merge pull request #69885 from clickyotomy/master
...
Fix local copy path for `kubectl cp'.
2018-11-28 23:31:21 -08:00
k8s-ci-robot
2e80c3a0b2
Merge pull request #69874 from stewart-yu/patch-1
...
fix some wrong type in printers.go
2018-11-28 23:31:10 -08:00
k8s-ci-robot
69bab0de51
Merge pull request #68422 from kellycampbell/fix-nlb-secgroups
...
Fix AWS NLB security group updates
2018-11-28 21:44:48 -08:00
k8s-ci-robot
7a958cf9e9
Merge pull request #68402 from saravanan30erd/cloudprovider-ovirt
...
Fix golint failures - pkg/cloudprovider/providers/ovirt
2018-11-28 21:44:38 -08:00
k8s-ci-robot
0b78c0b45a
Merge pull request #67927 from k82cn/ds_approver
...
Volunteer to be DaemonSet controller maintainer.
2018-11-28 21:44:18 -08:00
saad-ali
18050e308c
Allow CSI Drivers suporting 0.x/1.x to use old dir
...
Allow drivers implmenting both CSI 0.x and 1.x to use the old volume
plugin directory in addition to the the new volume plugin directory.
2018-11-28 11:11:37 -08:00
Kir Kolyshkin
1dca64fffd
Use shareable IPC for sandbox container
...
Currently, Docker make IPC of every container shareable by default,
which means other containers can join it's IPC namespace. This is
implemented by creating a tmpfs mount on the host, and then
bind-mounting it to a container's /dev/shm. Other containers
that want to share the same IPC (and the same /dev/shm) can also
bind-mount the very same host's mount.
Now, since https://github.com/moby/moby/commit/7120976d7
(https://github.com/moby/moby/pull/34087 ) there is a possiblity
to have per-daemon default of having "private" IPC mode,
meaning all the containers created will have non-shareable
/dev/shm.
For shared IPC to work in the above scenario, we need to
explicitly make the "pause" container's IPC mode as "shareable",
which is what this commit does.
To test: add "default-ipc-mode: private" to /etc/docker/daemon.json,
try using kube as usual, there should be no errors.
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2018-11-28 11:11:10 -08:00
Laurent Bernaille
ed65f6edeb
[kube-proxy/ipvs] Handle UDP graceful termination
...
The current logic is to delete a RS if the number of active connections
is 0. This makes sense for TCP but for UDP the number of active
connections is always 0. This is an issue for DNS queries because the RS
will be deleted but the IPVS connection will remain until it expires
(5mn by default) and if there are a lot of DNS queries, the port will be
reused and queries blackholed. Of course for this to work properly the
service needs to continue to serve queries until the connections expire
(this works fine with the lameduck option of coredns).
2018-11-28 18:02:11 +01:00
Laurent Bernaille
b955634d99
[kube-proxy/ipvs] Fix logic of delete function
2018-11-28 18:02:11 +01:00
Laurent Bernaille
7acb5a67fb
[kube-proxy/ipvs] Display RS complete name in logs
...
Help distinguish UDP and TCP RS (useful for DNS which uses both)
2018-11-28 18:02:11 +01:00
Robert Krawitz
3373fcf0fc
Reduce logspam for crash looping containers
2018-11-28 10:48:52 -05:00
andyzhangx
cd2930258c
fix detch azure disk issue by clean vm cache
2018-11-28 06:25:09 +00:00
WanLinghao
82f8f3e7d3
fix unit test failure in ./pkg/api/testing/serialization_test.go with error like:
...
--- FAIL: TestSetControllerConversion (0.00s)
serialization_test.go:104: rs._internal.apps -> rs.v1.apps
serialization_test.go:107: unexpected encoding error: no kind "ReplicaSet" is registered for version "apps/v1beta1" in scheme "k8s.io/kubernetes/pkg/api/legacyscheme/scheme.go:29"
2018-11-28 09:22:45 +08:00
Bobby (Babak) Salamat
36f8859fa0
autogenerated files
2018-11-27 17:08:58 -08:00
Bobby (Babak) Salamat
554acf2b38
Change sort function of the scheduling queue to avoid starvation
2018-11-27 17:08:40 -08:00
Chao Wang
e8d4debbfc
update the feature comment
2018-11-27 14:05:16 +08:00
Vladimir Vivien
e86bdc7989
Forces fsnotify CREATE and REMOVE to occur serially
2018-11-26 22:11:47 -05:00
k8s-ci-robot
1e50c57113
Merge pull request #70740 from mfpierre/fix-kubectl-get-sort-out-of-range
...
Fix index out of range error when sorting kubectl get
2018-11-24 12:19:06 -08:00
andyzhangx
7b14a5a2a0
should return error when attach/detach failed
2018-11-23 12:42:13 +00:00
k8s-ci-robot
205eaee0e5
Merge pull request #71145 from gnufied/test-mounted-detach
...
Fix volume detach while mount in progress
2018-11-22 23:27:48 -08:00
k8s-ci-robot
12e5eb7dc9
Merge pull request #71011 from sigma/pr/fix-inotify
...
replace golang.org/x/exp/inotify with standalone library
2018-11-22 18:07:51 -08:00
Yang Li
141d33a2a5
Fix some golint errors for packages in `pkg/kubectl/cmd`
...
Co-authored-by: Arijit Basu <sayanarijit@gmail.com>
2018-11-22 22:09:08 +08:00
k8s-ci-robot
20e1ab6744
Merge pull request #71314 from saad-ali/csi03Compat
...
Reintroduce CSI 0.3.x support in CSI Volume Plugin
2018-11-21 19:58:33 -08:00
saad-ali
a7c5582bba
Permit use of deprecated dir in device plugin.
2018-11-21 18:37:31 -08:00
saad-ali
aa8244beb5
Modify CSI to handle both 0.3 and 1.0
...
Modify the CSI volume plugin to handle CSI version 0.x as well as 1.x
2018-11-21 18:37:31 -08:00
saad-ali
d1b44857ad
Add missing feature gate to CSI driver uninstall
2018-11-21 18:37:31 -08:00
saad-ali
2b44ec5e9c
Reduce csipb dependencies
...
Remove csipb dependency from everywhere except the CSI client in
preperation for supporting multiple CSI clients.
2018-11-21 18:37:31 -08:00
saad-ali
8f666d9e41
Modify kubelet watcher to support old versions
...
Modify kubelet plugin watcher to support older CSI drivers that use an
the old plugins directory for socket registration.
Also modify CSI plugin registration to support multiple versions of CSI
registering with the same name.
2018-11-21 18:37:31 -08:00
Walter Fender
a49a4b9523
Fixing address locking in CP fake.
...
Follow on to https://github.com/kubernetes/kubernetes/pull/65226 .
2018-11-21 17:17:59 -08:00
Jordan Liggitt
2498ca7606
drop VerifyFeatureGatesUnchanged
2018-11-21 11:51:33 -05:00
Jordan Liggitt
70ad4dff48
Fix unit tests calling SetFeatureGateDuringTest incorrectly
2018-11-21 11:51:33 -05:00
Jordan Liggitt
4dca07ef7e
Fixup incorrect use of DefaultFeatureGate.Set in tests
2018-11-21 11:51:33 -05:00
Jordan Liggitt
d440ecdd3b
Update non-test code to use DefaultMutableFeatureGate
2018-11-21 11:51:33 -05:00
k8s-ci-robot
9801572181
Merge pull request #71212 from cofyc/fix71068
...
Clear pod binding cache
2018-11-21 05:58:10 -08:00
k8s-ci-robot
28182b6606
Merge pull request #71156 from apelisse/race-condition-diff
...
Optimistic-locking on diff
2018-11-21 03:35:04 -08:00
Yecheng Fu
8fc00ebda6
Clear pod binding cache.
2018-11-21 11:24:53 +08:00
Pingan2017
75d9a7bebd
correct the event msg of kill container
2018-11-21 10:59:21 +08:00
chendt.fnst
80de428f49
Fix golint verify errors.
...
**What type of PR is this?**
/kind cleanup
**What this PR does / why we need it**:
$ hack/verify-golint.sh
Errors from golint:
pkg/cloudprovider/providers/aws/aws_fakes.go:357:9: if block ends with a return statement, so drop this else and outdent its block
pkg/volume/util/util.go:204:9: if block ends with a return statement, so drop this else and outdent its block
**Which issue(s) this PR fixes** *(optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged)*:
**Special notes for your reviewer**:
**Release note**:
```
NONE
```
2018-11-21 09:11:20 +08:00
Antoine Pelisse
a889f37505
Optimistic-locking on diff
...
There is currently a race-condition when diffing, where we get the
object and then run a server-side dry-run patch and compare the two
results. If something changes the object on the server between the get
and the patch, the diff is going to show unrelated changes. We can now
specify the exact revisionversion that we want to patch, and that will
return a conflict, and we can retry multiple times to get a
non-conflicting diff. Eventually (after 3 times), we diff without
checking the version and throw a warning that the diff might be
partially wrong.
2018-11-20 14:34:37 -08:00
Antoine Pelisse
89daa462ff
Allow kubectl patcher to patch specific version
...
Give a new "ResourceVersion" option to the patch so that the patch can
be forced against a specific version. Also there is no way to customize
how many retries the patcher should do on conflicts, so also add a
"Retries" option that let's one customize it.
2018-11-20 14:34:08 -08:00
k8s-ci-robot
514a5b8f16
Merge pull request #70878 from jingxu97/Nov/repd
...
Remove useBetaAPI option from getReplicaZoneURI
2018-11-20 11:40:51 -08:00
Hemant Kumar
d2b6e30143
Fix bug with volume getting marked as not in-use with pending op
...
Add test for verifying volume detach
2018-11-20 11:58:47 -05:00
zhangyue
596a20ca8a
fix typo: namspace -> namespace
...
Signed-off-by: zhangyue <zy675793960@yeah.net>
2018-11-20 21:47:27 +08:00
Jan Safranek
0c4b89fad6
Fix typo
2018-11-19 15:28:14 +01:00
Jan Safranek
665b4daf56
Make sure VolumeAttachment storage implements Patcher
2018-11-19 15:25:26 +01:00
Jan Safranek
a73f793e8e
Add unit test for metadata modification
2018-11-19 15:19:55 +01:00
Jan Safranek
787611a614
Refactor status PrepareForUpdate into standalone method
...
Someone else might find reseting metadata fields useful.
2018-11-19 14:46:06 +01:00
yanghaichao12
982d1778f8
Fix comment error of 'cpuManagerStateFileName'
2018-11-19 08:07:04 -05:00
Jan Safranek
cfbf6aa925
Fix unit test to run with random UID
...
User that runs the tests desn't need to be in /etc/passwd and thus
user.Current() can fail. Assume the user is not root in this case.
2018-11-19 13:08:54 +01:00
Lars Ekman
2e5a985e47
Updates after review
2018-11-19 11:44:17 +01:00
Lars Ekman
1be71b8a99
Add the extra parameter for non-linux code
2018-11-19 10:02:48 +01:00
Clayton Coleman
fde87329cb
bootstrap: Use kubeconfig contents as seed for cert dir if necessary
...
kubeadm uses certificate rotation to replace the initial high-power
cert provided in --kubeconfig with a less powerful certificate on
the masters. This requires that we pass the contents of the client
config certData and keyData down into the cert store to populate
the initial client.
Add better comments to describe why the flow is required. Add a test
that verifies initial cert contents are written to disk. Change
the cert manager to not use MustRegister for prometheus so that
it can be tested.
2018-11-17 19:52:12 -05:00
Clayton Coleman
486577df17
Restore "Make bootstrap client cert loading part of rotation""
...
This reverts the revert of commit 3464222267
.
2018-11-17 13:44:58 -05:00
Clayton Coleman
3464222267
Revert "Make bootstrap client cert loading part of rotation"
...
This reverts commit 0af19875ad
.
Revert "Ensure the bootstrap rotation code is tested by forcing rotation"
This reverts commit de293b2d7d
.
2018-11-17 10:24:39 -05:00