Commit Graph

34136 Commits (332d62a94a2bc8a7d0c69ca85fcd5c458816d677)

Author SHA1 Message Date
ksubrmnn a7c3068e86 Update owners file 2019-04-16 10:45:50 -07:00
Kubernetes Prow Robot e8fc79da3a
Merge pull request #76644 from ping035627/k8s-190416-2
Delete unused struct, nodeEnumerator
2019-04-16 10:27:58 -07:00
Kubernetes Prow Robot 1a0a75750c
Merge pull request #76613 from SataQiu/fix-golint-20190416
Fix golint failures of pkg/apis/core/helper
2019-04-16 10:27:31 -07:00
Kubernetes Prow Robot 440d086268
Merge pull request #76257 from johscheuer/remove-unused-nodeipam-code
Remove empty metrics.go file and method call
2019-04-16 08:57:09 -07:00
PingWang a82749999d Delete unused struct, nodeEnumerator
Signed-off-by: PingWang <wang.ping5@zte.com.cn>
2019-04-16 17:57:22 +08:00
Kubernetes Prow Robot 98b6f35999
Merge pull request #74610 from oomichi/issue/74038-2
Enable StorageObjectInUseProtection by default
2019-04-16 02:11:29 -07:00
Kubernetes Prow Robot 4c4c378d99
Merge pull request #76014 from WanLinghao/auth_can-i_improve
Improve `kubectl auth can-i` command by warning users when they try access resource out of scope
2019-04-15 23:31:06 -07:00
andyzhangx 6c70ca61be move disk lock process to azure cloud provider
fix comments

fix import keymux check error

add unit test for attach/detach disk funcs
2019-04-16 05:31:18 +00:00
Kubernetes Prow Robot 107595eb5e
Merge pull request #74074 from wojtek-t/watch_bookmark_api_changes
Watch bookmark api changes
2019-04-15 22:19:05 -07:00
Kubernetes Prow Robot 9946d92e16
Merge pull request #76621 from yujuhong/docker-version-ping
dockershim: Fix negotiating docker API version
2019-04-15 18:06:05 -07:00
SataQiu 556ff16b0d fix golint failures of pkg/apis/core/helper 2019-04-16 07:21:20 +08:00
Yu-Ju Hong 903f635ab3 dockershim: Fix negotiating docker API version
API version negotiation needs to happen before any meaningful docker
calls, including simple commands such as "/version".
2019-04-15 15:25:06 -07:00
Kubernetes Prow Robot 4685eead2e
Merge pull request #76343 from frankgreco/ensureLoadBalancer-unit-tests
Begin Adding Unit Tests for EnsureLoadBalancer
2019-04-15 13:11:22 -07:00
Kubernetes Prow Robot d424bedc9b
Merge pull request #76341 from harsh-px/fix-concurrent-access-master
Fix concurrent map write access in Portworx create volume call
2019-04-15 11:46:24 -07:00
wojtekt 2a76b82394 Add API for watch bookmarks 2019-04-15 09:45:04 +02:00
GRECO, FRANK 91cdcceab5 adding loadbalancer name to log message 2019-04-14 16:37:54 -07:00
shinytang6 6d11926709 clean up comments 2019-04-14 20:03:39 +08:00
Wei Huang 6d89279115
Revert "scheduler: performance improvement on PodAffinity"
This reverts commit 28730919a6.
2019-04-13 09:09:22 -07:00
ialidzhikov 98c976ae4f Clean ineffectual assignment
Signed-off-by: ialidzhikov <i.alidjikov@gmail.com>
2019-04-13 16:23:07 +03:00
andyzhangx 39c239c308 refactor detach azure disk retry operation 2019-04-13 12:45:32 +00:00
caiweidong 4038a5e3db Remove unused lock in scheduler 2019-04-13 13:27:16 +08:00
Kubernetes Prow Robot 875f23d3f9
Merge pull request #76464 from MrHohn/tc-owner
Add OWNERS file for sig-network utils
2019-04-12 21:38:17 -07:00
Kubernetes Prow Robot 80d39a079f
Merge pull request #75692 from vladimirvivien/csi-aggregate-common-test-funcs
CSI - aggregate common test functionalities
2019-04-12 18:08:03 -07:00
Kubernetes Prow Robot ee82a0127d
Merge pull request #76398 from Huang-Wei/followup-75501
scheduler: rename metric name of pending pods
2019-04-12 12:57:02 -07:00
Vladimir Vivien b138e6d1e2 CSI - Surfaces klog flags; common tests aggregation 2019-04-12 15:38:06 -04:00
Kubernetes Prow Robot 097d58523a
Merge pull request #75278 from Nessex/updatecontainerresources-label-fix
Fix label on UpdateContainerResources operation
2019-04-12 08:44:48 -07:00
Kubernetes Prow Robot 78f571dcfc
Merge pull request #76291 from dims/update-to-latest-cadvisor-remove-mesos-rkt
Update to latest cadvisor - cleanup mesos/rkt
2019-04-12 06:15:00 -07:00
Kubernetes Prow Robot b7858e31d4
Merge pull request #76074 from danielqsj/probe
change kubelet probe metrics to counter
2019-04-12 03:23:04 -07:00
Kubernetes Prow Robot c6338979ff
Merge pull request #75843 from alok87/update-dep-docker-docker-18.09.3
Update docker/docker dependency to release 18.09.4
2019-04-12 03:22:48 -07:00
Kubernetes Prow Robot 468eae7790
Merge pull request #76334 from namreg/fix-proxy-exclude-cidrs
proxy: fix exclude CIDRs
2019-04-12 00:40:59 -07:00
caiweidong 7c9e567008 add operation name for other volume operations 2019-04-12 11:09:13 +08:00
Haiyan Meng 538cd87864
Add metrics to monitor the kubelet http server
Signed-off-by: Haiyan Meng <haiyanmeng@google.com>
2019-04-11 14:16:57 -07:00
Wei Huang 6e10f0ce2f
scheduler: rename metric name of pending pods 2019-04-11 14:16:10 -07:00
Zihong Zheng 8ac6119bec Add OWNERS file for sig-network utils 2019-04-11 13:49:03 -07:00
Travis Rhoden 96476fd054 Fix linting issues for exec mounter 2019-04-11 13:22:14 -06:00
Davanum Srinivas 1707144b0d
Adjust our use of cadvisor to pull in just runtimes we need
- We drop mesos and rkt support in cadvisor

Change-Id: Id4dcafdecc97802b2def95a572e67842e7507f7b
2019-04-11 14:59:48 -04:00
Davanum Srinivas 70d562a6ac
Update to latest cadvisor - cleanup mesos/rkt
Change-Id: Ib5ae0cb13b93f8c87bb74e3ba33040df5f3d6a6f
2019-04-11 14:49:23 -04:00
Travis Rhoden f38d4938be Move ExecMount to pkg/volume/util/exec
This patch moves the ExecMounter found in pkg/util/mount to
pkg/volume/util/exec. This is done in preparation for pkg/util/mount to
move out of tree. This specific implemention of mount.Interface is only
used internally to K8s and does not need to move out of tree.
2019-04-11 12:19:55 -06:00
aaa 119400ad71 Use constant blocks to define constants in pkg/kubectl 2019-04-11 12:16:29 -04:00
Alok Kumar Singh 5b3a44fd56 Use docker api IsErrNotFound(). String handling is not required anymore
Why? https://github.com/kubernetes/kubernetes/pull/75843#discussion_r273785877
Moby support: https://github.com/moby/moby/pull/38689
Moby def: 053c6f097a/client/errors.go (L44-L49)
2019-04-11 20:52:57 +05:30
Igor German 107faf5ab0 proxy: Take into account exclude CIDRs while deleting legacy real servers 2019-04-11 17:05:49 +03:00
Kubernetes Prow Robot ad17bf05d9
Merge pull request #76410 from hex108/priority
Save pod priority to avoid repeated calculation
2019-04-11 00:00:22 -07:00
Kubernetes Prow Robot 98cf84ff86
Merge pull request #76256 from tedyu/master
Use RWMutex for accessing scheduler factory obj
2019-04-10 22:42:08 -07:00
Jun Gong 49832cf887 Save pod priority to avoid repeated calculation 2019-04-11 11:09:47 +08:00
Pingan2017 c1243ddd05 remove unused func deprecatedAlias 2019-04-11 10:17:49 +08:00
Kubernetes Prow Robot b8b5b1c254
Merge pull request #76403 from andrewsykim/cloud-provider-import-restrictions
remove pkg/credentialprovider from cloud provider import restrictions
2019-04-10 18:46:35 -07:00
Kubernetes Prow Robot df5bff927f
Merge pull request #76349 from tedyu/master
Return from loop in removeZone when zone is found
2019-04-10 18:46:09 -07:00
Andrew Sy Kim eb1052248c remove pkg/credentialprovider from cloud provider import restrictions
Signed-off-by: Andrew Sy Kim <kiman@vmware.com>
2019-04-10 18:40:17 -04:00
aaa bad985dc3a Using const() defines constants together 2019-04-10 17:41:29 -04:00
aaa 49a2b1fd8f Small bug: Comments and function names do not match
add a function
2019-04-10 17:37:24 -04:00
Tim Allclair 26e3c8674e Use consistent imageRef during container startup 2019-04-10 12:06:42 -07:00
GRECO, FRANK 3dfeb51745 begin adding unit tests for ensureLoadBalancer 2019-04-10 10:04:25 -07:00
caiweidong 4c12c76a90 clean up unused code 2019-04-10 19:12:40 +08:00
WanLinghao 7fbd71835e 'kubectl auth can-i` command would not hint user when they try to access
some resource out of scope. For example, try get namespace inside defaut namespace.
It would be reject by api-server but `kubectl auth can-i get namespace --namespace=default`
would give a `yes`. After this patch, a warning info would be given.
For more detail, please refer issue #75950
2019-04-10 13:12:45 +08:00
Kubernetes Prow Robot a2c200a57a
Merge pull request #76326 from andyzhangx/azuredisk-typo
fix typo in azure disk logging
2019-04-09 19:58:12 -07:00
Kubernetes Prow Robot 8a9ed4c91a
Merge pull request #76243 from Huang-Wei/perf-podaffinity
scheduler: performance improvement on PodAffinity
2019-04-09 18:36:12 -07:00
Kubernetes Prow Robot 98104e44f3
Merge pull request #76020 from qingsenLi/k8s190402-fix-healty
fix typo  healty
2019-04-09 15:18:45 -07:00
Ted Yu cd3a30047f Return from loop in removeZone when zone is found 2019-04-09 14:42:44 -07:00
Kubernetes Prow Robot 552d1ebd70
Merge pull request #76237 from mkumatag/fix_storage_test
Fix the TestUpdate
2019-04-09 13:58:59 -07:00
Kubernetes Prow Robot e2091b769a
Merge pull request #71136 from yue9944882/chore/prune-all-kk-internal-clientset
Prune literally all kube-apiserver internal client
2019-04-09 13:58:45 -07:00
Harsh Desai 17dd5989df Fix concurrent map access in Portworx create volume call
Fixes #76340

Signed-off-by: Harsh Desai <harsh@portworx.com>
2019-04-09 12:13:19 -07:00
Kubernetes Prow Robot 454666bca8
Merge pull request #76184 from humblec/pvc
Use pvc uid in endpoint/service label
2019-04-09 11:21:14 -07:00
Kubernetes Prow Robot fdeedf4431
Merge pull request #75911 from marsno1/fix-forloop-in-preemption
Improve for-loop in nodesWherePreemptionMightHelp function
2019-04-09 11:21:01 -07:00
Kubernetes Prow Robot c2acec5c77
Merge pull request #71679 from RobertKrawitz/logspam-cleanup
Clean up PR #71617
2019-04-09 11:20:48 -07:00
Jordan Liggitt e377e9fed9 Fix up cronjob and job registry tests to not use testapi 2019-04-09 13:30:34 -04:00
Jordan Liggitt 56f3f6eec7 Use kubeapiserver storage config for registry tests 2019-04-09 13:26:05 -04:00
Kubernetes Prow Robot c62cd6e3a4
Merge pull request #76047 from codenrhoden/mv-nsenter-mount
Move nsenter mounter to pkg/volume/util/nsenter
2019-04-09 09:55:59 -07:00
Manjunath A Kumatagi 6aa06adcfe Remove storageapi api check 2019-04-09 11:05:38 -04:00
yue9944882 8f601d3413 prune internal client references from test/* 2019-04-09 21:43:55 +08:00
yue9944882 65ba58a9a5 remove internal client dependency in pkg/* 2019-04-09 21:43:51 +08:00
andyzhangx 8d1578370a fix typo in azure disk logging 2019-04-09 09:01:52 +00:00
Kubernetes Prow Robot a93f803f8e
Merge pull request #75501 from Huang-Wei/scheduler-metrics
scheduler: add metrics to record number of pending pods in different queues
2019-04-09 01:09:05 -07:00
madianjun d84a8c563e Improve for-loop in nodesWherePreemptionMightHelp function 2019-04-09 15:24:50 +08:00
Kubernetes Prow Robot 1cca3f9d45
Merge pull request #76215 from liggitt/update-vendored-dependencies
Update vendored dependencies
2019-04-08 23:51:03 -07:00
Kubernetes Prow Robot b8b7ab39ec
Merge pull request #76272 from liggitt/cleanup-legacy-printers
Remove legacy table printing and decoding
2019-04-08 22:31:17 -07:00
Kubernetes Prow Robot db1ab237bf
Merge pull request #76252 from goodluckbot/pod-backoff-rwmutex
Change Mutex to RWMutex for pod backoff
2019-04-08 22:31:04 -07:00
Kubernetes Prow Robot fa9b36de77
Merge pull request #76151 from vladimirvivien/plugin-CanAttach-return-error
Ability for volume AttachablePlugin.CanAttach() to return both bool and error
2019-04-08 20:29:05 -07:00
WanLinghao d0138ca3fe This commit does two things in pkg package:
1. Remove unused ptr functions.
2. Replace ptr functions with k8s.io/utils/pointer
2019-04-09 10:56:35 +08:00
Kubernetes Prow Robot 65dc445aa2
Merge pull request #74241 from snowplayfire/fix-pdb-update
fix too many pdb update operations when nothing change
2019-04-08 18:53:03 -07:00
Wei Huang 63c3a617cd
auto-generated files 2019-04-08 17:51:08 -07:00
Wei Huang 54218a7988
scheduler: add unit test for pending pods metrics 2019-04-08 17:51:08 -07:00
Wei Huang 0806ef2c11
scheduler: refactor testing structures for better reusability 2019-04-08 17:51:08 -07:00
Wei Huang 7afbd68730
add metrics to record number of pending pods in different queues 2019-04-08 17:51:07 -07:00
Kubernetes Prow Robot 4a1da48d11
Merge pull request #76288 from tedyu/master
Produce map according to the shorter array in haveOverlap
2019-04-08 17:27:52 -07:00
Kubernetes Prow Robot 3409a5362a
Merge pull request #76062 from apelisse/rollout-restart
Create `kubectl rollout restart deployment/$deployment` to do a rolling restart
2019-04-08 14:40:44 -07:00
Vladimir Vivien cfafde983b Volume AttachablePlugin.CanAttach() now returns both bool and error 2019-04-08 16:53:22 -04:00
Ted Yu 02e0f9c5fd Produce map according to the shorter array in haveOverlap 2019-04-08 13:22:30 -07:00
Kubernetes Prow Robot 62f5fd4c6c
Merge pull request #75528 from danielvmw/topic/compute-pod-phase
Remove unused variables from computePodPhase
2019-04-08 13:15:49 -07:00
Jordan Liggitt bba9f5e673 Fixup gonum.org/v1/gonum/graph API calls 2019-04-08 15:20:46 -04:00
Dan Williams 63c01133f8 proxy/userspace: add dcbw and danwinship to OWNERS approvers
Per recommendation of @thockin:

https://github.com/kubernetes/kubernetes/pull/71735#pullrequestreview-189515580

---
IMO this code is as dead as it could be. The only significant user is OpenShift as far as I know. I'd rather never touch it again, but I know that is not realistic.

Also, it seems like maybe this could be broken into a couple commits for easier review?

I raised some questions about this design, but I think you should add yourselves as approvers in OWNERS for this subdir. If it evolves, I will lose context on the impl. I don't think it is covered by e2e, either (more argument for breaking it to a separate repo and having its own e2e tests)
---
2019-04-08 12:38:22 -05:00
Kubernetes Prow Robot eb65eacfca
Merge pull request #74855 from mbohlool/sam
Add Port configuration to ServiceReference of Admission webhooks, CRD Conversion Webhooks, AuditSink Webhooks and kube-aggregator
2019-04-08 10:16:26 -07:00
Travis Rhoden 2253807760 Fix pkg/volume/util/nsenter linting errors 2019-04-08 10:43:54 -06:00
Jordan Liggitt c758f0af0a Remove legacy table printing and decoding 2019-04-08 12:31:38 -04:00
Daniel Mueller 9050c510e6 Remove unused variables from computePodPhase
The initialized and failed variables in the computePodPhase function are
effectively write only. Remove them.
2019-04-08 09:09:09 -07:00
Kubernetes Prow Robot c082ace102
Merge pull request #76161 from liggitt/kubectl-watch-table
use server-side printing in `kubectl get -w`
2019-04-08 08:58:48 -07:00
Kubernetes Prow Robot 8f8d9e2c72
Merge pull request #76060 from krzysztof-jastrzebski/master
Delete only unscheduled pods in DaemonSetController if node doesn't exist anymore
2019-04-08 08:58:27 -07:00
Travis Rhoden 1c045a09db Move nsenter mounter to pkg/volume/util/nsenter
As part of moving pkg/util/mount out of tree, the NSEnter implementation
of mount.Interface needs to be relocated out of pkg/util/mount, as it is
K8s specific. This patch relocates that mounter implementation to
pkg/volume/util/nsenter.

Since the NSEnter mounter shares a lot of its logic with the Linux
mounter implementation, many of the previously private methods of the
Linux mounter are now made public to maintain that shared code.

Additionaly, it was observed that *all* mount.Interface implemenations
were using the same common method for IsNotMountPoint, so this patch
removes that method from the mount.Interface definition and just exports
the common implementation instead.
2019-04-08 09:53:46 -06:00
Robert Krawitz 022f7c2cd7 Clean up PR #71617 2019-04-08 10:34:40 -04:00
Johannes M. Scheuermann 80d6b0465e Remove empty metrics.go file and method call
Update bazel code file
2019-04-08 14:49:27 +02:00
yue9944882 9be22b7329 recursively deletes internal clients 2019-04-08 17:46:53 +08:00
Ted Yu 22d19be4ca Use RWMutex for accessing plugins 2019-04-08 01:03:20 -07:00
goodluckbot b92b0eb7c2 Change Mutex to RWMutex for pod backoff 2019-04-08 15:31:48 +08:00
Mehdy Bohlool c1076ba05a Fix API documentation, 'Port' to 'port' 2019-04-08 00:29:04 -07:00
Mehdy Bohlool 864cf3e33a Generated files 2019-04-08 00:29:04 -07:00
Mehdy Bohlool 11f37d757f Add port to ServiceResolvers 2019-04-08 00:19:52 -07:00
Mehdy Bohlool 404e2f7a30 Add port to ServiceReference of Admission Webhooks, ConversionWebhooks and AuditSync with defaulter and validator 2019-04-08 00:18:36 -07:00
jingxueli dfa3353390 fix pdb update too many when nothing change 2019-04-08 11:27:42 +08:00
Wei Huang 8f87f580e5
scheduler: tweak scheduler factory mutex 2019-04-07 16:35:06 -07:00
Wei Huang 28730919a6
scheduler: performance improvement on PodAffinity
- replace unnecessary Lock/Unlock with atomic AddInt64
2019-04-07 14:34:22 -07:00
Manjunath A Kumatagi 485605e133 Fix the TestUpdate 2019-04-07 13:45:45 +05:30
Antoine Pelisse 1bf99e2e4e Create `kubectl rollout restart deployment/$deployment` to do a rolling restart 2019-04-06 21:14:40 -07:00
Ted Yu 4b4c20be7c Use read lock for PendingPods 2019-04-06 13:48:51 -07:00
Kubernetes Prow Robot 9c2df998af
Merge pull request #75820 from YoubingLi/bugfix
Fixes #75706 - Show warning message when namespace is specified for deleting a cluster-scoped resource
2019-04-06 11:00:27 -07:00
Kubernetes Prow Robot 150a501750
Merge pull request #73557 from bsalamat/use_priority_ga
Update usages of PriorityClass to V1
2019-04-06 09:36:27 -07:00
Kubernetes Prow Robot 1ff857e126
Merge pull request #76216 from frankgreco/ensureLoadBalancer-aws-bug
ensuring that logic is checking for differences in listener
2019-04-05 18:06:53 -07:00
Kubernetes Prow Robot 52ec2a0009
Merge pull request #75497 from goodluckbot/remove-backoff-util
Integrate backoff mechanism into the scheduling queue and remove the …
2019-04-05 18:06:41 -07:00
Kubernetes Prow Robot 2c013fa1a8
Merge pull request #75129 from xing-yang/informer
Move CSIDriver Lister to the controller
2019-04-05 18:06:27 -07:00
Kubernetes Prow Robot f3de278f18
Merge pull request #75964 from humblec/more-lnt
Remove some unwanted code blocks in controller_utils.go
2019-04-05 16:46:40 -07:00
Kubernetes Prow Robot eaa506c0b4
Merge pull request #75516 from seans3/interrupt-fix
kubectl: Removes dependency on util/interrupt by copying this code into kubectl
2019-04-05 16:46:29 -07:00
Bobby (Babak) Salamat d6c2a17d88 Update storage version hash data for PriorityClass 2019-04-05 15:30:33 -07:00
Kubernetes Prow Robot deb48e331a
Merge pull request #76189 from soltysh/fix_legacy_podautoscaler
Fix flaky legacy pod autoscaler test
2019-04-05 14:34:05 -07:00
Kubernetes Prow Robot 1cdb4c965a
Merge pull request #74946 from ialidzhikov/clean-ineffectual-assignments
Clean ineffectual assignments
2019-04-05 14:33:53 -07:00
Bobby (Babak) Salamat 16a7cbd320 generated files 2019-04-05 14:30:52 -07:00
Dan Williams cc2b31a2f3 proxy/userspace: consolidate portal and proxy cleanup 2019-04-05 16:28:24 -05:00
Dan Williams 8cf0076e23 proxy/userspace: respect minSyncInterval and simplify locking
The userspace proxy does not have any ratelimiting and when many
services are used will hammer iptables every time a service or
endpoint change occurs. Instead build up a map of changed
services and process all those changes at once instead of each
time an event comes in. This also ensures that no long-running
processing happens in the same call chain as the OnService*
calls as this blocks other handlers attached to the proxy's
parent ServiceConfig object for long periods of time.

Locking can also now be simplified as the only accesses to the
proxy's serviceMap happen from syncProxyRules(). So instead of
locking in many functions just lock once in syncProxyRules()
like the other proxies do.

https://bugzilla.redhat.com/show_bug.cgi?id=1590589
https://bugzilla.redhat.com/show_bug.cgi?id=1689690
2019-04-05 16:28:17 -05:00
Bobby (Babak) Salamat 8574e3e3f4 Use Scheduling V1 API instead of Scheduling v1beta1 2019-04-05 14:21:45 -07:00
GRECO, FRANK ce9c4bf905 ensuring that logic is checking for differences in listener 2019-04-05 14:18:10 -07:00
Dan Williams cf7225f561 proxy/userspace: replace IsServiceIPSet() with ShouldSkipService()
Keeps things consistent with iptables/IPVS proxies. Proxies don't
handle ServiceTypeExternalName even if the ClusterIP is set.
2019-04-05 16:16:36 -05:00
Dan Williams 04b943ce38 proxy/userspace: track initial service/endpoints sync
We'll use this shortly to prevent premature syncing before all
initial endpoints and services have been received from the
apiserver.
2019-04-05 16:16:36 -05:00
Dan Williams ddab79a233 proxy/userspace: add proxy shutdown function and use in testcases
If a testcase does time out and 'go test' prints the call stack,
make sure everything from previous tests is cleaned up so the call
stack is easier to understand.
2019-04-05 16:16:36 -05:00
Dan Williams 4b07f80d20 proxy: consolidate ServicesHandler/EndpointsHandler into ProxyProvider
Proxies should be able to cleanly figure out when endpoints have been synced,
so make all ProxyProviders also implement EndpointsHandler and pass those
through to loadbalancers when required.
2019-04-05 16:16:35 -05:00
Xing Yang 000ab86788 Move CSIDriver Lister to the controller 2019-04-05 12:20:11 -07:00
Kubernetes Prow Robot 4e8dd70234
Merge pull request #76171 from thockin/kube-proxy-iptables-restore-log
Add better logging when iptables-restore fails
2019-04-05 10:21:32 -07:00
goodluckbot 151649df4c Integrate backoff mechanism into the scheduling queue and remove the Backoff util 2019-04-06 00:15:00 +08:00
Humble Chirammal 6eae6bbac5 Use pvc uid in endpoint/service label
If the pvc name is more than 63 chars, the endpoint creation
will fail due to the validation of objectmeta length of fields ie 63 chars at max.
This patch introduce an enhancement where if the pvc name is >=63 the pvc uid
is recorded at label instead of name. To preserve backward compatibility, the pvcname
has been kept in endpoint metadata label if length of pvc name is <63chars.

Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
2019-04-05 20:30:57 +05:30
Kubernetes Prow Robot 223f355ba4
Merge pull request #76162 from nikhita/bump-gengo
Bump gengo to avoid large errors in verify logs
2019-04-05 07:43:32 -07:00
Maciej Szulik bcfd48c29e
Fix flaky legacy pod autoscaler test
The reactor in runTest is set to catch all actions, but eventually it
only handles CreateAction without checking action type which might fail
sometimes when Patch arrives. This fix ensures we handle only the
CreateAction.
2019-04-05 13:20:30 +02:00
Kubernetes Prow Robot a727bddc5e
Merge pull request #75523 from freehan/bug-fix
reconcile pod ready condition when message is not expected
2019-04-04 23:53:19 -07:00
Kubernetes Prow Robot e9ca60bf0d
Merge pull request #76142 from soltysh/fix_createdisk
Fix TestCreateDisk by sorting tags
2019-04-04 22:32:06 -07:00
Jordan Liggitt 53e55d314a Make sorting printer sort tables in place 2019-04-05 01:20:06 -04:00
Jordan Liggitt 7013827309 Stop special-casing tables in kubectl get to print 'No resources found' 2019-04-05 01:20:01 -04:00
Jordan Liggitt 1c3adedf1c Request and handle server-side printing when watching with kubectl 2019-04-05 01:20:01 -04:00
Jordan Liggitt 34e9d80b87 Refactor kubectl table printing for watch
Warn if sorting and watching are requested together
2019-04-05 01:19:57 -04:00
Jordan Liggitt 135d2f197a Add unit test for sort-by table output 2019-04-05 01:19:57 -04:00
Jordan Liggitt a347826b4f Add unit test for empty table results 2019-04-05 01:19:57 -04:00
Jordan Liggitt 959c56d325 Install meta.k8s.io/v1beta1 types into kubectl scheme 2019-04-05 01:19:57 -04:00
Kubernetes Prow Robot 28295b0e78
Merge pull request #76098 from smarterclayton/move_direct_encoder
Move DirectEncoder to runtime, rename, add .WithoutConversion() on CodecFactory
2019-04-04 21:07:55 -07:00
Kubernetes Prow Robot f25fa0e9e1
Merge pull request #75750 from msau42/metrics
Improve volume operation metrics
2019-04-04 17:47:43 -07:00
Kubernetes Prow Robot 529cd2c674
Merge pull request #74649 from draveness/patch-1
fix: typo in stateful_set_control
2019-04-04 17:47:31 -07:00
Kubernetes Prow Robot dc1ff116dc
Merge pull request #74220 from tedyu/master
Aggregate errors for kube runtime GC
2019-04-04 17:47:19 -07:00
Tim Hockin f8a7936894 Add better logging when iptables-restore fails 2019-04-04 16:34:10 -07:00
Nikhita Raghunath 8a6449d16f Update deepcopy files with fixed distinction between 1st and 2nd comment block
Ref: https://github.com/kubernetes/kubernetes/pull/71027
2019-04-05 01:03:12 +05:30
Maciej Szulik 019d16d8b7
Fix TestCreateDisk by sorting tags
Mock requires stable input, and in CreateDisk we invoke buildTags which uses
a map to create tags, which then get converted into an array. This leads to
unstable sorting order which confuses mock. Sorted tags are not needed in
regular code, but are a must in tests.
2019-04-04 17:32:06 +02:00
Kubernetes Prow Robot 4da579b68a
Merge pull request #71049 from booxter/expose-tracker-for-fake-simpleclientset
Expose object tracker for fake clientsets
2019-04-04 08:02:54 -07:00
danielqsj 6d041abba7 remove metrics prober_probe_result 2019-04-04 17:03:11 +08:00
Kubernetes Prow Robot 79a8827c37
Merge pull request #76108 from MrHohn/svc-controller-sync-name
Rename createLoadBalancerIfNeeded() to syncLoadBalancerIfNeeded()
2019-04-04 00:41:27 -07:00
Kubernetes Prow Robot eee8af93ba
Merge pull request #75622 from jonsabo/ssetresync
Remove resync period for sset controller
2019-04-04 00:41:02 -07:00
Kubernetes Prow Robot 4e728efbd6
Merge pull request #76087 from sttts/sttts-fail-feature-gate-errors
Handle feature gate errors
2019-04-03 21:07:24 -07:00
Kubernetes Prow Robot 550ccda7e0
Merge pull request #76072 from ping035627/k8s-190403
Delete unused struct
2019-04-03 21:07:12 -07:00
Clayton Coleman 7f9dfe58f4
Use CodecFactory.WithoutConversion() everywhere
Clarifies that requesting no conversion is part of the codec factory, and
future refactors will make the codec factory less opionated about conversion.
2019-04-03 22:19:13 -04:00
Kubernetes Prow Robot d5b56f4ffc
Merge pull request #75988 from mcrute/add-mcrute-cloudprovider
Add mcrute to cloudprovider related owners files
2019-04-03 14:55:13 -07:00
Zihong Zheng 3e52ea8081 Rename createLoadBalancerIfNeeded() to syncLoadBalancerIfNeeded() to reduce confusion 2019-04-03 14:27:04 -07:00
Michelle Au 33bf81f22a Improve volume operation metrics 2019-04-03 11:59:21 -07:00
Ihar Hrachyshka d68cd8a0c7 Expose object tracker for fake clientsets
Not every object kind can be registered via tracker .Add() called as
part of SimpleClientset initialization. This is because .Add() relies
on UnsafeGuessKindToResource to convert object kinds into resource
type names, which is broken for some resources. An example of an
affected kind is NetworkAttachmentDefinitions CRD that uses
network-attachment-definitions as its resource type name. When
UnsafeGuessKindToResource is called for this kind, it returns
networkattachmentdefinitions (without dashes).

As per the comment inside .Add, kinds affected by
UnsafeGuessKindToResource deficiencies should instead register objects
using tracker .Create() method.  Problem is, current SimpleClientset
struct definition doesn't expose the object tracker in any way, which
makes it impossible to properly register these kinds at all.

To address the issue, this change modifies the definition of
SimpleClientset struct to expose the object tracker used via Tracker()
method.
2019-04-03 11:44:05 -07:00
Kubernetes Prow Robot 66329fcea9
Merge pull request #76049 from codenrhoden/mount-no-k8s-deps
Remove apimachinery dep from mount library
2019-04-03 11:15:02 -07:00
Dr. Stefan Schimanski 37046e3028 Handle feature gate errors 2019-04-03 16:52:05 +02:00
danielqsj 295d672d54 change kubelet probe metrics to counter type 2019-04-03 17:44:17 +08:00
PingWang b43a9d6ad1 Delete unused struct
Signed-off-by: PingWang <wang.ping5@zte.com.cn>
2019-04-03 17:43:42 +08:00
Kubernetes Prow Robot be374388f6
Merge pull request #74941 from cwdsuzhou/fix_pvc_label
Do not replace labels of pvc with those of StastefulSet
2019-04-03 02:05:44 -07:00
Kubernetes Prow Robot 42877480ad
Merge pull request #75747 from msau42/remove-alpha-crd
Remove alpha csi CRD
2019-04-02 22:47:41 -07:00
Krzysztof Jastrzebski 9c142cf47b Delete only unscheduled pods if node doesn't exist anymore. 2019-04-03 00:24:26 +02:00
Travis Rhoden 6e5bf40dd2 Remove apimachinery dep from mount library
As part of wanting to move the mount library into staging and then
k8s.io/utils, there can be no dependencies on k/k code, and that
includes k/apimachinery.

This patch makes a small implementation change to no longer need
k8s.io/apimachinery/pkg/util/sets
2019-04-02 13:49:46 -06:00
qingsenLi 4db2227629 fix typo healty 2019-04-03 03:29:22 +08:00
Kubernetes Prow Robot d99f49d2a7
Merge pull request #76021 from soltysh/fix_create_docs
Fix create secret generic paths examples
2019-04-02 11:49:55 -07:00
Kubernetes Prow Robot 1495fb73d7
Merge pull request #75932 from humblec/validation
Use better variable names in validation.go
2019-04-02 11:49:44 -07:00
Kubernetes Prow Robot c23115dff9
Merge pull request #75903 from juanvallejo/jvallejo/allow-non-fatal-errors-when-fetching-pod-logs
allow for non-fatal errors when requesting and following multiple log streams
2019-04-02 11:49:32 -07:00
Michelle Au d2aa8178f2 Remove alpha CRD install 2019-04-02 10:59:11 -07:00
Kubernetes Prow Robot aa52140928
Merge pull request #75346 from seans3/version-fix
kubectl: removes pkg/version dependency
2019-04-02 10:19:18 -07:00
Kubernetes Prow Robot b1186435eb
Merge pull request #75080 from draveness/feature/get-nodelists-sync-daemonset
fix: list nodes in sync daemonset
2019-04-02 08:22:35 -07:00
Maciej Szulik 0341fa248a
Fix create secret generic paths examples 2019-04-02 13:31:29 +02:00
Kubernetes Prow Robot f83fcbefb6
Merge pull request #76004 from yue9944882/chore/trival-reserving-error-msg
Fixes reversed owner relation in error msg from garbage collector
2019-04-02 03:04:58 -07:00
Kubernetes Prow Robot 2fa5be1633
Merge pull request #75580 from suker200/azure_routetable_rg
Add azure_route support routeTableResourceGroup
2019-04-02 01:36:59 -07:00
Kubernetes Prow Robot 7d15d41eb8
Merge pull request #74159 from dlipovetsky/issue-73249-revise-parsetaint
Update v1.Taint parser to accept the form `key:effect` and `key=:effect-`
2019-04-02 01:36:35 -07:00
Kubernetes Prow Robot 90e9f29bad
Merge pull request #71900 from charrywanganthony/remove-unused-parseAcrToken
remove unused function
2019-04-02 00:14:35 -07:00
draveness 36c535cf42 fix: list nodes in sync daemonset 2019-04-02 13:54:28 +08:00
Kubernetes Prow Robot 42ff0d8517
Merge pull request #75972 from smarterclayton/use_patch
Garbage collector should use a merge patch instead of Update
2019-04-01 22:44:57 -07:00
Youbing Li c438d7b495 Fixes #75706 - Show warning message when namespace is specified for deleting a cluster-scoped resource 2019-04-02 00:49:40 -04:00
yue9944882 0a60d19ebd fixes reversed owner relation in error msg 2019-04-02 12:08:53 +08:00
suker200 a343be245d Add azure_route support routeTableResourceGroup
fix error from pull-kubernetes-verify

fix error from pull-kubernetes-verify azure_routes_test.go file

fix error from pull-kubernetes-verify azure_routes_test.go file with gofmt

remove duplicate comment
2019-04-02 10:33:02 +07:00
Mike Crute 85d72950eb Add mcrute to cloudprovider related owners files 2019-04-01 19:06:34 -07:00
Kubernetes Prow Robot 1ac4cc7980
Merge pull request #75703 from tedyu/master
Simplify the loop for latest start time in pickOneNodeForPreemption
2019-04-01 13:18:58 -07:00
Kubernetes Prow Robot 76b1d83517
Merge pull request #73863 from gnufied/fix-attach-limit-delayed
Fix code to handle delayed binding volumes
2019-04-01 13:18:35 -07:00
juanvallejo ac4eebeeb5 allow for non-fatal errors when requesting and following multiple log streams 2019-04-01 13:05:59 -07:00
Kubernetes Prow Robot e1f3819564
Merge pull request #75772 from tomwans/cronjob-sorting
Avoid panic in cronjob sorting
2019-04-01 10:03:00 -07:00
Kubernetes Prow Robot 46ae77421c
Merge pull request #73041 from giuseppe/fix-logs
kubelet: fix some race conditions with logs -f
2019-04-01 10:02:34 -07:00
Clayton Coleman a63fef26ca
Garbage collector should use a merge patch instead of Update
Fix a TODO in GC controller that blocks using the new
PartialObjectMetadata flow (because we don't support PUT of
PartialObjectMetadata). This patch is equivalent to the previous
mutation.
2019-04-01 11:02:03 -04:00
Humble Chirammal e9d8d0f5a5 Remove some unwanted code blocks in controller_utils.go
Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
2019-04-01 19:20:12 +05:30
Kubernetes Prow Robot 483cd0db09
Merge pull request #75483 from gsadhani/describe-output-fix
Skip smart label in kubectl describe if field has special chars
2019-04-01 04:54:33 -07:00
Humble Chirammal ee9079f8ec Use better variable names in validation.go
Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
2019-04-01 09:43:36 +05:30
Kubernetes Prow Robot 2792f1a24e
Merge pull request #75857 from danielqsj/sc1
support both JSON and YAML for scheduler configuration
2019-03-31 12:36:31 -07:00