Commit Graph

32397 Commits (25c24409967106a0f3d21a10950143e72441c341)

Author SHA1 Message Date
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
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
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
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
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
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
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
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
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