Mike Danese
a13b48de94
default api audiences to service account token issuer if available
...
This is a sane default that users can choose to migrate away from later.
2018-10-29 16:40:06 -07:00
k8s-ci-robot
a9406c03a2
Merge pull request #70158 from WanLinghao/desribe_projected_volume_fix
...
Add support for projected volume in describe function
2018-10-29 15:54:10 -07:00
k8s-ci-robot
4c874dbefe
Merge pull request #66367 from cpuguy83/speedup_pidof
...
getPids - don't recursively traverse every dir in /proc
2018-10-29 15:53:41 -07:00
k8s-ci-robot
628e44647f
Merge pull request #70111 from Pingan2017/OOD-node
...
remove OutOfDisk condition in kubelet
2018-10-29 14:38:32 -07:00
Cheng Pan
6013bad90f
Remove unused code in aws cloud provider
2018-10-29 20:30:38 +00:00
k8s-ci-robot
1b593d0f14
Merge pull request #70351 from enj/enj/i/reconciliation_ns_tolerate_forbidden
...
Tolerate lack of namespace permissions in RBAC reconciliation
2018-10-29 13:22:50 -07:00
k8s-ci-robot
d05622bee6
Merge pull request #70325 from islinwb/ipvs_fix
...
add module 'nf_conntrack' in ipvs prerequisite check
2018-10-29 12:08:22 -07:00
k8s-ci-robot
c89d2cb966
Merge pull request #70217 from yue9944882/prune-internal-informer-lister-from-kk
...
Prune all kubeapiserver internal informer/lister codes from k/k
2018-10-29 12:08:12 -07:00
walter
735ad9ed63
Fixed lint errors for pkg/cloudprovider/providers/gce.
...
Fixed minor issues.
Cleaned up from merge errors.
2018-10-29 11:52:24 -07:00
Samuel Davidson
3558f83957
Revert "Improve multi-authorizer errors"
...
This reverts commit 1c012f1c49
.
2018-10-29 11:05:45 -07:00
k8s-ci-robot
a8934ff6fb
Merge pull request #70353 from feiskyer/metadata-cache
...
Improve Azure instance metadata handling
2018-10-29 10:53:00 -07:00
k8s-ci-robot
660794fc83
Merge pull request #70155 from pahud/patch-1
...
Update regions.go
2018-10-29 10:52:50 -07:00
Michael Adam
870bf314fe
glusterfs: remove a redundant comment
...
This comment exactly states what the line below it does.
There's no point in keeping it.
Signed-off-by: Michael Adam <obnox@redhat.com>
2018-10-29 17:07:08 +01:00
Michael Adam
465bb06533
glusterfs: improve a comment block
...
moving it to the function it explains and
rewording slightly.
Signed-off-by: Michael Adam <obnox@redhat.com>
2018-10-29 17:07:08 +01:00
k8s-ci-robot
fb6716e83c
Merge pull request #67495 from islinwb/policy_psp
...
use PodSecurityPolicySpec of policy/v1beta1 instead of extensions/v1beta1
2018-10-29 08:31:15 -07:00
Monis Khan
543dcb6de5
Tolerate lack of namespace permissions in RBAC reconciliation
...
This change updates the RBAC reconciliation logic to not fail if the
user does not have the ability to create namespaces. Thus if the
namespace already exists, the user only needs to pass the standard
escalation check for RBAC roles and role bindings.
Signed-off-by: Monis Khan <mkhan@redhat.com>
2018-10-29 11:30:04 -04:00
k8s-ci-robot
eb1aa875b4
Merge pull request #70286 from humblec/pvc-uuid
...
Use pvc uid instead of pvc name in glusterfs endpoint name.
2018-10-29 05:30:38 -07:00
k8s-ci-robot
6c13a47044
Merge pull request #68461 from stewart-yu/stewart-componentconfig-clodeclean
...
Add kube-controller manager API round trip test
2018-10-29 02:57:25 -07:00
Pengfei Ni
3cea6dc954
Improve Azure instance metadata handling
2018-10-29 13:05:03 +08:00
WanLinghao
240e214048
Add support for projected volume in describe function
2018-10-29 13:00:14 +08:00
zuoxiu.jm
efeec1edee
remove internal informer/lister generator
2018-10-29 11:37:55 +08:00
zuoxiu.jm
7f608eb5df
prune internal informer from kubeapiserver constructor
2018-10-29 11:30:44 +08:00
zhangmingld
429e67a12f
duplicated glog.V(10) when had a if glog.V(10)
2018-10-29 11:30:16 +08:00
zuoxiu.jm
f771712be3
delete internal informer/lister
2018-10-29 11:28:17 +08:00
He Xiaoxi
12634bf136
Refactor scheduler_test.go to use Clientset
...
Signed-off-by: He Xiaoxi <xxhe@alauda.io>
2018-10-29 09:51:07 +08:00
Weibin Lin
95d379021b
add module 'nf_conntrack' in ipvs prerequisite check
2018-10-27 16:40:38 +08:00
Deep Debroy
5da66fd65f
Address code review comments
...
Signed-off-by: Deep Debroy <ddebroy@docker.com>
2018-10-27 00:31:16 -07:00
Jordan Liggitt
57df11bc0f
Switch kubectl rollout to directly rolling back deployments
2018-10-26 23:48:44 -04:00
k8s-ci-robot
a3eebe9a17
Merge pull request #70298 from bsalamat/deprecate_critical_pod
...
Deprecate critical pod annotation
2018-10-26 20:24:07 -07:00
k8s-ci-robot
7b5705c619
Merge pull request #70203 from ravisantoshgudimetla/fix-e2e-resource-limits
...
Fix e2e resource limits
2018-10-26 19:13:41 -07:00
k8s-ci-robot
95613765e4
Merge pull request #70114 from mikedanese/svcacctscale
...
scale test service account token projection in kubemark
2018-10-26 17:58:01 -07:00
k8s-ci-robot
1df4f8eaf6
Merge pull request #70028 from liggitt/move-extensions-types
...
move internal apps API types out of extensions package
2018-10-26 15:56:13 -07:00
k8s-ci-robot
117c6177c4
Merge pull request #70278 from jhvhs/master
...
Documentation re-formatting
2018-10-26 13:32:00 -07:00
k8s-ci-robot
5e45a10351
Merge pull request #70268 from Pingan2017/ep-storage-display
...
display EphemeralStorage usage with kubectl describe node
2018-10-26 12:22:39 -07:00
k8s-ci-robot
b104eac566
Merge pull request #67133 from yue9944882/refactor/admission-config-complete-new-flow
...
Refactor admission controller contructor with Config.Complete.New flow
2018-10-26 12:22:01 -07:00
Bobby (Babak) Salamat
16f3351619
Deprecate critical pod annotation
2018-10-26 11:44:43 -07:00
ravisantoshgudimetla
fad6b326e3
Fix default algorithm provider priority insertion
2018-10-26 13:48:44 -04:00
k8s-ci-robot
a932475bfe
Merge pull request #70288 from soltysh/fix_deprecate_msg
...
Update deprecation warning for kubectl run
2018-10-26 10:09:12 -07:00
Mike Danese
7613482623
scale test service account token projection in kubemark
2018-10-26 09:57:56 -07:00
qingsenLi
ca74d32e4c
fix golint for /pkg/util/ipconfig and /pkg/util/resourcecontainer-2
2018-10-26 23:58:30 +08:00
Humble Chirammal
a6759a7b22
Fix a typo in source code comment
...
Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
2018-10-26 20:01:19 +05:30
Humble Chirammal
5bd0b5d841
GlusterFS: Use pvc uid instead of pvc name in glusterfs endpoint name.
...
At present, endpoints and services are created
for glusterfs pvcs are in form of glusterfs-dynamic-<PVC name>
however this could cause issue if user deletes a PVC and immediately
creates a new one with the same name, PV controller will try to delete
the old PV and its endpoint and at the same the controller will try to create new PV
and the same endpoint. Depending on which event reaches the
controller first, it may create new PV, check that endpoints exists,
then delete the old PVC and delete endpoints already used by the new PV.
This patch changes the endpoint/service name to below format:
`glusterfs-dynamic-<PVC UUID>`.
By the uniqueness of UUID, above mentioned issue will no longer be present.
Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
2018-10-26 20:00:02 +05:30
Maciej Szulik
fdcd6de9c0
Update deprecation warning for kubectl run
2018-10-26 16:22:33 +02:00
k8s-ci-robot
7147138994
Merge pull request #70252 from nckturner/add-regions
...
Add regions ap-northeast-3 and eu-west-3 to AWS cloud provider
2018-10-26 06:57:38 -07:00
Konstantin Semenov
84ba7e8f69
Documentation re-formatting
...
The closing bracket in the link was automatically included in the link HREF.
Myself and @lurraca used standard markdown formatting to prevent that from happening.
2018-10-26 11:32:36 +01:00
Deep Debroy
119e2a1d43
Address CR comments and add more tests
...
Signed-off-by: Deep Debroy <ddebroy@docker.com>
2018-10-26 00:29:27 -07:00
yue9944882
6a8faa6e40
replace contrustor of ad controller with config.complete.new flow
...
review:
1. import order
2. only set nil field on complete
3. replace hardcoded default namespace
2018-10-26 11:49:37 +08:00
Pingan2017
4d984b3bbf
display EphemeralStorage usage with kubectl describe node
2018-10-26 10:22:36 +08:00
zhangmingld
cbfaf3856f
fix typo in predicates_test.go
2018-10-26 09:59:40 +08:00
Jordan Liggitt
572dfe6cb7
generated files
2018-10-25 21:12:57 -04:00
Jordan Liggitt
1f000bf321
Update daemonset fixture to match apps/v1 defaulting behavior
2018-10-25 21:12:57 -04:00
Jordan Liggitt
d0577ace6b
fixup extensions->apps references
2018-10-25 21:12:57 -04:00
Jordan Liggitt
b502bc093c
stop generating GetScale/UpdateScale for internal clients
2018-10-25 21:12:57 -04:00
Jordan Liggitt
dda0a68521
Change registration and custom conversion from extensions to apps
2018-10-25 21:12:57 -04:00
Jordan Liggitt
8a43e52d18
Move fuzzing from extensions to apps
2018-10-25 21:11:52 -04:00
Jordan Liggitt
283e282515
Move extensions validation to apps
2018-10-25 21:11:52 -04:00
Jordan Liggitt
4e980bbf08
Move extensions types to apps
2018-10-25 21:11:52 -04:00
Jordan Liggitt
7df2f9785e
remove CustomMetricTarget
2018-10-25 21:11:52 -04:00
k8s-ci-robot
ebace7718a
Merge pull request #70099 from grayluck/five-sec-hc
...
Change GCE LB health check interval from 2s to 8s
2018-10-25 14:03:07 -07:00
Deep Debroy
2e19f70922
Improve comments for when hostPath in Windows needs to be transformed
...
Signed-off-by: Deep Debroy <ddebroy@docker.com>
2018-10-25 13:58:16 -07:00
Nick Turner
e30718f139
Add regions ap-northeast-3 and eu-west-3
2018-10-25 11:55:21 -07:00
k8s-ci-robot
b6fd5d93b2
Merge pull request #69389 from smarterclayton/wait_error
...
kubectl wait must handle errors returned by watch
2018-10-25 09:40:41 -07:00
stewart-yu
7198d0ccb0
auto-generated file
2018-10-25 17:31:47 +08:00
stewart-yu
3b978b3cea
add kube-controller manager round trip test
2018-10-25 17:31:47 +08:00
yankaiz
40ab479f06
Change GCE LB health check interval from 2s to 8s, unhealthyThreashold to 3
...
Force ELB to ensureHealthCheck when target pool exists.
Add e2e test to ensure that HC interval will be reconciled when
kube-controller-manager restarts.
Health checks with bigger thresholds and larger intervals will not be reconciled.
Add unittest for ILB and ELB to ensure HC reconciles and is configurable.
2018-10-24 17:55:26 -07:00
Kim Min
79599ac419
Prune internal clientset/informer from kubeapiserver admission initializer ( #70167 )
...
* externalize pv resize admission controller
* externalize podtolerationrestriction admission controller
* externalize podnodeselector admission controller
* remove internal clientset/informer from kubeapiserver admission initializer
* minor change: fixes scheduler integration test compiliation
2018-10-24 14:47:16 -07:00
Aniket Kulkarni
75350d11e9
adding support for expanding in use persistent volumes for Flex
2018-10-24 15:31:16 -04:00
k8s-ci-robot
3abb9f0ad7
Merge pull request #70002 from andyzhangx/getdisklun
...
fix azure disk attachment error on Linux
2018-10-24 10:53:51 -07:00
k8s-ci-robot
3ed36eac28
Merge pull request #70171 from mysunshine92/remove-kubeClient
...
remove kubeClient != nil when using glog.Fatalf
2018-10-24 06:00:09 -07:00
yameiwang
de36fc8f4b
remove kubeClient != nil when using glog.Fatalf
2018-10-24 21:48:06 +08:00
k8s-ci-robot
3b5d2e865e
Merge pull request #68436 from Nordix/issue-67799
...
Create ipsets with family inet6 in an ipv6-only cluster
2018-10-24 02:16:11 -07:00
Lv Jiawei
06a3391b0c
Replace resyncTicker with syncTicker in commenting
...
The variable resyncTicker in commenting is out of date. It is replaced with syncTicker.
2018-10-24 10:47:55 +08:00
k8s-ci-robot
0d17976413
Merge pull request #70076 from feiskyer/named-port
...
Fix service targetPort with string for Windows
2018-10-23 19:43:10 -07:00
Pahud Hsieh
e5bb62e97d
Update regions.go
...
add cn-northwest-1 for AWS China Ningxia region
https://docs.aws.amazon.com/en_us/general/latest/gr/rande.html
2018-10-24 10:02:08 +08:00
k8s-ci-robot
3905fb6696
Merge pull request #70135 from marc-sensenich/gh-70126/azure-is-node-unmanaged-fix
...
Correct regexp check in IsNodeUnmanagedByProvider
2018-10-23 18:07:28 -07:00
k8s-ci-robot
c0974d7399
Merge pull request #69516 from feiskyer/win-npipe
...
Switch windows runtime endpoints to npipe
2018-10-23 16:44:41 -07:00
k8s-ci-robot
e7e6c8a95c
Merge pull request #68544 from tanshanshan/lint912-2
...
fix golint for pkg/util/dbus, node, strings, workqueue/prometheus
2018-10-23 16:44:31 -07:00
Yongkun Gui
b573cce595
cni: rate and limit must be both set
...
Fix #70014
2018-10-23 16:44:07 -07:00
k8s-ci-robot
fd708318d7
Merge pull request #69822 from tallclair/owners
...
Add pkg/probe/OWNERS
2018-10-23 15:32:05 -07:00
k8s-ci-robot
dad07683b1
Merge pull request #69013 from ibrasho-forks/switch-to-http.Error
...
Update usages of http.ResponseWriter.WriteHeader to use http.Error
2018-10-23 15:31:55 -07:00
k8s-ci-robot
1fe288ec02
Merge pull request #70138 from liggitt/optional-ca-bundle
...
Correct optional/omitempty indicator on webhook cabundle
2018-10-23 13:52:38 -07:00
k8s-ci-robot
101d26c613
Merge pull request #59529 from wackxu/addmetricvol
...
Add metrics for volume scheduling operations
2018-10-23 13:52:29 -07:00
k8s-ci-robot
753dfbe8fd
Merge pull request #69685 from yue9944882/externalize-psp-admission-controller
...
Externalize PSP admission controller
2018-10-23 12:29:38 -07:00
k8s-ci-robot
f827a98257
Merge pull request #69596 from logicalhan/abac-lint
...
fix lint issues in the apis/abac directory (except latest.go)
2018-10-23 11:17:31 -07:00
Jordan Liggitt
d00906f44e
Fix omitempty/optional indicator on CABundle fields
2018-10-23 13:50:03 -04:00
Marc Sensenich
0bcbfca9cd
Correct regexp check in IsNodeUnmanagedByProvider
...
The IsNodeUnmanagedByProviderID function in the Azure Cloud Provider should
return the inverse of regexp.Match in the case of checking the ProviderID
2018-10-23 16:26:00 +00:00
yue9944882
e2c61169b1
externalize psp admission controller
2018-10-24 00:22:07 +08:00
wackxu
d5edcd3dc3
Add metrics to volume scheduling operations
2018-10-23 20:59:12 +08:00
k8s-ci-robot
327a2bb871
Merge pull request #70045 from mysunshine92/wym
...
nodeController should send events to api server and print to the logging
2018-10-23 05:56:53 -07:00
yameiwang
f4713d43c3
nodeController should send events to api server when nodeController eviction happens
2018-10-24 00:42:38 +08:00
k8s-ci-robot
577d0a382e
Merge pull request #70106 from mikedanese/trev4
...
use more specific authenticator.Audiences type in TokenRequest registry
2018-10-23 03:20:54 -07:00
houjun
9a84e413fc
Fix missing 'break'
2018-10-23 17:14:05 +08:00
k8s-ci-robot
322d0df3d2
Merge pull request #70053 from gman0/fix-csiclient-lock
...
CSI client: added missing lock when reading from csiDrivers
2018-10-23 02:08:32 -07:00
Mike Danese
bcd492e86e
use more specific authenticator.Audiences type in TokenRequest registry
2018-10-23 00:16:17 -07:00
k8s-ci-robot
4d182cec03
Merge pull request #70105 from mikedanese/trev1
...
promote --service-account-api-audiences to top level kube-apiserver config
2018-10-22 23:59:34 -07:00
k8s-ci-robot
e77e8ffbf5
Merge pull request #69730 from xichengliudui/fix18101204
...
Fix some typo
2018-10-22 23:59:24 -07:00
k8s-ci-robot
fcf11b47fc
Merge pull request #69677 from knightXun/patch-8
...
remove unnecessary time type
2018-10-22 23:59:14 -07:00
k8s-ci-robot
baa8d800ad
Merge pull request #69582 from mikedanese/trev7
...
tokenreview: authenticator interface changes
2018-10-22 23:59:04 -07:00
k8s-ci-robot
dbdcb7e053
Merge pull request #70072 from yue9944882/chore/cleanup-serviceaccount-controller-options
...
Fixes wild serviceaccount controller resync options
2018-10-22 21:18:48 -07:00
Pingan2017
36997bae77
remove OutOfDisk condition in kubelet
2018-10-23 11:01:26 +08:00
k8s-ci-robot
b3d10d044f
Merge pull request #69988 from bradhoekstra/fix-69445
...
Set the default for EnableServiceLinks only in Pod
2018-10-22 19:44:20 -07:00
WanLinghao
060f3a84d9
trivial fix
2018-10-23 10:23:31 +08:00
k8s-ci-robot
2f9b65143e
Merge pull request #69946 from mateuszmatejczyk/annotation
...
Add EndpointsLastTriggerTime annotation.
2018-10-22 18:28:47 -07:00
k8s-ci-robot
91ac9d50fa
Merge pull request #69371 from pivotal-k8s/fix-well-tested-fake
...
Add tests for `csiDriverClient`
2018-10-22 18:28:37 -07:00
Mike Danese
371b1e7fed
promote --service-account-api-audiences to top level kube-apiserver config
...
The service account authenticator isn't the only authenticator that
should respect API audience. The authentication config structure should
reflect that.
2018-10-22 18:21:37 -07:00
k8s-ci-robot
1af393d58e
Merge pull request #69866 from xichengliudui/fix181016
...
Remove duplicate words
2018-10-22 15:35:36 -07:00
Matt Matejczyk
6ffd88aeda
Update the doc to say that we will use RFC 3339 format to store the timestamp.
2018-10-22 15:47:09 -04:00
Matt Matejczyk
8014d73345
Merge branch 'master' of https://github.com/kubernetes/kubernetes into annotation
2018-10-22 14:25:08 -04:00
Matt Matejczyk
f005ea8976
Make it clear that the timestamp is a unix time in millis.
2018-10-22 14:14:58 -04:00
Mike Danese
e5227216c0
rebase authenticators onto new interface.
2018-10-22 10:16:59 -07:00
Pengfei Ni
053b71d5d2
Switch windows runtime endpoints to npipe
2018-10-22 21:28:36 +08:00
Pengfei Ni
4b7a502c07
Fix service targetPort with string for Windows
2018-10-22 15:17:27 +08:00
zuoxiu.jm
4624c1319c
fixes wild serviceaccount controller options
2018-10-22 13:13:02 +08:00
andyzhangx
f69068753a
improve azure disk attachment perf on Linux
...
use new getDiskLUN func in linux
2018-10-22 02:24:15 +00:00
WanLinghao
7df1078d6f
Currently, kubelet token mamanger only clean tokens who are expired. For tokens with long expiration, if the pod who creates them got killed or evicted, those tokens may stay in kubelet's memory until they are expired. It's bad for kubelet and node itself. After this patch, each time a pod was deleted, token manager would clean related tokens.
2018-10-22 09:32:59 +08:00
gman
571ad40fa1
CSI client: added missing lock when reading from csiDrivers
2018-10-20 22:43:17 +02:00
andrewsykim
3521ebd1e7
pass in stopCh for GCE cluster ID controller
2018-10-19 17:51:58 -04:00
andrewsykim
2908174517
pass in stopCh to cloud provider Initialize method for custom controllers
2018-10-19 17:51:58 -04:00
Matt Matejczyk
d99b68a6e2
Update annotation name and documentation.
2018-10-19 16:57:49 -04:00
Matt Matejczyk
536cee71b4
Merge branch 'master' into annotation
2018-10-19 13:54:06 -04:00
Matt Matejczyk
4cdab7c985
Rename and update the doc.
2018-10-19 13:11:56 -04:00
Matt Matejczyk
7f7a4590b9
Specify in the documentation that the timestamp will be expressed in milliseconds.
2018-10-19 12:19:02 -04:00
k8s-ci-robot
37cb88efd2
Merge pull request #70012 from andyzhangx/azuredisk-logging
...
add more logging for azure disk diagnostics
2018-10-19 07:18:19 -07:00
k8s-ci-robot
34196ac946
Merge pull request #69692 from seans3/deployment-util-fix
...
kubectl: copy deployment util dependency into kubectl
2018-10-19 06:07:40 -07:00
andyzhangx
79a5bb6216
add more logging for azure disk diagnostics
2018-10-19 08:11:49 +00:00
k8s-ci-robot
3d4cc707a2
Merge pull request #69454 from zetaab/fix_aws_node_delete
...
delete node from aws if it is terminated
2018-10-19 00:10:22 -07:00
k8s-ci-robot
d8f9b5b668
Merge pull request #69958 from Pingan2017/cleanup-kubectl-delete
...
remove unneed if block for kubectl delete command
2018-10-18 19:50:53 -07:00
k8s-ci-robot
85e460e362
Merge pull request #69809 from sc14aec/create-context-error-messages
...
Fix error messages suggesting invalid flag
2018-10-18 19:50:43 -07:00
k8s-ci-robot
34db40fbf5
Merge pull request #67930 from AdamDang/patch-15
...
Fix the returned messaged: statefullset->statefulset
2018-10-18 18:39:03 -07:00
k8s-ci-robot
4339a70dfa
Merge pull request #68841 from krzysztof-jastrzebski/cpuandmemeory2
...
Optimizes calculating stats when only CPU and Memory stats are returned from Kubelet stats/summary http endpoint.
2018-10-18 16:41:07 -07:00
k8s-ci-robot
007ad9179c
Merge pull request #69760 from Pingan2017/validate-args
...
validate args for kubectl api-versions/api-resources command
2018-10-18 14:44:00 -07:00
k8s-ci-robot
00dd32b167
Merge pull request #69573 from bjhaid/master
...
Opt out of chowning and chmoding from kubectl cp.
2018-10-18 14:43:49 -07:00
Sean Sullivan
ffd4ea963d
kubectl: copy deployment util dependency into kubectl
2018-10-18 12:02:39 -07:00
Brad Hoekstra
409a48ef91
Set the default for EnableServiceLinks only in Pod
2018-10-18 13:44:21 -04:00
k8s-ci-robot
4d66eeb922
Merge pull request #69709 from seans3/kubectl-translate-fix
...
kubectl: move translated data into kubectl
2018-10-18 10:25:18 -07:00
Han Kang
56cd8ecf08
fix lint issues in the apis/abac directory (except latest.go)
2018-10-18 09:05:04 -07:00
bjhaid
44bed94f0e
Opt out of chowning and chmoding from kubectl cp.
...
`kubectl cp` relies on tar to extract the copied file/directory in the
container, tar by default attempts to chown/chmod the extracted file
after extraction if the user is the "superuser"(root)
```
--same-owner
try extracting files with the same ownership as exists in the archive
(default for superuser)
-p, --preserve-permissions, --same-permissions
extract information about file permissions (default for superuser)
```
This fails in environment where the container runs as root but is not
granted the OWNER or CHOWN capability.
Before this patch below was the behavior of `kubectl cp`
```
kubectl cp README.md foo-67b6fcbd4c-qjlt6:/tmp
tar: README.md: Cannot change ownership to uid 1000, gid 1000: Operation
not permitted
tar: Exiting with failure status due to previous errors
command terminated with exit code 2
kubectl exec -it foo-67b6fcbd4c-qjlt6 -- ls -l /tmp/README.md
-rw------- 1 1000 1000 3179 Oct 7 22:00 /tmp/README.md
```
After this patch
```
kubectl cp -x a foo-67b6fcbd4c-qjlt6:/
kubectl exec -it foo-67b6fcbd4c-qjlt6 -- ls -l /tmp/README.md
-rw-r--r-- 1 root root 3179 Oct 7 22:00 /tmp/README.md
```
2018-10-18 14:16:06 +00:00
k8s-ci-robot
d425258532
Merge pull request #69788 from ravisantoshgudimetla/taint-based-eviction
...
Add test cases for taintbasedevictions
2018-10-18 06:34:31 -07:00
Matt Matejczyk
803ee8426d
Add EndpointsLastTriggerTime annotation.
2018-10-18 09:25:27 -04:00
k8s-ci-robot
b5c25728ec
Merge pull request #69718 from andyzhangx/azurefile-premium
...
support Azure premium file for azure file plugin
2018-10-18 05:18:50 -07:00
k8s-ci-robot
060ecb8837
Merge pull request #69936 from seans3/describe-fix
...
kubectl: remove internalclientset dependency
2018-10-17 22:25:49 -07:00
k8s-ci-robot
7a53a075e4
Merge pull request #69824 from Huang-Wei/enable-TaintBasedEvictions
...
promote TaintBasedEvictions featuregate to beta
2018-10-17 21:04:04 -07:00
Pingan2017
797f0ac660
remove unneed if block for kubectl delete command
2018-10-18 11:33:45 +08:00
k8s-ci-robot
aad6437aa9
Merge pull request #64061 from wgliang/master.remove-unused-code-pkg-controller
...
remove unused code of (pkg/controller)
2018-10-17 19:54:05 -07:00
Weibin Lin
e81776b140
update bazel
2018-10-18 10:18:15 +08:00
Weibin Lin
d02e3bd780
use PodSecurityPolicySpec of policy/v1beta1 instead of extensions/v1beta1
2018-10-18 10:18:13 +08:00
k8s-ci-robot
6f4b768c94
Merge pull request #65350 from liggitt/simplify-taint-manager-key
...
Simplify taint manager workqueue keys
2018-10-17 18:39:03 -07:00
k8s-ci-robot
feb6475a30
Merge pull request #68952 from grayluck/node-cidr-size
...
Skip node cidr mask size check for cloud allocation
2018-10-17 16:19:49 -07:00
k8s-ci-robot
0652e098d0
Merge pull request #67547 from pbarker/audit-api
...
dynamic audit configuration api
2018-10-17 16:19:39 -07:00
k8s-ci-robot
bc79dcfd05
Merge pull request #69933 from wangzhen127/fix
...
Put node lease lister behind feature gate
2018-10-17 13:42:12 -07:00
k8s-ci-robot
30a06af453
Merge pull request #69671 from mooncak/fix_kubelet
...
Delete duplicated words in logs
2018-10-17 11:57:12 -07:00
k8s-ci-robot
897b3a9fa7
Merge pull request #69437 from ravisantoshgudimetla/promote-resource-limits-priority-function
...
Promote resource limits priority function to beta
2018-10-17 11:57:02 -07:00
k8s-ci-robot
1669277bb3
Merge pull request #68350 from wgliang/fixbug/recursive-call-cloudprovider
...
fix bug, infinite recursive call of GetLoadBalancerName()
2018-10-17 11:56:51 -07:00
k8s-ci-robot
e85cb406eb
Merge pull request #65567 from ceshihao/pod_status_after_eviction
...
Pod status should contain ContainerStatuses if deadline exceeded
2018-10-17 11:56:41 -07:00
k8s-ci-robot
7c17beb639
Merge pull request #65477 from pusher/fix-client-ca-hook
...
Minimize writes to the client CA ConfigMap during API server start up
2018-10-17 11:56:30 -07:00
yankaiz
e3121c1f81
Skip node cidr mask size check for cloud allocation.
...
Unittest added for node_ipan_controller.go.
2018-10-17 11:29:49 -07:00
Sean Sullivan
b7f8369da2
kubectl: move translated data into kubectl
2018-10-17 10:34:21 -07:00
Sean Sullivan
a76b6ee56a
kubectl: remove internalclientset dependency
2018-10-17 10:23:55 -07:00
Zhen Wang
7bb61c566d
Put node lease lister behind feature gate
2018-10-17 09:41:30 -07:00
Jordan Liggitt
9503c64f27
Simplify taint manager workqueue keys
2018-10-17 10:47:14 -04:00
k8s-ci-robot
0d6f6a680b
Merge pull request #68441 from smarterclayton/describe_dependency
...
Move versioned generators into their own package
2018-10-17 04:24:06 -07:00
Renan Gonçalves
5cd3c00dba
Combine creating a volume and applying tags in one operation
...
The previous version forced us to create AWS IAM Policies that are too
permissive when dealing with volumes. That's because:
1. Volumes were created without tags that identifies the new resource as
managed by the cluster. So technically the resourse, at creation time,
is not owned by the cluster.
2. Tags were added to the volume making the resource now managed by the
cluster. The problem being that it could make ANY volume as managed by the
cluster. Thus allowing resources that aren't really part of the cluster,
or part of no cluster at all, to become a resource managed by the cluster.
By combining the operations we can both make the code simpler, since we
don't need to deal with deleting a volume in case we can't apply tags to
it, plus the security model gets a nice improvement.
2018-10-17 11:14:01 +02:00
k8s-ci-robot
ec87d22dea
Merge pull request #66057 from xujieasd/cleanLeacyBindAddr-test
...
add UT code for cleanLegacyBindAddr
2018-10-17 01:22:05 -07:00
Jesse Haka
5ff99a2a58
delete node from aws if it is terminated
...
fix comment
2018-10-17 10:11:09 +03:00
k8s-ci-robot
a3e6c3c0a0
Merge pull request #69900 from php-coder/update_owners_files
...
Remove myself from OWNERS files
2018-10-17 00:04:27 -07:00
k8s-ci-robot
ce7e7e3c34
Merge pull request #68656 from smarterclayton/correct_cordon_errors
...
Consistently print errors to stderr and add newlines to cordon
2018-10-16 22:10:44 -07:00
andyzhangx
bc2c79a43a
add azure premium file support
...
update bazel and fix goftm
use defaultStorageAccountKind
fix test failure
update godep license file
fix staging godeps issue
update staging godeps
fix comments, use one API call for file creation
2018-10-17 03:27:29 +00:00
xujieasd
4eab9406fa
add UT code for cleanLegacyBindAddr
...
gofmt modify
change api to v1
2018-10-17 11:04:26 +08:00
k8s-ci-robot
c585d13e36
Merge pull request #69854 from andyzhangx/azurefile-permission
...
change default azure file mount permission to 0777
2018-10-16 19:26:25 -07:00
k8s-ci-robot
31438712d6
Merge pull request #69269 from miguelbernadi/fix-golint-issues-68026
...
Fix undocumented golint errors
2018-10-16 19:25:56 -07:00
tanshanshan
0ecff590bb
fix golint for some of pkg/util
2018-10-17 10:11:49 +08:00
k8s-ci-robot
5a0220a6d8
Merge pull request #69387 from mcrute/master
...
fix golint for pkg/cloudprovider/providers/aws
2018-10-16 17:53:02 -07:00
k8s-ci-robot
1d3d1e8968
Merge pull request #68518 from leakingtapan/golint-fix-volume-empty-dir
...
fix golint issues for pkg/volume/empty_dir
2018-10-16 17:52:44 -07:00
ravisantoshgudimetla
d281d566b3
Add test cases for taintbasedevictions
2018-10-16 18:56:45 -04:00
Miguel Bernabeu
acf78cd613
Fix golint errors when generating informer code
2018-10-17 00:25:28 +02:00
Slava Semushin
14c969b604
Remove myself from OWNERS files.
2018-10-16 22:47:44 +01:00
k8s-ci-robot
ef195428a0
Merge pull request #69790 from WanLinghao/clean_packages
...
clean all unused packages under pkg/util
2018-10-16 13:02:01 -07:00
Clayton Coleman
5a8afa073f
Dynamic client watchers should be able to handle ERROR gracefully
...
Watch can return type "ERROR" and a metav1.Status object. We need to
handle that during wait, and make it easy to handle the status object.
2018-10-16 12:55:23 -04:00
Clayton Coleman
c21774e9de
Remove defaulting from test that uses kubectl.Scheme
...
The dependency on printers/internalversion was causing kubectl/scheme
to have defaulters registered, which should not be the case. Remove
defaults from the test.
2018-10-16 12:54:41 -04:00
Clayton Coleman
defd8713ac
Fix govet errors in generators
2018-10-16 12:54:40 -04:00
Clayton Coleman
9f5c2aea1a
Cut a dependency between kubectl and the rest of the repo
...
The types referenced in credentialprovider are part of a long term api
and will not change, and kubectl doesn't need to take a dependency on this
package in order to do minimal validation here.
2018-10-16 12:54:40 -04:00
Clayton Coleman
5e905f1f5f
Move versioned generators into their own package
...
pkg/kubectl has a lot of files. Move everything generator related
into pkg/kubectl/generate (generic) or pkg/kubectl/generate/versioned
(type specific).
Move the DescriberFn and GeneratorFn out of kubectl/cmd/util and into
the respective versioned packages, along with tests.
2018-10-16 12:54:40 -04:00
ravisantoshgudimetla
e44f29af13
Promote resource limits priority functions to beta
2018-10-16 12:28:09 -04:00
Clayton Coleman
c291d3d7ed
Consistently print errors to stderr and add newlines to cordon
2018-10-16 11:16:15 -04:00
Patrick Barker
b8e1250487
adds dynamic audit api generated
2018-10-16 13:07:27 +00:00
Patrick Barker
381d0a5d14
adds dynamic audit api
2018-10-16 06:46:34 -06:00
Pingan2017
2b2d8ba8c1
validte args for kubectl api-versions/api-resources
2018-10-16 19:22:17 +08:00
andyzhangx
ccac3a51f3
change azure file mount permission to 0777
2018-10-16 07:51:05 +00:00
k8s-ci-robot
cf3a930938
Merge pull request #69607 from mikedanese/audctx
...
tokenreview: add APIAudiences config to generic API server and augment context
2018-10-15 19:03:43 -07:00
k8s-ci-robot
c1c718e5ab
Merge pull request #69746 from seans3/printers-fix
...
kubectl: update to use correct printers package
2018-10-15 15:04:42 -07:00
k8s-ci-robot
2f8b585d9c
Merge pull request #69330 from vaikas-google/json-patch
...
Add support for JSON patch in fake client
2018-10-15 15:04:32 -07:00
k8s-ci-robot
5bd5c4e61a
Merge pull request #69791 from stepyu/master
...
fix comments
2018-10-15 13:53:10 -07:00
stepyu
6ac518e0df
fix comments
2018-10-16 10:55:54 +08:00
k8s-ci-robot
d54e0fc0bc
Merge pull request #69670 from atlassian/simplify-rand-seed
...
Simplify rand seeding
2018-10-15 13:53:01 -07:00
k8s-ci-robot
c68ee22156
Merge pull request #69613 from Pingan2017/runtimeError
...
improve err msg for runtimeError when the uptime of runtime never update
2018-10-15 13:52:51 -07:00
k8s-ci-robot
060218a862
Merge pull request #69412 from tossmilestone/scheduler-factory-test
...
Refactor scheduler factory test
2018-10-15 13:52:41 -07:00
Cheng Pan
42ef7ae8d5
fix golint issues for pkg/volume/empty_dir
2018-10-15 20:00:36 +00:00
xichengliudui
e394482373
Remove duplicate words
2018-10-15 15:55:49 -04:00
Hannes Hörl
6330cee9ea
Add tests for `csiDriverClient`
...
As #69219 outlines the unit tests in `csi_client_test.go` where not
testing the actual implementation of the `csiDriverClient` but was
testing the fake.
To fix this, we changed the `csiDriverClient` to use a
`nodeClientCreator` which is responsible for creating a new
`NodeClient`, a real one in prod and a fake one in the tests.
The setup of the gRPC connection has been pushed into that creator. The
node client uses that connection; that's transparent to the driver
client. It's the responsibility of the driver client to close the
connection when it is done with the node client. To achieve this, we
have the node client creator return a closer which handles the
connection teardown.
In the tests we now also check if the driver client actually calls
this closer, thus closing the gRPC connection.
Closes : #69219
Co-authored-by: Rosie Bloxsom <rbloxsom@pivotal.io>
Co-authored-by: Maria Ntalla <mntalla@pivotal.io>
2018-10-15 20:55:37 +01:00
k8s-ci-robot
2119512b9e
Merge pull request #68491 from leakingtapan/golint-fix-volume-util
...
fix golint issue for pkg/volume/util
2018-10-15 11:40:32 -07:00
Wei Huang
ef2de48dc5
promote TaintBasedEvictions featuregate to beta
2018-10-15 11:20:49 -07:00
Tim Allclair
b4ac2e43ac
Add pkg/probe/OWNERS
2018-10-15 11:12:36 -07:00
Sean Sullivan
6a2ef97d46
kubectl: update to use correct printers package
2018-10-15 11:02:19 -07:00
Andy Crow
4400996c48
Fix error messages suggesting invalid flag
2018-10-15 16:39:53 +01:00
WanLinghao
fe3131ba87
clean all unused packages under pkg/util
2018-10-15 09:54:08 +08:00
k8s-ci-robot
02cca1f11a
Merge pull request #69711 from wgliang/cleanup/rename-recognize-region
...
AWS: unexport unnecessarily exported methods and variables about reco…
2018-10-14 13:30:20 -07:00
k8s-ci-robot
81c10dd8fa
Merge pull request #69758 from bsalamat/fix_node_tree
...
Fix a bug in node tree when all nodes in a zone are removed
2018-10-14 12:16:37 -07:00
k8s-ci-robot
308c2b3877
Merge pull request #69660 from cheftako/perms
...
Adding cheftako as approver for gce.
2018-10-14 10:44:09 -07:00
k8s-ci-robot
296ea67c84
Merge pull request #69556 from leakingtapan/golint-fix-volume-fc-flock
...
Fix golint issues for pkg/volume/{fc,flocker} packages
2018-10-14 10:43:59 -07:00
k8s-ci-robot
3478e94495
Merge pull request #69664 from stepyu/master
...
fix typos
2018-10-14 08:13:37 -07:00
k8s-ci-robot
d20912c83f
Merge pull request #69728 from SataQiu/fix-2018101201
...
fix some typos
2018-10-13 21:47:08 -07:00
Ibrahim AshShohail
2fb3ba71f1
Update usages of http.ResponseWriter.WriteHeader to use http.Error
...
Signed-off-by: Ibrahim AshShohail <me@ibrasho.com>
2018-10-14 05:58:00 +03:00
k8s-ci-robot
2a2c71a6f8
Merge pull request #69772 from cblecker/api-block-inheritance
...
Disable OWNERS inheritance on key api change directories
2018-10-13 13:19:28 -07:00
k8s-ci-robot
2129bc9f85
Merge pull request #69742 from apelisse/fix-diff-error
...
Rename KUBERNETES_EXTERNAL_DIFF to KUBECTL_EXTERNAL_DIFF
2018-10-13 09:54:52 -07:00
Christoph Blecker
617603db18
Disable OWNERS inheritance on key api change directories
2018-10-13 09:44:55 -07:00
xichengliudui
ef496320cf
Remove excess 'in'
...
Fix some typo
Fix some typo
2018-10-13 09:12:42 -04:00
k8s-ci-robot
a5b489a3a3
Merge pull request #69751 from seans3/tabwriter-fix
...
kubectl: copy printer tabwriter into kubectl
2018-10-13 03:56:17 -07:00
k8s-ci-robot
d84c43120e
Merge pull request #69745 from apelisse/check-dryrun-on-create
...
kubectl dry-run: Check for server didn't work on create
2018-10-12 22:31:28 -07:00
Bobby (Babak) Salamat
141b55abf5
Fix a bug in node tree when all nodes in a zone are removed
2018-10-12 21:39:38 -07:00
k8s-ci-robot
46f0f2a2c9
Merge pull request #69644 from apelisse/dry-run-beta
...
dry-run: Promote from Alpha to Beta
2018-10-12 20:42:08 -07:00
k8s-ci-robot
d82397b5c9
Merge pull request #69192 from tanshanshan/scheduler927
...
Move pkg/scheduler/algorithm/well_known_labels.go out
2018-10-12 20:41:50 -07:00
Deep Debroy
f8a69f1086
Broaden scope of host path types to skip processing in Windows
...
Signed-off-by: Deep Debroy <ddebroy@docker.com>
2018-10-12 19:57:08 -07:00
k8s-ci-robot
509fd5caea
Merge pull request #69431 from Huang-Wei/kubectl-prioriyclass
...
`kubectl get priorityclass` prints value column
2018-10-12 19:13:42 -07:00
k8s-ci-robot
b462f37639
Merge pull request #68281 from TinySong/update-api-import
...
update import in doc.go of staging/src/k8s.io/api/storage/v1
2018-10-12 19:13:24 -07:00
tanshanshan
b7c7966b9f
Move pkg/scheduler/algorithm/well_known_labels.go out
2018-10-13 09:10:00 +08:00
Guoliang Wang
31c7eac2c4
fix bug, infinite recursive call of GetLoadBalancerName()
2018-10-13 08:47:12 +08:00
k8s-ci-robot
e4200cea9c
Merge pull request #69354 from yujuhong/rm-jwt
...
GCP: Remove the deprecated google-json-key support
2018-10-12 17:16:46 -07:00
k8s-ci-robot
53e85280f4
Merge pull request #69714 from ericchiang/owners
...
Remove ericchiang from OWNERS files
2018-10-12 16:01:52 -07:00
k8s-ci-robot
b66d58c1b6
Merge pull request #69446 from seans3/taint-fix
...
kubectl taint: copy core taintutil dependency into kubectl
2018-10-12 16:01:33 -07:00
k8s-ci-robot
793b8752d1
Merge pull request #68777 from stewart-yu/patch-1
...
remove unneed parameter in test struct
2018-10-12 16:01:23 -07:00
Sean Sullivan
d076897be7
kubectl: copy printer tabwriter into kubectl
2018-10-12 15:10:46 -07:00
k8s-ci-robot
3348f9ae23
Merge pull request #69627 from dims/updating-ghodss-yaml-to-latest-version-2
...
Updating ghodss/yaml and gopkg.in/yaml.v2 to latest version 2
2018-10-12 14:48:26 -07:00
k8s-ci-robot
81feb2d03c
Merge pull request #69604 from seans3/podutil-fix
...
kubectl: copy pod utils into util/podutils package
2018-10-12 14:48:11 -07:00
Antoine Pelisse
5dca8e00e6
dry-run: Promote from Alpha to Beta
...
Also remove the test that used to check that the dry-run flag is
forbidden.
2018-10-12 14:25:49 -07:00
Antoine Pelisse
572a028148
kubectl diff: Print error when something goes wrong
2018-10-12 14:12:32 -07:00
Sean Sullivan
8c196137e8
kubectl taint: copy core taintutil dependency into kubectl
2018-10-12 12:39:15 -07:00
Antoine Pelisse
54889d581a
kubectl dry-run: Check for server didn't work on create
...
We changed the code to verify that the type supports dry-run, but we've
only done it for patch, not for create, which means that people can
create objects they don't want to create. We can actually simplify the
code by moving the check much earlier in the method, which fixes all
possible bug like this.
2018-10-12 11:30:49 -07:00
k8s-ci-robot
8751c1e5a8
Merge pull request #69560 from WanLinghao/clusterrolebinding_description_improve
...
Improve decription of command 'kubectl create clusterrole'
2018-10-12 11:20:11 -07:00
k8s-ci-robot
3f102c3980
Merge pull request #69500 from m1kola/LC_MESSAGES_support
...
Makes kubectl respect the `LC_ALL` and `LC_MESSAGES` env vars
2018-10-12 11:19:59 -07:00
k8s-ci-robot
e23a3af013
Merge pull request #67802 from krmayankk/dockershimtests
...
Implement RunAsGroup Strategy in PSP
2018-10-12 11:19:39 -07:00
Antoine Pelisse
e31d14cb10
kubectl diff: Rename KUBERNETES_EXTERNAL_DIFF to KUBECTL_EXTERNAL_DIFF
2018-10-12 10:56:16 -07:00
k8s-ci-robot
6fc89ae92d
Merge pull request #69633 from soltysh/move_templates
...
Move pkg/kubectl/cmd/templates -> pkg/kubectl/util/templates
2018-10-12 10:07:07 -07:00
Ben Swartzlander
85b224856d
Add unit tests for CSI mount options
2018-10-12 12:16:20 -04:00
SataQiu
e1d5b97f3f
fix some typos
2018-10-12 22:29:18 +08:00
k8s-ci-robot
b5a5010e57
Merge pull request #69706 from mcrute/rename-test-parse-instance
...
Rename AWS cloud provider TestParseInstance
2018-10-12 07:12:31 -07:00
k8s-ci-robot
23a84774b1
Merge pull request #69241 from wangzhen127/heartbeat
...
NodeLifecycleController treats node lease renewal as a heartbeat signal
2018-10-12 03:32:15 -07:00
stepyu
75887ec33c
fix typos
2018-10-12 16:56:08 +08:00
He Xiaoxi
a96a390d92
Refactor scheduler factory test
...
Use `k8s.io/client-go/kubernetes/fake.Clientset` as the fake k8s client.
Signed-off-by: He Xiaoxi <xxhe@alauda.io>
2018-10-12 14:39:08 +08:00
k8s-ci-robot
3dbb1481f2
Merge pull request #69491 from chrischdi/lint-pkg-util-strings
...
fix golint errors in pkg/util/strings
2018-10-11 18:26:43 -07:00
k8s-ci-robot
b3033a7278
Merge pull request #67934 from tanshanshan/typo828
...
fix spelling mistakes
2018-10-11 18:26:24 -07:00